Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

axisartist tutorial markup fixes. #16289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2020
Merged
Changes from all commits
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
53 changes: 30 additions & 23 deletions 53 tutorials/toolkits/axisartist.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@

ax.axis["top", "right"].toggle(ticklabels=True)

Note that 'ax.axis["top", "right"]' returns a simple proxy object that
Note that ``ax.axis["top", "right"]`` returns a simple proxy object that
translate above code to something like below. ::

for n in ["top", "right"]:
Expand All @@ -288,7 +288,7 @@

1. Changing tick locations and label.

Same as the original Matplotlib's axes.::
Same as the original Matplotlib's axes::

ax.set_xticks([1, 2, 3])

Expand All @@ -308,15 +308,15 @@
ax.axis[:].major_ticklabels.set_color("r")

4. To change the tick size (length), you need to use
axis.major_ticks.set_ticksize method. To change the direction of
the ticks (ticks are in opposite direction of ticklabels by
default), use axis.major_ticks.set_tick_out method.
axis.major_ticks.set_ticksize method. To change the direction of
the ticks (ticks are in opposite direction of ticklabels by
default), use axis.major_ticks.set_tick_out method.

To change the pad between ticks and ticklabels, use
axis.major_ticklabels.set_pad method.
To change the pad between ticks and ticklabels, use
axis.major_ticklabels.set_pad method.

To change the pad between ticklabels and axis label,
axis.label.set_pad method.
To change the pad between ticklabels and axis label,
axis.label.set_pad method.

Rotation and Alignment of TickLabels
====================================
Expand Down Expand Up @@ -451,21 +451,28 @@
So, in summary,

* AxisArtist's methods
* set_axis_direction: "left", "right", "bottom", or "top"
* set_ticklabel_direction: "+" or "-"
* set_axislabel_direction: "+" or "-"
* invert_ticklabel_direction

- set_axis_direction: "left", "right", "bottom", or "top"
- set_ticklabel_direction: "+" or "-"
- set_axislabel_direction: "+" or "-"
- invert_ticklabel_direction

* Ticks' methods (major_ticks and minor_ticks)
* set_tick_out: True or False
* set_ticksize: size in points

- set_tick_out: True or False
- set_ticksize: size in points

* TickLabels' methods (major_ticklabels and minor_ticklabels)
* set_axis_direction: "left", "right", "bottom", or "top"
* set_rotation: angle with respect to the reference direction
* set_ha and set_va: see below

- set_axis_direction: "left", "right", "bottom", or "top"
- set_rotation: angle with respect to the reference direction
- set_ha and set_va: see below

* AxisLabels' methods (label)
* set_axis_direction: "left", "right", "bottom", or "top"
* set_rotation: angle with respect to the reference direction
* set_ha and set_va

- set_axis_direction: "left", "right", "bottom", or "top"
- set_rotation: angle with respect to the reference direction
- set_ha and set_va

Adjusting ticklabels alignment
------------------------------
Expand Down Expand Up @@ -615,8 +622,8 @@ def inv_tr(x, y):
* No easy way to support a user customized tick location (for
curvilinear grid). A new Locator class needs to be created.

* FloatingAxis may have coordinate limits, e.g., a floating axis of x
= 0, but y only spans from 0 to 1.
* FloatingAxis may have coordinate limits, e.g., a floating axis of x = 0,
but y only spans from 0 to 1.

* The location of axislabel of FloatingAxis needs to be optionally
given as a coordinate value. ex, a floating axis of x=0 with label at y=1
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.