Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cdce7af

Browse files
committed
Fixed attribute name doc.
1 parent ea9a5b3 commit cdce7af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎doc/devel/add_new_projection.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ elements:
104104

105105
Once the projection axes is defined, it can be used in one of two ways:
106106

107-
- By defining the class attribute ``NAME``, the projection axes can be
107+
- By defining the class attribute ``name``, the projection axes can be
108108
registered with :func:`matplotlib.projections.register_projection`
109109
and subsequently simply invoked by name::
110110

111-
plt.axes(projection=NAME)
111+
plt.axes(projection='my_proj_name')
112112

113113
- For more complex, parameterisable projections, a generic "projection"
114114
object may be defined which includes the method ``_as_mpl_axes``.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /