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

Skip to content

Commit 3257892

Browse files
authored
Merge pull request #15542 from meeseeksmachine/auto-backport-of-pr-15540-on-v3.2.x
Backport PR #15540 on branch v3.2.x (axisartist tutorial fixes.)
2 parents aa41446 + ac7672d commit 3257892

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

tutorials/toolkits/axisartist.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
88
.. warning::
99
*axisartist* uses a custom Axes class
10-
(derived from the mpl's original Axes class).
10+
(derived from the Matplotlib's original Axes class).
1111
As a side effect, some commands (mostly tick-related) do not work.
1212
1313
The *axisartist* contains a custom Axes class that is meant to support
1414
curvilinear grids (e.g., the world coordinate system in astronomy).
15-
Unlike mpl's original Axes class which uses Axes.xaxis and Axes.yaxis
15+
Unlike Matplotlib's original Axes class which uses Axes.xaxis and Axes.yaxis
1616
to draw ticks, ticklines, etc., axisartist uses a special
1717
artist (AxisArtist) that can handle ticks, ticklines, etc. for
1818
curved coordinate systems.
@@ -142,11 +142,11 @@
142142
143143
The *axisartist* namespace includes a derived Axes implementation. The
144144
biggest difference is that the artists responsible to draw axis line,
145-
ticks, ticklabel and axis labels are separated out from the mpl's Axis
146-
class, which are much more than artists in the original mpl. This
145+
ticks, ticklabel and axis labels are separated out from the Matplotlib's Axis
146+
class, which are much more than artists in the original Matplotlib. This
147147
change was strongly motivated to support curvilinear grid. Here are a
148148
few things that mpl_toolkits.axisartist.Axes is different from original
149-
Axes from mpl.
149+
Axes from Matplotlib.
150150
151151
* Axis elements (axis line(spine), ticks, ticklabel and axis labels)
152152
are drawn by a AxisArtist instance. Unlike Axis, left, right, top
@@ -188,8 +188,8 @@
188188
location is delegated to an instance of GridHelper class.
189189
mpl_toolkits.axisartist.Axes class uses GridHelperRectlinear as a grid
190190
helper. The GridHelperRectlinear class is a wrapper around the *xaxis*
191-
and *yaxis* of mpl's original Axes, and it was meant to work as the
192-
way how mpl's original axes works. For example, tick location changes
191+
and *yaxis* of Matplotlib's original Axes, and it was meant to work as the
192+
way how Matplotlib's original axes works. For example, tick location changes
193193
using set_ticks method and etc. should work as expected. But change in
194194
artist properties (e.g., color) will not work in general, although
195195
some effort has been made so that some often-change attributes (color,
@@ -210,12 +210,12 @@
210210
line
211211
----
212212
213-
Derived from Line2d class. Responsible for drawing a spinal(?) line.
213+
Derived from Line2D class. Responsible for drawing a spinal(?) line.
214214
215215
major_ticks, minor_ticks
216216
------------------------
217217
218-
Derived from Line2d class. Note that ticks are markers.
218+
Derived from Line2D class. Note that ticks are markers.
219219
220220
major_ticklabels, minor_ticklabels
221221
----------------------------------
@@ -288,7 +288,7 @@
288288
289289
1. Changing tick locations and label.
290290
291-
Same as the original mpl's axes.::
291+
Same as the original Matplotlib's axes.::
292292
293293
ax.set_xticks([1, 2, 3])
294294
@@ -529,7 +529,7 @@ def inv_tr(x, y):
529529
530530
fig.add_subplot(ax1)
531531
532-
You may use matplotlib's Transform instance instead (but a
532+
You may use Matplotlib's Transform instance instead (but a
533533
inverse transformation must be defined). Often, coordinate range in a
534534
curved coordinate system may have a limited range, or may have
535535
cycles. In those cases, a more customized version of grid helper is
@@ -557,10 +557,10 @@ def inv_tr(x, y):
557557
# minute, second). The argument is a approximate number of grids.
558558
grid_locator1 = angle_helper.LocatorDMS(12)
559559
560-
# And also uses an appropriate formatter. Note that the
561-
# acceptable Locator and Formatter classes are different than
562-
# that of mpl's, and you cannot directly use mpl's Locator and
563-
# Formatter here (but may be possible in the future).
560+
# And also uses an appropriate formatter. Note that the acceptable Locator
561+
# and Formatter classes are different than that of Matplotlib's, and you
562+
# cannot directly use Matplotlib's Locator and Formatter here (but may be
563+
# possible in the future).
564564
tick_formatter1 = angle_helper.FormatterDMS()
565565
566566
grid_helper = GridHelperCurveLinear(tr,

0 commit comments

Comments
 (0)