|
337 | 337 | _manual_levels_docstring = """ |
338 | 338 | N |
339 | 339 | Shorthand for `levels`. |
340 | | -levels : int or list of float, optional |
341 | | - The number of level edges or a list of level edges. If the former, |
| 340 | +levels : int or sequence of float, optional |
| 341 | + The number of level edges or a sequence of level edges. If the former, |
342 | 342 | `locator` is used to generate this many level edges at "nice" intervals. |
343 | 343 | If the latter, the levels should be monotonically increasing or |
344 | 344 | decreasing (note that decreasing levels will only work with ``pcolor`` |
345 | 345 | plots, not ``contour`` plots). Default is :rc:`cmap.levels`. |
346 | | -values : int or list of float, optional |
347 | | - The number of level centers or a list of level centers. If the former, |
| 346 | +values : int or sequence of float, optional |
| 347 | + The number of level centers or a sequence of level centers. If the former, |
348 | 348 | `locator` is used to generate this many level centers at "nice" intervals. |
349 | 349 | If the latter, levels are inferred using `~proplot.utils.edges`. |
350 | 350 | This will override any `levels` input. |
|
391 | 391 | label, value : float or str, optional |
392 | 392 | The single legend label or colorbar coordinate to be used for this plotted |
393 | 393 | element. This is generally used with 1D input coordinates. |
394 | | -labels, values : list of float or list of str, optional |
| 394 | +labels, values : sequence of float or sequence of str, optional |
395 | 395 | The legend labels or colorbar coordinates used for each plotted element. |
396 | 396 | Can be numeric or string, and must match the number of plotted elements. |
397 | 397 | This is generally used with 2D input coordinates. |
|
522 | 522 | negcolor, poscolor : color-spec, optional |
523 | 523 | Colors to use for the negative and positive lines. Ignored if `negpos` |
524 | 524 | is ``False``. Defaults are :rc:`negcolor` and :rc:`poscolor`. |
525 | | -c, color, colors : color-spec or list, optional |
| 525 | +c, color, colors : color-spec or sequence, optional |
526 | 526 | The line color(s). |
527 | | -ls, linestyle, linestyles : str or list, optional |
| 527 | +ls, linestyle, linestyles : str or sequence, optional |
528 | 528 | The line style(s). |
529 | | -lw, linewidth, linewidths : float or list, optional |
| 529 | +lw, linewidth, linewidths : float or sequence, optional |
530 | 530 | The line width(s). |
531 | 531 | %(plot.cycle)s |
532 | 532 | %(plot.labels_1d)s |
|
602 | 602 | Parameters |
603 | 603 | ---------- |
604 | 604 | %(plot.args_1d_{y})s |
605 | | -s, size, ms, markersize : float or list of float, optional |
| 605 | +s, size, ms, markersize : float or sequence of float, optional |
606 | 606 | The marker size(s). If this is an array matching the shape of `x` and `y`, |
607 | 607 | the units are scaled by `smin` and `smax`. |
608 | 608 | c, color, colors, mc, markercolor, markercolors \ |
|
618 | 618 | Other parameters |
619 | 619 | ---------------- |
620 | 620 | lw, linewidth, linewidths, markeredgewidth, markeredgewidths \ |
621 | | -: float or list, optional |
| 621 | +: float or sequence, optional |
622 | 622 | The marker edge width. |
623 | 623 | edgecolors, markeredgecolor, markeredgecolors \ |
624 | | -: color-spec or list, optional |
| 624 | +: color-spec or sequence, optional |
625 | 625 | The marker edge color. |
626 | 626 | %(plot.cmap_norm)s |
627 | 627 | %(plot.levels_manual)s |
|
768 | 768 | Parameters |
769 | 769 | ---------- |
770 | 770 | %(plot.args_1d_{y})s |
771 | | -bins : int or list of float, optional |
772 | | - The bin count or list of bins. |
| 771 | +bins : int or sequence of float, optional |
| 772 | + The bin count or sequence of bins. |
773 | 773 | %(plot.weights)s |
774 | 774 | %(plot.args_1d_shared)s |
775 | 775 |
|
|
811 | 811 | `~matplotlib.axes.Axes.boxplot`. |
812 | 812 | fill : bool, optional |
813 | 813 | Whether to fill the box with a color. |
814 | | -fc, facecolor, fillcolor : color-spec, list, optional |
| 814 | +fc, facecolor, fillcolor : color-spec or sequence, optional |
815 | 815 | The fill color for the boxes. Default is the next color cycler color. If |
816 | | - a list, it should be the same length as the number of objects. |
| 816 | + a sequence, it should be the same length as the number of objects. |
817 | 817 | a, alpha, fa, facealpha, fillalpha : float, optional |
818 | | - The opacity of the boxes. Default is ``1.0``. If a list, |
819 | | - should be the same length as the number of objects. |
| 818 | + The opacity of the boxes. Default is ``1.0``. If a sequence, should |
| 819 | + be the same length as the number of objects. |
820 | 820 | lw, linewidth, linewidths : float, optional |
821 | 821 | The linewidth of all objects. Default is :rc:`patch.linewidth`. |
822 | | -c, color, colors, ec, edgecolor, edgecolors : color-spec, list, optional |
823 | | - The color of all objects. Default is ``'black'``. If a list, it should |
| 822 | +c, color, colors, ec, edgecolor, edgecolors : color-spec or sequence, optional |
| 823 | + The color of all objects. Default is ``'black'``. If a sequence, should |
824 | 824 | be the same length as the number of objects. |
825 | 825 | meanls, medianls, meanlinestyle, medianlinestyle, meanlinestyles, medianlinestyles \ |
826 | 826 | : line style-spec, optional |
|
829 | 829 | boxc, capc, whiskerc, flierc, meanc, medianc, \ |
830 | 830 | boxcolor, capcolor, whiskercolor, fliercolor, meancolor, mediancolor \ |
831 | 831 | boxcolors, capcolors, whiskercolors, fliercolors, meancolors, mediancolors \ |
832 | | -: color-spec, list, optional |
833 | | - The color of various boxplot components. If a list, it should be the |
| 832 | +: color-spec or sequence, optional |
| 833 | + The color of various boxplot components. If a sequence, should be the |
834 | 834 | same length as the number of objects. These are shorthands so you don't |
835 | 835 | have to pass e.g. a ``boxprops`` dictionary. |
836 | 836 | boxlw, caplw, whiskerlw, flierlw, meanlw, medianlw, boxlinewidth, caplinewidth, \ |
|
877 | 877 |
|
878 | 878 | Other parameters |
879 | 879 | ---------------- |
880 | | -fc, facecolor, facecolors, fillcolor, fillcolors : color-spec, list, optional |
| 880 | +fc, facecolor, facecolors, fillcolor, fillcolors : color-spec or sequence, optional |
881 | 881 | The violin plot fill color. Default is the next color cycler color. If |
882 | | - a list, it should be the same length as the number of objects. |
883 | | -a, alpha, fa, facealpha, fillalpha : float, optional |
884 | | - The opacity of the violins. Default is ``1.0``. If a list, |
885 | | - it should be the same length as the number of objects. |
| 882 | + a sequence, should be the same length as the number of objects. |
| 883 | +c, color, colors, ec, edgecolor, edgecolors : color-spec or sequence, optional |
| 884 | + The edge color for the violin patches. Default is ``'black'``. If a |
| 885 | + sequence, should be the same length as the number of objects. |
| 886 | +a, alpha, fa, facealpha, fillalpha : float or sequence, optional |
| 887 | + The opacity of the violins. Default is ``1.0``. If a sequence, |
| 888 | + should be the same length as the number of objects. |
886 | 889 | lw, linewidth, linewidths : float, optional |
887 | 890 | The linewidth of the line objects. Default is :rc:`patch.linewidth`. |
888 | | -c, color, colors, ec, edgecolor, edgecolors : color-spec, list, optional |
889 | | - The edge color for the violin patches. Default is ``'black'``. If a |
890 | | - list, it should be the same length as the number of objects. |
891 | 891 | %(plot.cycle)s |
892 | 892 | %(plot.labels_1d)s |
893 | 893 | %(plot.error_bars)s |
@@ -2571,9 +2571,9 @@ def _parse_levels( |
2571 | 2571 | The sample data. Passed to `_parse_vlim`. |
2572 | 2572 | N |
2573 | 2573 | Shorthand for `levels`. |
2574 | | - levels : int or list of float, optional |
| 2574 | + levels : int or sequence of float, optional |
2575 | 2575 | The levels list or (approximate) number of levels to create. |
2576 | | - values : int or list of float, optional |
| 2576 | + values : int or sequence of float, optional |
2577 | 2577 | The level center list or (approximate) number of level centers to create. |
2578 | 2578 | minlength : int, optional |
2579 | 2579 | The minimum number of levels allowed. |
@@ -2694,7 +2694,7 @@ def _parse_discrete( |
2694 | 2694 |
|
2695 | 2695 | Parameters |
2696 | 2696 | ---------- |
2697 | | - levels : list of float |
| 2697 | + levels : sequence of float |
2698 | 2698 | The level boundaries. |
2699 | 2699 | norm : `~matplotlib.colors.Normalize` |
2700 | 2700 | The continuous normalizer. |
@@ -4213,8 +4213,8 @@ def hist2d(self, x, y, bins, **kwargs): |
4213 | 4213 | Parameters |
4214 | 4214 | ---------- |
4215 | 4215 | %(plot.args_1d_y)s |
4216 | | - bins : int or 2-tuple of int, or array or 2-tuple of array, optional |
4217 | | - The bin count or list of bins for each dimension or both dimensions. |
| 4216 | + bins : int or 2-tuple of int, or array-like or 2-tuple of array-like, optional |
| 4217 | + The bin count or sequence of bins for each dimension or both dimensions. |
4218 | 4218 | %(plot.weights)s |
4219 | 4219 | %(plot.args_1d_shared)s |
4220 | 4220 |
|
|
0 commit comments