Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
separate and clarify axisartist default tables
  • Loading branch information
story645 committed Oct 6, 2023
commit 52d87ca317a2f6ed7a272422ace8a2e5d3f2138a
43 changes: 31 additions & 12 deletions galleries/users_explain/toolkits/axisartist.rst
Original file line number Diff line number Diff line change
Expand Up @@ -341,18 +341,37 @@ On the other hand, there is a concept of "axis_direction". This is a
default setting of above properties for each, "bottom", "left", "top",
and "right" axis.

========== ========== ========= ========== ========= ==========
label type parameter left bottom right top
========== ========== ========= ========== ========= ==========
axislabel direction '-' '+' '+' '-'
axislabel rotation 180 0 0 180
axislabel va center top center bottom
axislabel ha right center right center
ticklabel direction '-' '+' '+' '-'
ticklabel rotation 90 0 -90 180
ticklabel ha right center right center
ticklabel va center baseline center baseline
========== ========== ========= ========== ========= ==========
.. table:: ``axislabel`` property defaults

+---------------------+-----------------+----------------+----------------------+--------------------+
| reference direction | label direction | label rotation | horizontal alignment | vertical alignment |
+=====================+=================+================+======================+====================+
| left | '-' | 180 | right | center |
+---------------------+-----------------+----------------+----------------------+--------------------+
| bottom | '+' | 0 | center | top |
+---------------------+-----------------+----------------+----------------------+--------------------+
| right | '+' | 0 | right | center |
+---------------------+-----------------+----------------+----------------------+--------------------+
| top | '-' | 180 | center | bottom |
+---------------------+-----------------+----------------+----------------------+--------------------+



.. table:: ``ticklabel`` property defaults

+---------------------+-----------------+----------------+----------------------+--------------------+
| reference direction | label direction | label rotation | horizontal alignment | vertical alignment |
+=====================+=================+================+======================+====================+
| left | '-' | 90 | right | center |
+---------------------+-----------------+----------------+----------------------+--------------------+
| bottom | '+' | 0 | center | baseline |
+---------------------+-----------------+----------------+----------------------+--------------------+
| right | '+' | -90 | right | center |
+---------------------+-----------------+----------------+----------------------+--------------------+
| top | '-' | 180 | center | baseline |
+---------------------+-----------------+----------------+----------------------+--------------------+



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