|
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., axisartist uses a special
|
17 | 17 | artist (AxisArtist) that can handle ticks, ticklines, etc. for
|
18 | 18 | curved coordinate systems.
|
|
142 | 142 |
|
143 | 143 | The *axisartist* namespace includes a derived Axes implementation. The
|
144 | 144 | 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 |
147 | 147 | change was strongly motivated to support curvilinear grid. Here are a
|
148 | 148 | few things that mpl_toolkits.axisartist.Axes is different from original
|
149 |
| -Axes from mpl. |
| 149 | +Axes from Matplotlib. |
150 | 150 |
|
151 | 151 | * Axis elements (axis line(spine), ticks, ticklabel and axis labels)
|
152 | 152 | are drawn by a AxisArtist instance. Unlike Axis, left, right, top
|
|
188 | 188 | location is delegated to an instance of GridHelper class.
|
189 | 189 | mpl_toolkits.axisartist.Axes class uses GridHelperRectlinear as a grid
|
190 | 190 | 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 |
193 | 193 | using set_ticks method and etc. should work as expected. But change in
|
194 | 194 | artist properties (e.g., color) will not work in general, although
|
195 | 195 | some effort has been made so that some often-change attributes (color,
|
|
210 | 210 | line
|
211 | 211 | ----
|
212 | 212 |
|
213 |
| -Derived from Line2d class. Responsible for drawing a spinal(?) line. |
| 213 | +Derived from Line2D class. Responsible for drawing a spinal(?) line. |
214 | 214 |
|
215 | 215 | major_ticks, minor_ticks
|
216 | 216 | ------------------------
|
217 | 217 |
|
218 |
| -Derived from Line2d class. Note that ticks are markers. |
| 218 | +Derived from Line2D class. Note that ticks are markers. |
219 | 219 |
|
220 | 220 | major_ticklabels, minor_ticklabels
|
221 | 221 | ----------------------------------
|
|
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