Skip to content

Backport PR #9272 on branch v2.1.x #9874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/matplotlib/sphinxext/plot_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@
Whether to show a link to the source in HTML.

plot_pre_code
Code that should be executed before each plot.
Code that should be executed before each plot. If not specified or None
it will default to a string containing::

import numpy as np
from matplotlib import pyplot as plt

plot_basedir
Base directory, to which ``plot::`` file names are relative
Expand Down