@@ -24,11 +24,12 @@ ReadTheDocs, you may wish to build imagery locally to avoid hitting resource
24
24
limits on the server. Using the new changes allows extensive dynamically
25
25
generated imagery to be used on services like ReadTheDocs.
26
26
27
- The `:outname: ` property
28
- ~~~~~~~~~~~~~~~~~~~~~~~~
27
+ The `` :outname: ` ` property
28
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
29
29
30
- These problems are addressed through two new features in the plot directive. The
31
- first is the introduction of the `:outname: ` property. It is used like so:
30
+ These problems are addressed through two new features in the plot directive.
31
+ The first is the introduction of the ``:outname: `` property. It is used like
32
+ so:
32
33
33
34
.. code-block :: rst
34
35
@@ -41,20 +42,20 @@ first is the introduction of the `:outname:` property. It is used like so:
41
42
img = mpimg.imread('_static/stinkbug.png')
42
43
imgplot = plt.imshow(img)
43
44
44
- Without `:outname: `, the figure generated above would normally be called, e.g.
45
- `docfile3-4-01.png ` or something equally mysterious. With `:outname: ` the figure
46
- generated will instead be named `stinkbug_plot-01.png ` or even
47
- `stinkbug_plot.png `. This makes it easy to understand which output image is
48
- which and, more importantly, uniquely keys output images to code snippets.
45
+ Without ``:outname: ``, the figure generated above would normally be called,
46
+ e.g. :file: `docfile3-4-01.png ` or something equally mysterious. With
47
+ ``:outname: `` the figure generated will instead be named
48
+ :file: `stinkbug_plot-01.png ` or even :file: `stinkbug_plot.png `. This makes it
49
+ easy to understand which output image is which and, more importantly, uniquely
50
+ keys output images to code snippets.
49
51
50
- The `plot_preserve_dir ` configuration value
51
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52
+ The `` plot_preserve_dir ` ` configuration value
53
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52
54
53
- Setting the `plot_preserve_dir ` configuration value to the name of a directory
54
- will cause all images with `:outname: ` set to be copied to this directory upon
55
- generation.
55
+ Setting the `` plot_preserve_dir `` configuration value to the name of a
56
+ directory will cause all images with `` :outname: `` set to be copied to this
57
+ directory upon generation.
56
58
57
- If an image is already in `plot_preserve_dir ` when documentation is being
59
+ If an image is already in `` plot_preserve_dir ` ` when documentation is being
58
60
generated, this image is copied to the build directory thereby pre-empting
59
61
generation and reducing computation time in low-resource environments.
60
-
0 commit comments