|
224 | 224 | # <https://matplotlib.org/stable/api/index.html>`__ for plotting stuff: |
225 | 225 | # a "python-style" object-oriented interface with axes-level commands |
226 | 226 | # like `matplotlib.axes.Axes.plot`, and a "MATLAB-style" interface |
227 | | -# that tracks "current" axes and provides global |
228 | | -# `~matplotlib.pyplot` commands like `matplotlib.pyplot.plot`. |
229 | | -# Rather than adding commands to the `~matplotlib.pyplot` module, |
| 227 | +# with global commands like `matplotlib.pyplot.plot` that tracks "current" axes. |
| 228 | +# Rather than adding to the `~matplotlib.pyplot` namespace, |
230 | 229 | # proplot uses the intermediate subclass `proplot.axes.PlotAxes` |
231 | | -# to modify existing axes-level commands and add a few new commands. |
| 230 | +# to modify existing axes-level commands and add a few new ones. |
232 | 231 | # While certain `~proplot.axes.PlotAxes` features may be accessible via |
233 | 232 | # the relevant `~matplotlib.pyplot` commands, proplot only officially supports |
234 | 233 | # the "python-style" object-oriented interface. |
235 | 234 |
|
236 | 235 | # `~proplot.axes.PlotAxes` does not change the usage or syntax of existing commands, |
237 | | -# which means a shallow learning curve for the average matplotlib user. It also |
238 | | -# tries to standardize the positional "data" arguments and optional keyword arguments |
239 | | -# accepted by similar or analogous commands, providing a more intuitive interface |
240 | | -# for new and old matplotlib users alike. |
241 | | -# In the below example, we create a 4-panel figure with the familiar "1D" |
242 | | -# plotting commands `~proplot.axes.PlotAxes.plot` and `~proplot.axes.PlotAxes.scatter`, |
243 | | -# along with the "2D" plotting commands `~proplot.axes.PlotAxes.pcolormesh` and |
244 | | -# `~proplot.axes.PlotAxes.contourf`. See the :ref:`1D plotting <ug_1dplots>` and |
245 | | -# :ref:`2D plotting <ug_2dplots>` sections for details on the features added by proplot. |
| 236 | +# which means a shallow learning curve for the average matplotlib user. It also tries |
| 237 | +# to :ref:`standardize the positional arguments <ug_1dstd>` and optional keyword |
| 238 | +# arguments accepted by similar or analogous commands, providing an arguably more |
| 239 | +# intuitive interface. In the below example, we create a 4-panel figure with the |
| 240 | +# familiar "1D" plotting commands `~proplot.axes.PlotAxes.plot` and |
| 241 | +# `~proplot.axes.PlotAxes.scatter`, along with the "2D" plotting commands |
| 242 | +# `~proplot.axes.PlotAxes.pcolormesh` and `~proplot.axes.PlotAxes.contourf`. |
| 243 | +# See the :ref:`1D plotting <ug_1dplots>` and :ref:`2D plotting <ug_2dplots>` |
| 244 | +# sections for details on the features added by proplot. |
246 | 245 |
|
247 | 246 |
|
248 | 247 | # %% |
|
277 | 276 | # Matplotlib includes `two different interfaces |
278 | 277 | # <https://matplotlib.org/stable/api/index.html>`__ for formatting stuff: |
279 | 278 | # a "python-style" object-oriented interface with instance-level commands |
280 | | -# like `matplotlib.axes.Axes.set_title`, and a "MATLAB-style" interface that |
281 | | -# tracks "current" axes and provides global `~matplotlib.pyplot` commands like |
| 279 | +# like `matplotlib.axes.Axes.set_title`, and a "MATLAB-style" interface |
| 280 | +# that tracks current axes and provides global commands like |
282 | 281 | # `matplotlib.pyplot.title`. Proplot provides the ``format`` command as a succinct |
283 | | -# and powerful alternative to these two approaches. While the above one-liner |
| 282 | +# and powerful alternative to these interfaces. While matplotlib's one-liner |
284 | 283 | # commands still work, we recommend using ``format`` -- it only needs to |
285 | 284 | # be called once, and it tends to cut down on boilerplate code. You can call |
286 | 285 | # ``format`` manually or pass ``format`` parameters to axes-creation commands |
|
300 | 299 | # * Cartesian axes settings (valid only for `~proplot.axes.CartesianAxes`). |
301 | 300 | # These are related to *x* and *y* axis ticks, spines, bounds, and labels -- |
302 | 301 | # for example, ``ax.format(xlim=(0, 5))`` changes the x axis bounds. |
303 | | -# See `proplot.axes.CartesianAxes.format` |
304 | | -# and :ref:`this section <ug_cartesian>` for details. |
| 302 | +# See `proplot.axes.CartesianAxes.format` and |
| 303 | +# :ref:`this section <ug_cartesian>` for details. |
305 | 304 | # |
306 | 305 | # * Polar axes settings (valid only for `~proplot.axes.PolarAxes`). |
307 | 306 | # These are related to azimuthal and radial grid lines, bounds, and labels -- |
|
0 commit comments