Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52d87ca

Browse files
committed
separate and clarify axisartist default tables
1 parent a99673c commit 52d87ca

File tree

1 file changed

+31
-12
lines changed

1 file changed

+31
-12
lines changed

galleries/users_explain/toolkits/axisartist.rst

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -341,18 +341,37 @@ On the other hand, there is a concept of "axis_direction". This is a
341341
default setting of above properties for each, "bottom", "left", "top",
342342
and "right" axis.
343343

344-
========== ========== ========= ========== ========= ==========
345-
label type parameter left bottom right top
346-
========== ========== ========= ========== ========= ==========
347-
axislabel direction '-' '+' '+' '-'
348-
axislabel rotation 180 0 0 180
349-
axislabel va center top center bottom
350-
axislabel ha right center right center
351-
ticklabel direction '-' '+' '+' '-'
352-
ticklabel rotation 90 0 -90 180
353-
ticklabel ha right center right center
354-
ticklabel va center baseline center baseline
355-
========== ========== ========= ========== ========= ==========
344+
.. table:: ``axislabel`` property defaults
345+
346+
+---------------------+-----------------+----------------+----------------------+--------------------+
347+
| reference direction | label direction | label rotation | horizontal alignment | vertical alignment |
348+
+=====================+=================+================+======================+====================+
349+
| left | '-' | 180 | right | center |
350+
+---------------------+-----------------+----------------+----------------------+--------------------+
351+
| bottom | '+' | 0 | center | top |
352+
+---------------------+-----------------+----------------+----------------------+--------------------+
353+
| right | '+' | 0 | right | center |
354+
+---------------------+-----------------+----------------+----------------------+--------------------+
355+
| top | '-' | 180 | center | bottom |
356+
+---------------------+-----------------+----------------+----------------------+--------------------+
357+
358+
359+
360+
.. table:: ``ticklabel`` property defaults
361+
362+
+---------------------+-----------------+----------------+----------------------+--------------------+
363+
| reference direction | label direction | label rotation | horizontal alignment | vertical alignment |
364+
+=====================+=================+================+======================+====================+
365+
| left | '-' | 90 | right | center |
366+
+---------------------+-----------------+----------------+----------------------+--------------------+
367+
| bottom | '+' | 0 | center | baseline |
368+
+---------------------+-----------------+----------------+----------------------+--------------------+
369+
| right | '+' | -90 | right | center |
370+
+---------------------+-----------------+----------------+----------------------+--------------------+
371+
| top | '-' | 180 | center | baseline |
372+
+---------------------+-----------------+----------------+----------------------+--------------------+
373+
374+
356375

357376
And, 'set_axis_direction("top")' means to adjust the text rotation
358377
etc, for settings suitable for "top" axis. The concept of axis

0 commit comments

Comments
 (0)