8000 Merge pull request #9874 from matplotlib/auto-backport-of-pr-9272 · matplotlib/matplotlib@75d6345 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75d6345

Browse files
< 8000 a class="prc-Link-Link-85e08" href="/tacaswell" data-testid="avatar-icon-link" data-hovercard-url="/users/tacaswell/hovercard">tacaswelltacaswell
authored
Merge pull request #9874 from matplotlib/auto-backport-of-pr-9272
Backport PR #9272 on branch v2.1.x
2 parents 55830e5 + c85d69c commit 75d6345

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/sphinxext/plot_directive.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@
9090
Whether to show a link to the source in HTML.
9191
9292
plot_pre_code
93-
Code that should be executed before each plot.
93+
Code that should be executed before each plot. If not specified or None
94+
it will default to a string containing::
95+
96+
import numpy as np
97+
from matplotlib import pyplot as plt
9498
9599
plot_basedir
96100
Base directory, to which ``plot::`` file names are relative

0 commit comments

Comments
 (0)
0