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 7c48881

Browse filesBrowse files
committed
Render plots for bar_label() fmt what's new entry.
1 parent cd185ab commit 7c48881
Copy full SHA for 7c48881

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.