|
7 | 7 |
|
8 | 8 | .. warning::
|
9 | 9 | *axisartist* uses a custom Axes class
|
10 |
| - (derived from the mpl's original Axes class). |
| 10 | + (derived from the Matplotlib's original Axes class). |
11 | 11 | As a side effect, some commands (mostly tick-related) do not work.
|
12 | 12 |
|
13 | 13 | The *axisartist* contains a custom Axes class that is meant to support
|
14 | 14 | 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 |
16 | 16 | to draw ticks, ticklines, etc.
10000
, axisartist uses a special
|
17 | 17 | artist (AxisArtist) that can handle ticks, ticklines, etc. for
|
18 | 18 | curved coordinate systems.
|
|
141 | 141 |
|
142 | 142 | The *axisartist* namespace includes a derived Axes implementation. The
|
143 | 143 | 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 |
146 | 146 | change was strongly motivated to support curvilinear grid. Here are a
|
147 | 147 | few things that mpl_toolkits.axisartist.Axes is different from original
|
148 |
| -Axes from mpl. |
| 148 | +Axes from Matplotlib. |
149 | 149 |
|
150 | 150 | * Axis elements (axis line(spine), ticks, ticklabel and axis labels)
|
151 | 151 | are drawn by a AxisArtist instance. Unlike Axis, left, right, top
|
|
187 | 187 | location is delegated to an instance of GridHelper class.
|
188 | 188 | mpl_toolkits.axisartist.Axes class uses GridHelperRectlinear as a grid
|
189 | 189 | 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 |
192 | 192 | using set_ticks method and etc. should work as expected. But change in
|
193 | 193 | artist properties (e.g., color) will not work in general, although
|
194 | 194 | some effort has been made so that some often-change attributes (color,
|
|
209 | 209 | line
|
210 | 210 | ----
|
211 | 211 |
|
212 |
| -Derived from Line2d class. Responsible for drawing a spinal(?) line. |
| 212 | +Derived from Line2D class. Responsible for drawing a spinal(?) line. |
213 | 213 |
|
214 | 214 | major_ticks, minor_ticks
|
215 | 215 | ------------------------
|
216 | 216 |
|
217 |
| -Derived from Line2d class. Note that ticks are markers. |
| 217 | +Derived from Line2D class. Note that ticks are markers. |
218 | 218 |
|
219 | 219 | major_ticklabels, minor_ticklabels
|
220 | 220 | ----------------------------------
|
|
288 | 288 |
|
289 | 289 | 1. Changing tick locations and label.
|
290 | 290 |
|
291 |
| - Same as the original mpl's axes.:: |
| 291 | + Same as the original Matplotlib's axes.:: |
292 | 292 |
|
293 | 293 | ax.set_xticks([1, 2, 3])
|
294 | 294 |
|
@@ -529,7 +529,7 @@ def inv_tr(x, y):
|
529 | 529 |
|
530 | 530 | fig.add_subplot(ax1)
|
531 | 531 |
|
532 |
| -You may use matplotlib's Transform instance instead (but a |
| 532 | +You may use Matplotlib's Transform instance instead (but a |
533 | 533 | inverse transformation must be defined). Often, coordinate range in a
|
534 | 534 | curved coordinate system may have a limited range, or may have
|
535 | 535 | cycles. In those cases, a more customized version of grid helper is
|
@@ -557,10 +557,10 @@ def inv_tr(x, y):
|
557 | 557 | # minute, second). The argument is a approximate number of grids.
|
558 | 558 | grid_locator1 = angle_helper.LocatorDMS(12)
|
559 | 559 |
|
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). |
564 | 564 | tick_formatter1 = angle_helper.FormatterDMS()
|
565 | 565 |
|
566 | 566 | grid_helper = GridHelperCurveLinear(tr,
|
|
0 commit comments