|
182 | 182 | # <https://matplotlib.org/tutorials/intermediate/color_cycle.html#sphx-glr-tutorials-intermediate-color-cycle-py>`__ |
183 | 183 | # and use different property cycles for different plot elements. You can create and |
184 | 184 | # apply property cycles on-the-fly using the `cycle` and `cycle_kw` keywords, available |
185 | | -# with most 1D plotting commands. `cycle` and `cycle_kw` are passed to the |
186 | | -# `~proplot.constructor.Cycle` :ref:`constructor function <why_constructor>`, and the |
187 | | -# resulting property cycle is used for the plot. You can specify `cycle` once with |
188 | | -# 2D input data (in which case each column is plotted in succession according to |
189 | | -# the property cycle) or call a plotting command multiple times with the same |
190 | | -# `cycle` argument each time (the property cycle is not reset). You can also |
191 | | -# disable property cycling with ``cycle=False``, ``cycle='none'``, or ``cycle=()`` |
192 | | -# and re-enable the default property cycle with ``cycle=True``. For more information |
193 | | -# on property cycling, see the :ref:`color cycles section <ug_cycles>` and |
194 | | -# `this matplotlib tutorial |
| 185 | +# with most `~proplot.axes.PlotAxes` 1D plotting commands. `cycle` and `cycle_kw` are |
| 186 | +# passed to the `~proplot.constructor.Cycle` :ref:`constructor function |
| 187 | +# <why_constructor>`, and the resulting property cycle is used for the plot. You |
| 188 | +# can specify `cycle` once with 2D input data (in which case each column is |
| 189 | +# plotted in succession according to the property cycle) or call a plotting |
| 190 | +# command multiple times with the same `cycle` argument each time (the property |
| 191 | +# cycle is not reset). You can also disable property cycling with |
| 192 | +# ``cycle=False``, ``cycle='none'``, or ``cycle=()`` and re-enable the default |
| 193 | +# property cycle with ``cycle=True``. For more information on property cycling, |
| 194 | +# see the :ref:`color cycles section <ug_cycles>` and `this matplotlib tutorial |
195 | 195 | # <https://matplotlib.org/tutorials/intermediate/color_cycle.html#sphx-glr-tutorials-intermediate-color-cycle-py>`__. |
196 | 196 |
|
197 | 197 | # %% |
|
490 | 490 | # `~proplot.axes.PlotAxes.scatterx`. `~proplot.axes.PlotAxes.bar`, and |
491 | 491 | # `~proplot.axes.PlotAxes.barh` plots using any of several keyword arguments. |
492 | 492 | # |
493 | | -# If you pass 2D arrays to these commands with ``mean=True`` or ``median=True``, |
494 | | -# the means or medians of each column are drawn as lines, points, or bars, while |
495 | | -# *error bars* or *error shading* indicates the spread of the distribution |
496 | | -# for each column. Invalid data is ignored. You can also specify the error bounds |
497 | | -# *manually* with the `bardata`, `boxdata`, `shadedata`, and `fadedata` keywords. |
498 | | -# These commands can draw and style thin error bars (the ``bar`` keywords), thick |
499 | | -# "boxes" overlaid on top of these bars (the ``box`` keywords; think of them as |
500 | | -# miniature boxplots), a transparent shading region (the ``shade`` keywords), and |
501 | | -# a more transparent secondary shading region (the ``fade`` keywords). See the |
502 | | -# documentation on the plotting commands for details. |
| 493 | +# If you pass 2D arrays to these commands with ``mean=True``, ``means=True``, |
| 494 | +# ``median=True``, or ``medians=True``, the means or medians of each column are |
| 495 | +# drawn as lines, points, or bars, while *error bars* or *error shading* |
| 496 | +# indicates the spread of the distribution in each column. Invalid data is |
| 497 | +# ignored. You can also specify the error bounds *manually* with the `bardata`, |
| 498 | +# `boxdata`, `shadedata`, and `fadedata` keywords. These commands can draw and |
| 499 | +# style thin error bars (the ``bar`` keywords), thick "boxes" overlaid on top of |
| 500 | +# these bars (the ``box`` keywords; think of them as miniature boxplots), a |
| 501 | +# transparent primary shading region (the ``shade`` keywords), and a more |
| 502 | +# transparent secondary shading region (the ``fade`` keywords). See the documentation |
| 503 | +# on the plotting commands for details. |
503 | 504 |
|
504 | 505 |
|
505 | 506 | # %% |
|
704 | 705 | # Parametric plots |
705 | 706 | # ---------------- |
706 | 707 | # |
707 | | -# To make "parametric" plots, use the new `~proplot.axes.PlotAxes.parametric` |
708 | | -# command. Parametric plots are `~matplotlib.collections.LineCollection`\ s that |
709 | | -# map individual line segments to individual colors, where each segment represents a |
| 708 | +# Parametric plots can be drawn using the new `~proplot.axes.PlotAxes.parametric` |
| 709 | +# command. This creates `~matplotlib.collections.LineCollection`\ s that map |
| 710 | +# individual line segments to individual colors, where each segment represents a |
710 | 711 | # "parametric" coordinate (e.g., time). The parametric coordinates are specified with |
711 | | -# the `values` keyword argument. See `~proplot.axes.PlotAxes.parametric` for details. |
712 | | -# As shown below, it is also easy to build colorbars from the |
713 | | -# `~matplotlib.collections.LineCollection` returned by |
714 | | -# `~proplot.axes.PlotAxes.parametric`. |
| 712 | +# a third positional argument or with the keywords `c`, `color`, `colors` or `values`. |
| 713 | +# Representing parametric coordinates with colors instead of text labels can be |
| 714 | +# cleaner. The below example makes a simple `~proplot.axes.PlotAxes.parametric` |
| 715 | +# plot with a colorbar indicating the parametric coordinate. |
715 | 716 |
|
716 | 717 | # %% |
717 | 718 | import proplot as pplt |
|
0 commit comments