8000 axisartist tutorial fixes. · matplotlib/matplotlib@915f605 · GitHub
[go: up one dir, main page]

Skip to content

Commit 915f605

Browse files
committed
axisartist tutorial fixes.
mpl -> Matplotlib (and fix capitalization); Line2d -> Line2D.
1 parent 1c6ee08 commit 915f605

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. 10000 , axisartist uses a special
1717
artist (AxisArtist) that can handle ticks, ticklines, etc. for
1818
curved coordinate systems.
@@ -141,11 +141,11 @@
141141
142142
The *axisartist* namespace includes a derived Axes implementation. The
143143
biggest difference is that the artists responsible to draw axis line,
144-
ticks, ticklabel and axis labels are separated out from the mpl's Axis
145-
class, which are much more than artists in the original mpl. This
144+
ticks, ticklabel and axis labels are separated out from the Matplotlib's Axis
145+
class, which are much more than artists in the original Matplotlib. This
146146
change was strongly motivated to support curvilinear grid. Here are a
147147
few things that mpl_toolkits.axisartist.Axes is different from original
148-
Axes from mpl.
148+
Axes from Matplotlib.
149149
150150
* Axis elements (axis line(spine), ticks, ticklabel and axis labels)
151151
are drawn by a AxisArtist instance. Unlike Axis, left, right, top
@@ -187,8 +187,8 @@
187187
location is delegated to an instance of GridHelper class.
188188
mpl_toolkits.axisartist.Axes class uses GridHelperRectlinear as a grid
189189
helper. The GridHelperRectlinear class is a wrapper around the *xaxis*
190-
and *yaxis* of mpl's original Axes, and it was meant to work as the
191-
way how mpl's original axes works. For example, tick location changes
190+
and *yaxis* of Matplotlib's original Axes, and it was meant to work as the
191+
way how Matplotlib's original axes works. For example, tick location changes
192192
using set_ticks method and etc. should work as expected. But change in
193193
artist properties (e.g., color) will not work in general, although
194194
some effort has been made so that some often-change attributes (color,
@@ -209,12 +209,12 @@
209209
line
210210
----
211211
212-
Derived from Line2d class. Responsible for drawing a spinal(?) line.
212+
Derived from Line2D class. Responsible for drawing a spinal(?) line.
213213
214214
major_ticks, minor_ticks
215215
------------------------
216216
217-
Derived from Line2d class. Note that ticks are markers.
217+
Derived from Line2D class. Note that ticks are markers.
218218
219219
major_ticklabels, minor_ticklabels
220220
----------------------------------
@@ -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)
0