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

Skip to content

Commit 6b14b00

Browse files
committed
sphinx plot directive: api changes
1 parent 8eea98e commit 6b14b00

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Changes regarding the Sphinx plot directive
2+
```````````````````````````````````````````
3+
4+
Fixed a bug in the Sphinx plot directive (.. plot:: path/to/plot_script.py)
5+
where the source Python file was not being found relative to the directory of
6+
the file containing the directive. In addition, its behavior was changed to
7+
make it more streamlined with other Sphinx commands.
8+
9+
Documents that were using this feature may need to adjust the path argument
10+
given to the plot directive. Two options are available:
11+
12+
1. Use absolute paths to find the file relative the ``plot_basedir`` (which
13+
defaults to the directory where conf.py is).
14+
2. Use relative paths and the file is found relative to the directory of the
15+
file containing the directive.
16+
17+
Before this change, relative paths were resolved relative to the source
18+
directory (where conf.py is) and absolute paths were pointing to files in the
19+
host system.

0 commit comments

Comments
 (0)