Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e5df02

Browse 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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/users/next_whats_new/bar_label_formatting.rst

Lines 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)