|
59 | 59 | ``xscale=('cutoff', 100, 2)`` applies a `~proplot.scale.CutoffScale`. |
60 | 60 | xscale_kw, yscale_kw : dict-like, optional |
61 | 61 | The x and y axis scale settings. Passed to `~proplot.scale.Scale`. |
62 | | -xmargin, ymargin, margin : float, optional |
| 62 | +xmargin, ymargin, margin : float, default: :rc:`margin` |
63 | 63 | The default margin between plotted content and the x and y axis spines in |
64 | | - axes-relative coordinates. Use this to add whitespace between plotted content and |
65 | | - axes edges without explicitly setting the limits. Use `margin` to set both at once. |
| 64 | + axes-relative coordinates. This is useful if you don't witch to explicitly set |
| 65 | + axis limits. Use the keyword `margin` to set both at once. |
66 | 66 | xbounds, ybounds : 2-tuple of float, optional |
67 | 67 | The x and y axis data bounds within which to draw the spines. For example, |
68 | 68 | ``xlim=(0, 4)`` combined with ``xbounds=(2, 4)`` will prevent the spines |
|
98 | 98 | xoffsetloc, yoffsetloc : {'left', 'right'}, optional |
99 | 99 | Which x and y axis spines should have the axis offset indicator. Inherits from |
100 | 100 | `ticklabelloc` by default (if `ticklabelloc` is a single side). |
101 | | -xtickdir, ytickdir, tickdir : {'out', 'in', 'inout'} |
| 101 | +xtickdir, ytickdir, tickdir : {'out', 'in', 'inout'}, optional |
102 | 102 | Direction that major and minor tick marks point for the x and y axis. |
103 | | - Default is :rc:`tick.dir`. Use `tickdir` to control both. |
104 | | -xticklabeldir, yticklabeldir : {'in', 'out'} |
| 103 | + Use the keyword `tickdir` to control both. |
| 104 | +xticklabeldir, yticklabeldir : {'in', 'out'}, optional |
105 | 105 | Whether to place x and y axis tick label text inside or outside the axes. |
106 | 106 | Propagates to `xtickdir` and `ytickdir` unless specified otherwise. |
107 | | -xrotation, yrotation : float, optional |
108 | | - The rotation for x and y axis tick labels. Default is ``0`` |
| 107 | +xrotation, yrotation : float, default: 0 |
| 108 | + The rotation for x and y axis tick labels. |
109 | 109 | for normal axes, :rc:`formatter.timerotation` for time x axes. |
110 | | -xgrid, ygrid, grid : bool, optional |
| 110 | +xgrid, ygrid, grid : bool, default: :rc:`grid` |
111 | 111 | Whether to draw major gridlines on the x and y axis. |
112 | | - Use `grid` to toggle both. |
113 | | -xgridminor, ygridminor, gridminor : bool, optional |
| 112 | + Use the keyword `grid` to toggle both. |
| 113 | +xgridminor, ygridminor, gridminor : bool, default: :rc:`gridminor` |
114 | 114 | Whether to draw minor gridlines for the x and y axis. |
115 | | - Use `gridminor` to toggle both. |
116 | | -xtickminor, ytickminor, tickminor : bool, optional |
| 115 | + Use the keyword `gridminor` to toggle both. |
| 116 | +xtickminor, ytickminor, tickminor : bool, default: :rc:`tick.minor` |
117 | 117 | Whether to draw minor ticks on the x and y axes. |
118 | | - Use `tickminor` to toggle both. |
| 118 | + Use the keyword `tickminor` to toggle both. |
119 | 119 | xticks, yticks : optional |
120 | 120 | Aliases for `xlocator`, `ylocator`. |
121 | 121 | xlocator, ylocator : locator-spec, optional |
|
136 | 136 | xformatter, yformatter : formatter-spec, optional |
137 | 137 | Used to determine the x and y axis tick label string format. |
138 | 138 | Passed to the `~proplot.constructor.Formatter` constructor. |
139 | | - Can be string, list of strings, or `matplotlib.ticker.Formatter` |
140 | | - instance. Use ``[]``, ``'null'``, or ``'none'`` for no labels. |
| 139 | + Can be string, list of strings, or `matplotlib.ticker.Formatter` instance. |
| 140 | + Use ``[]``, ``'null'``, or ``'none'`` for no labels. |
141 | 141 | xformatter_kw, yformatter_kw : dict-like, optional |
142 | 142 | Keyword arguments passed to the `matplotlib.ticker.Formatter` class. |
143 | | -xcolor, ycolor, color : color-spec, optional |
144 | | - Color for the x and y axis spines, ticks, tick labels, and axis |
145 | | - labels. Use `color` to set both at once. |
146 | | -xgridcolor, ygridcolor, gridcolor : color-spec, optional |
147 | | - Color for the x and y axis major and minor gridlines. Default is :rc:`grid.color`. |
148 | | - Use `gridcolor` to set both at once. |
149 | | -xlinewidth, ylinewidth, linewidth : color-spec, optional |
150 | | - Line width for the x and y axis spines and major ticks. Propagates to |
151 | | - `tickwidth` unless specified otherwise. Use `linewidth` to set both at once. |
152 | | -xtickcolor, ytickcolor, tickcolor : color-spec, optional |
153 | | - Color for the x and y axis ticks. Default is `xcolor`, `ycolor`, and `color` or |
154 | | - :rc:`tick.color` if they were not passed. Use `tickcolor` to set both at once. |
155 | | -xticklen, yticklen, ticklen : unit-spec, optional |
156 | | - Major tick lengths for the x and y axis. Default is :rc:`tick.len`. |
| 143 | +xcolor, ycolor, color : color-spec, default: :rc:`meta.color` |
| 144 | + Color for the x and y axis spines, ticks, tick labels, and axis labels. |
| 145 | + Use the keyword `color` to set both at once. |
| 146 | +xgridcolor, ygridcolor, gridcolor : color-spec, default: :rc:`grid.color` |
| 147 | + Color for the x and y axis major and minor gridlines. |
| 148 | + Use the keyword `gridcolor` to set both at once. |
| 149 | +xlinewidth, ylinewidth, linewidth : color-spec, default: :rc:`meta.width` |
| 150 | + Line width for the x and y axis spines and major ticks. Propagates to `tickwidth` |
| 151 | + unless specified otherwise. Use the keyword `linewidth` to set both at once. |
| 152 | +xtickcolor, ytickcolor, tickcolor : color-spec, default: :rc:`tick.color` |
| 153 | + Color for the x and y axis ticks. Defaults are `xcolor`, `ycolor`, and `color` |
| 154 | + if they were passed. Use the keyword `tickcolor` to set both at once. |
| 155 | +xticklen, yticklen, ticklen : unit-spec, default: :rc:`tick.len` |
| 156 | + Major tick lengths for the x and y axis. |
157 | 157 | %(units.pt)s |
158 | | - Use `ticklen` to set both at once. |
159 | | -xticklenratio, yticklenratio, ticklenratio : float, optional |
160 | | - Relative scaling of `xticklen` and `yticklen` used to determine |
161 | | - minor tick lengths. Default is :rc:`tick.lenratio`. |
162 | | - Use `ticklenratio` to set both at once. |
163 | | -xtickwidth, ytickwidth, tickwidth, : unit-spec, optional |
164 | | - Major tick widths for the x ans y axis. Default is `linewidth` |
165 | | - or :rc:`tick.width` if `linewidth` was not passed. |
| 158 | + Use the keyword `ticklen` to set both at once. |
| 159 | +xticklenratio, yticklenratio, ticklenratio : float, default: :rc:`tick.lenratio` |
| 160 | + Relative scaling of `xticklen` and `yticklen` used to determine minor |
| 161 | + tick lengths. Use the keyword `ticklenratio` to set both at once. |
| 162 | +xtickwidth, ytickwidth, tickwidth, : unit-spec, default: :rc:`tick.width` |
| 163 | + Major tick widths for the x ans y axis. Default is `linewidth` if it was passed. |
166 | 164 | %(units.pt)s |
167 | | - Use `tickwidth` to set both at once. |
168 | | -xtickwidthratio, ytickwidthratio, tickwidthratio |
| 165 | + Use the keyword `tickwidth` to set both at once. |
| 166 | +xtickwidthratio, ytickwidthratio, tickwidthratio : float, default: :rc:`tick.widthratio` |
169 | 167 | Relative scaling of `xtickwidth` and `ytickwidth` used to determine |
170 | | - minor tick widths. Default is :rc:`tick.widthratio`. |
171 | | - Use `tickwidthratio` to set both at once. |
172 | | -xticklabelpad, yticklabelpad : unit-spec, optional |
173 | | - The padding between the x and y axis ticks and |
174 | | - tick labels. Default is :rcraw:`tick.labelpad`. |
| 168 | + minor tick widths. Use the keyword `tickwidthratio` to set both at once. |
| 169 | +xticklabelpad, yticklabelpad, ticklabelpad : unit-spec, default: :rc:`tick.labelpad` |
| 170 | + The padding between the x and y axis ticks and tick labels. Use the |
| 171 | + keyword `ticklabelpad` to set both at once. |
175 | 172 | %(units.pt)s |
176 | | -xticklabelcolor, yticklabelcolor, ticklabelcolor : color-spec, optional |
177 | | - Color for the x and y tick labels. Default is `xcolor`, `ycolor`, and `color` or |
178 | | - :rc:`tick.labelcolor` if they were not passed. Use `ticklabelcolor` to set both. |
179 | | -xticklabelsize, yticklabelsize, ticklabelsize : unit-spec or str, optional |
180 | | - Font size for the x and y tick labels. Default is :rc:`tick.labelsize`. |
| 173 | +xticklabelcolor, yticklabelcolor, ticklabelcolor \ |
| 174 | +: color-spec, default: :rc:`tick.labelcolor` |
| 175 | + Color for the x and y tick labels. Defaults are `xcolor`, `ycolor`, and `color` |
| 176 | + if they were passed. Use the keyword `ticklabelcolor` to set both at once. |
| 177 | +xticklabelsize, yticklabelsize, ticklabelsize \ |
| 178 | +: unit-spec or str, default: :rc:`tick.labelsize` |
| 179 | + Font size for the x and y tick labels. |
181 | 180 | %(units.pt)s |
182 | | - Use `ticklabelsize` to set both at once. |
183 | | -xticklabelweight, yticklabelweight, ticklabelweight : str, optional |
184 | | - Font weight for the x and y axis labels. Default is :rc:`label.weight`. |
185 | | - Use `ticklabelweight` to set both at once. |
186 | | -xlabelpad, ylabelpad : unit-spec, optional |
187 | | - The padding between the x and y axis bounding box and |
188 | | - the x and y axis labels. Default is :rc:`label.pad`. |
| 181 | + Use the keyword `ticklabelsize` to set both at once. |
| 182 | +xticklabelweight, yticklabelweight, ticklabelweight \ |
| 183 | +: str, default: :rc:`tick.labelweight` |
| 184 | + Font weight for the x and y tick labels. |
| 185 | + Use the keyword `ticklabelweight` to set both at once. |
| 186 | +xlabelpad, ylabelpad : unit-spec, default: :rc:`label.pad` |
| 187 | + The padding between the x and y axis bounding box and the x and y axis labels. |
189 | 188 | %(units.pt)s |
190 | | -xlabelcolor, ylabelcolor, labelcolor : color-spec, optional |
191 | | - Color for the x and y axis labels. Default is `xcolor`, `ycolor`, and `color` or |
192 | | - :rc:`label.color` if they were not passed. Use `labelcolor` to set both at once. |
193 | | -xlabelsize, ylabelsize, labelsize : unit-spec or str, optional |
194 | | - Font size for the x and y axis labels. Default is :rc:`label.size`. |
| 189 | +xlabelcolor, ylabelcolor, labelcolor : color-spec, default: :rc:`label.color` |
| 190 | + Color for the x and y axis labels. Defaults are `xcolor`, `ycolor`, and `color` |
| 191 | + if they were passed. Use the keyword `labelcolor` to set both at once. |
| 192 | +xlabelsize, ylabelsize, labelsize : unit-spec or str, default: :rc:`label.size` |
| 193 | + Font size for the x and y axis labels. |
195 | 194 | %(units.pt)s |
196 | | - Use `labelsize` to set both at once. |
197 | | -xlabelweight, ylabelweight, labelweight : str, optional |
198 | | - Font weight for the x and y axis labels. Default is :rc:`label.weight`. |
199 | | - Use `labelweight` to set both at once. |
200 | | -fixticks : bool, optional |
201 | | - Whether to always transform the tick locators to a |
202 | | - `~matplotlib.ticker.FixedLocator` instance. Default is ``False``. |
203 | | - If your axis ticks are doing weird things (for example, ticks |
204 | | - drawn outside of the axis spine), try setting this to ``True``. |
| 195 | + Use the keyword `labelsize` to set both at once. |
| 196 | +xlabelweight, ylabelweight, labelweight : str, default: :rc:`label.weight` |
| 197 | + Font weight for the x and y axis labels. |
| 198 | + Use the keyword `labelweight` to set both at once. |
| 199 | +fixticks : bool, default: False |
| 200 | + Whether to transform the tick locators to a `~matplotlib.ticker.FixedLocator`. |
| 201 | + If your axis ticks are doing weird things (for example, ticks are drawn |
| 202 | + outside of the axis spine) you can try setting this to ``True``. |
205 | 203 | """ |
206 | 204 | docstring._snippet_manager['cartesian.format'] = _format_docstring |
207 | 205 |
|
|
0 commit comments