You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each guide will have its own figures directory for scripts to generate images
97
+
to be included in the dcoumentation. It is not necessary to explicitly save
98
+
the figure in the script, a figure will be saved with the same name as the
99
+
filename when the documentation is generated.
100
+
101
+
Any figures that rely on optional system configurations should be generated
102
+
with a script residing in doc/static_figs. The resulting figures will be saved
103
+
to doc/_static, and will be named based on the name of the script, so we can
104
+
avoid unintentionally overwriting any existing figures. Please add a line to
105
+
the README in doc/static-figs for any additional requirements necessary to
106
+
generate a new figure.
107
+
61
108
.. _referring-to-mpl-docs:
62
109
63
110
Referring to mpl documents
64
111
==========================
65
112
66
113
In the documentation, you may want to include to a document in the
67
-
matplotlib src, eg a license file, an image file from ``mpl-data``, or an
114
+
matplotlib src, eg a license file, an image file from `mpl-data`, or an
68
115
example. When you include these files, include them using a symbolic
69
116
link from the documentation parent directory. This way, if we
70
117
relocate the mpl documentation directory, all of the internal pointers
@@ -77,7 +124,9 @@ the mpl ``examples`` and ``mpl-data``::
77
124
mpl_examples -> ../examples
78
125
79
126
80
-
In the ``users`` subdirectory, if I want to refer to a file in the mpl-data directory, I use the symlink direcotry. For example, from ``customizing.rst``::
127
+
In the `users` subdirectory, if I want to refer to a file in the mpl-data
128
+
directory, I use the symlink directory. For example, from
129
+
``customizing.rst``::
81
130
82
131
.. literalinclude:: ../mpl_data/matplotlibrc
83
132
@@ -107,7 +156,8 @@ is better than::
107
156
108
157
.. _faq-backend
109
158
110
-
In addition, since underscores are widely used by Sphinx itself, let's prefer hyphens to separate words.
159
+
In addition, since underscores are widely used by Sphinx itself, let's prefer
0 commit comments