|
1 | 1 | r"""
|
2 |
| -============================== |
3 |
| -Overview of axisartist toolkit |
4 |
| -============================== |
5 |
| -
|
6 |
| -The axisartist toolkit tutorial. |
| 2 | +====================== |
| 3 | +The axisartist toolkit |
| 4 | +====================== |
7 | 5 |
|
8 | 6 | .. warning::
|
9 | 7 | *axisartist* uses a custom Axes class
|
|
267 | 265 |
|
268 | 266 | 1. Changing tick locations and label.
|
269 | 267 |
|
270 |
| - Same as the original Matplotlib's axes:: |
| 268 | + Same as the original Matplotlib's axes:: |
271 | 269 |
|
272 |
| - ax.set_xticks([1, 2, 3]) |
| 270 | + ax.set_xticks([1, 2, 3]) |
273 | 271 |
|
274 | 272 | 2. Changing axis properties like color, etc.
|
275 | 273 |
|
276 |
| - Change the properties of appropriate artists. For example, to change |
277 |
| - the color of the ticklabels:: |
| 274 | + Change the properties of appropriate artists. For example, to change |
| 275 | + the color of the ticklabels:: |
278 | 276 |
|
279 | 277 | ax.axis["left"].major_ticklabels.set_color("r")
|
280 | 278 |
|
|
340 | 338 | default setting of above properties for each, "bottom", "left", "top",
|
341 | 339 | and "right" axis.
|
342 | 340 |
|
343 |
| - ========== =========== ========= ========== ========= ========== |
344 |
| - ? ? left bottom right top |
345 |
| - ---------- ----------- --------- ---------- --------- ---------- |
346 |
| - axislabel direction '-' '+' '+' '-' |
347 |
| - axislabel rotation 180 0 0 180 |
348 |
| - axislabel va center top center bottom |
349 |
| - axislabel ha right center right center |
350 |
| - ticklabel direction '-' '+' '+' '-' |
351 |
| - ticklabels rotation 90 0 -90 180 |
352 |
| - ticklabel ha right center right center |
353 |
| - ticklabel va center baseline center baseline |
354 |
| - ========== =========== ========= ========== ========= ========== |
| 341 | +========== =========== ========= ========== ========= ========== |
| 342 | + ? ? left bottom right top |
| 343 | +---------- ----------- --------- ---------- --------- ---------- |
| 344 | +axislabel direction '-' '+' '+' '-' |
| 345 | +axislabel rotation 180 0 0 180 |
| 346 | +axislabel va center top center bottom |
| 347 | +axislabel ha right center right center |
| 348 | +ticklabel direction '-' '+' '+' '-' |
| 349 | +ticklabels rotation 90 0 -90 180 |
| 350 | +ticklabel ha right center right center |
| 351 | +ticklabel va center baseline center baseline |
| 352 | +========== =========== ========= ========== ========= ========== |
355 | 353 |
|
356 | 354 | And, 'set_axis_direction("top")' means to adjust the text rotation
|
357 | 355 | etc, for settings suitable for "top" axis. The concept of axis
|
@@ -490,10 +488,10 @@ def inv_tr(x, y):
|
490 | 488 | # has a cycle of 360 degree.
|
491 | 489 | # The second coordinate (latitude, but radius in polar) has a minimum of 0
|
492 | 490 | extreme_finder = angle_helper.ExtremeFinderCycle(20, 20,
|
493 |
| - lon_cycle = 360, |
494 |
| - lat_cycle = None, |
495 |
| - lon_minmax = None, |
496 |
| - lat_minmax = (0, np.inf), |
| 491 | + lon_cycle=360, |
| 492 | + lat_cycle=None, |
| 493 | + lon_minmax=None, |
| 494 | + lat_minmax=(0, np.inf), |
497 | 495 | )
|
498 | 496 |
|
499 | 497 | # Find a grid values appropriate for the coordinate (degree,
|
|
0 commit comments