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

Skip to content

Commit 7879cb0

Browse files
authored
Merge pull request #16289 from anntzer/aat
axisartist tutorial markup fixes.
2 parents 19989bf + 7e84714 commit 7879cb0

File tree

1 file changed

+30
-23
lines changed

1 file changed

+30
-23
lines changed

tutorials/toolkits/axisartist.py

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
269269
ax.axis["top", "right"].toggle(ticklabels=True)
270270
271-
Note that 'ax.axis["top", "right"]' returns a simple proxy object that
271+
Note that ``ax.axis["top", "right"]`` returns a simple proxy object that
272272
translate above code to something like below. ::
273273
274274
for n in ["top", "right"]:
@@ -288,7 +288,7 @@
288288
289289
1. Changing tick locations and label.
290290
291-
Same as the original Matplotlib's axes.::
291+
Same as the original Matplotlib's axes::
292292
293293
ax.set_xticks([1, 2, 3])
294294
@@ -308,15 +308,15 @@
308308
ax.axis[:].major_ticklabels.set_color("r")
309309
310310
4. To change the tick size (length), you need to use
311-
axis.major_ticks.set_ticksize method. To change the direction of
312-
the ticks (ticks are in opposite direction of ticklabels by
313-
default), use axis.major_ticks.set_tick_out method.
311+
axis.major_ticks.set_ticksize method. To change the direction of
312+
the ticks (ticks are in opposite direction of ticklabels by
313+
default), use axis.major_ticks.set_tick_out method.
314314
315-
To change the pad between ticks and ticklabels, use
316-
axis.major_ticklabels.set_pad method.
315+
To change the pad between ticks and ticklabels, use
316+
axis.major_ticklabels.set_pad method.
317317
318-
To change the pad between ticklabels and axis label,
319-
axis.label.set_pad method.
318+
To change the pad between ticklabels and axis label,
319+
axis.label.set_pad method.
320320
321321
Rotation and Alignment of TickLabels
322322
====================================
@@ -451,21 +451,28 @@
451451
So, in summary,
452452
453453
* AxisArtist's methods
454-
* set_axis_direction: "left", "right", "bottom", or "top"
455-
* set_ticklabel_direction: "+" or "-"
456-
* set_axislabel_direction: "+" or "-"
457-
* invert_ticklabel_direction
454+
455+
- set_axis_direction: "left", "right", "bottom", or "top"
456+
- set_ticklabel_direction: "+" or "-"
457+
- set_axislabel_direction: "+" or "-"
458+
- invert_ticklabel_direction
459+
458460
* Ticks' methods (major_ticks and minor_ticks)
459-
* set_tick_out: True or False
460-
* set_ticksize: size in points
461+
462+
- set_tick_out: True or False
463+
- set_ticksize: size in points
464+
461465
* TickLabels' methods (major_ticklabels and minor_ticklabels)
462-
* set_axis_direction: "left", "right", "bottom", or "top"
463-
* set_rotation: angle with respect to the reference direction
464-
* set_ha and set_va: see below
466+
467+
- set_axis_direction: "left", "right", "bottom", or "top"
468+
- set_rotation: angle with respect to the reference direction
469+
- set_ha and set_va: see below
470+
465471
* AxisLabels' methods (label)
466-
* set_axis_direction: "left", "right", "bottom", or "top"
467-
* set_rotation: angle with respect to the reference direction
468-
* set_ha and set_va
472+
473+
- set_axis_direction: "left", "right", "bottom", or "top"
474+
- set_rotation: angle with respect to the reference direction
475+
- set_ha and set_va
469476
470477
Adjusting ticklabels alignment
471478
------------------------------
@@ -615,8 +622,8 @@ def inv_tr(x, y):
615622
* No easy way to support a user customized tick location (for
616623
curvilinear grid). A new Locator class needs to be created.
617624
618-
* FloatingAxis may have coordinate limits, e.g., a floating axis of x
619-
= 0, but y only spans from 0 to 1.
625+
* FloatingAxis may have coordinate limits, e.g., a floating axis of x = 0,
626+
but y only spans from 0 to 1.
620627
621628
* The location of axislabel of FloatingAxis needs to be optionally
622629
given as a coordinate value. ex, a floating axis of x=0 with label at y=1

0 commit comments

Comments
 (0)