Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5e5df02

Browse filesBrowse files
authored
Merge pull request #24432 from stefmolin/fix-bar-label-whats-new
DOC: Fix What's New entry for bar_label() formatting.
2 parents cd185ab + 7c48881 commit 5e5df02
Copy full SHA for 5e5df02

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎doc/users/next_whats_new/bar_label_formatting.rst

Copy file name to clipboardExpand all lines: doc/users/next_whats_new/bar_label_formatting.rst
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Additional format string options in `~matplotlib.axes.Axes.bar_label`
44
The ``fmt`` argument of `~matplotlib.axes.Axes.bar_label` now accepts
55
{}-style format strings:
66

7-
.. code-block:: python
7+
.. plot::
8+
:include-source: true
89

910
import matplotlib.pyplot as plt
1011

@@ -18,7 +19,8 @@ The ``fmt`` argument of `~matplotlib.axes.Axes.bar_label` now accepts
1819

1920
It also accepts callables:
2021

21-
.. code-block:: python
22+
.. plot::
23+
:include-source: true
2224

2325
animal_names = ['Lion', 'Gazelle', 'Cheetah']
2426
mph_speed = [50, 60, 75]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.