|
20 | 20 | .. figure:: ../../gallery/axisartist/images/sphx_glr_demo_floating_axis_001.png |
21 | 21 | :target: ../../gallery/axisartist/demo_floating_axis.html |
22 | 22 | :align: center |
23 | | - :scale: 50 |
24 | 23 |
|
25 | 24 | Since it uses special artists, some Matplotlib commands that work on |
26 | 25 | Axes.xaxis and Axes.yaxis may not work. |
|
66 | 65 | .. figure:: ../../gallery/axisartist/images/sphx_glr_simple_axisline3_001.png |
67 | 66 | :target: ../../gallery/axisartist/simple_axisline3.html |
68 | 67 | :align: center |
69 | | - :scale: 50 |
70 | 68 |
|
71 | 69 | It is also possible to add a horizontal axis. For example, you may have an |
72 | 70 | horizontal axis at y=0 (in data coordinate). :: |
|
76 | 74 | .. figure:: ../../gallery/axisartist/images/sphx_glr_simple_axisartist1_001.png |
77 | 75 | :target: ../../gallery/axisartist/simple_axisartist1.html |
78 | 76 | :align: center |
79 | | - :scale: 50 |
80 | 77 |
|
81 | 78 | Or a fixed axis with some offset :: |
82 | 79 |
|
|
100 | 97 | .. figure:: ../../gallery/axisartist/images/sphx_glr_demo_parasite_axes2_001.png |
101 | 98 | :target: ../../gallery/axisartist/demo_parasite_axes2.html |
102 | 99 | :align: center |
103 | | - :scale: 50 |
104 | 100 |
|
105 | 101 | Curvilinear Grid |
106 | 102 | ---------------- |
|
111 | 107 | .. figure:: ../../gallery/axisartist/images/sphx_glr_demo_curvelinear_grid_001.png |
112 | 108 | :target: ../../gallery/axisartist/demo_curvelinear_grid.html |
113 | 109 | :align: center |
114 | | - :scale: 50 |
115 | 110 |
|
116 | 111 | Floating Axes |
117 | 112 | ------------- |
|
122 | 117 | .. figure:: ../../gallery/axisartist/images/sphx_glr_demo_floating_axes_001.png |
123 | 118 | :target: ../../gallery/axisartist/demo_floating_axes.html |
124 | 119 | :align: center |
125 | | - :scale: 50 |
126 | 120 |
|
127 | 121 | axisartist namespace |
128 | 122 | ==================== |
|
155 | 149 | .. figure:: ../../gallery/axisartist/images/sphx_glr_demo_floating_axis_001.png |
156 | 150 | :target: ../../gallery/axisartist/demo_floating_axis.html |
157 | 151 | :align: center |
158 | | - :scale: 50 |
159 | 152 |
|
160 | 153 | *mpl_toolkits.axisartist.Axes* class defines a *axis* attribute, which |
161 | 154 | is a dictionary of AxisArtist instances. By default, the dictionary |
|
317 | 310 | .. figure:: ../../gallery/axisartist/images/sphx_glr_simple_axis_direction01_001.png |
318 | 311 | :target: ../../gallery/axisartist/simple_axis_direction01.html |
319 | 312 | :align: center |
320 | | - :scale: 50 |
321 | 313 |
|
322 | 314 | The parameter for set_axis_direction is one of ["left", "right", |
323 | 315 | "bottom", "top"]. |
|
343 | 335 | .. figure:: ../../gallery/axisartist/images/sphx_glr_axis_direction_001.png |
344 | 336 | :target: ../../gallery/axisartist/axis_direction.html |
345 | 337 | :align: center |
346 | | - :scale: 50 |
347 | 338 |
|
348 | 339 | On the other hand, there is a concept of "axis_direction". This is a |
349 | 340 | default setting of above properties for each, "bottom", "left", "top", |
|
369 | 360 | .. figure:: ../../gallery/axisartist/images/sphx_glr_demo_axis_direction_001.png |
370 | 361 | :target: ../../gallery/axisartist/demo_axis_direction.html |
371 | 362 | :align: center |
372 | | - :scale: 50 |
373 | 363 |
|
374 | 364 | The axis_direction can be adjusted in the AxisArtist level, or in the |
375 | 365 | level of its child artists, i.e., ticks, ticklabels, and axis-label. :: |
|
401 | 391 | .. figure:: ../../gallery/axisartist/images/sphx_glr_simple_axis_direction03_001.png |
402 | 392 | :target: ../../gallery/axisartist/simple_axis_direction03.html |
403 | 393 | :align: center |
404 | | - :scale: 50 |
405 | 394 |
|
406 | 395 | So, in summary, |
407 | 396 |
|
|
437 | 426 | .. figure:: ../../gallery/axisartist/images/sphx_glr_demo_ticklabel_alignment_001.png |
438 | 427 | :target: ../../gallery/axisartist/demo_ticklabel_alignment.html |
439 | 428 | :align: center |
440 | | - :scale: 50 |
441 | 429 |
|
442 | 430 | Adjusting pad |
443 | 431 | ------------- |
|
453 | 441 | .. figure:: ../../gallery/axisartist/images/sphx_glr_simple_axis_pad_001.png |
454 | 442 | :target: ../../gallery/axisartist/simple_axis_pad.html |
455 | 443 | :align: center |
456 | | - :scale: 50 |
457 | 444 |
|
458 | 445 | GridHelper |
459 | 446 | ========== |
@@ -540,7 +527,6 @@ def inv_tr(x, y): |
540 | 527 | .. figure:: ../../gallery/axisartist/images/sphx_glr_demo_curvelinear_grid_001.png |
541 | 528 | :target: ../../gallery/axisartist/demo_curvelinear_grid.html |
542 | 529 | :align: center |
543 | | - :scale: 50 |
544 | 530 |
|
545 | 531 | FloatingAxis |
546 | 532 | ============ |
|
0 commit comments