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

Skip to content

Commit 602d2ca

Browse files
authored
Merge pull request #16101 from anntzer/projdoc
Fix incorrect doc regarding projections.
2 parents 3d3c930 + ebac44a commit 602d2ca

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

doc/devel/add_new_projection.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ that handle data in two or more dimensions at a time, are called
1616
"projections".
1717

1818
From the user's perspective, the scale of a plot can be set with
19-
:meth:`~matplotlib.axes.Axes.set_xscale` and
20-
:meth:`~matplotlib.axes.Axes.set_yscale`. Projections can be chosen
21-
using the ``projection`` keyword argument to the
22-
:func:`~matplotlib.pylab.plot` or :func:`~matplotlib.pylab.subplot`
23-
functions, e.g.::
19+
`.Axes.set_xscale` and `.Axes.set_yscale`. Projections can be chosen using the
20+
*projection* keyword argument of functions that create Axes, such as
21+
`.pyplot.subplot` or `.pyplot.axes`, e.g. ::
2422

25-
plot(x, y, projection="custom")
23+
plt.subplot(projection="custom")
2624

2725
This document is intended for developers and advanced users who need
2826
to create new scales and projections for Matplotlib. The necessary

0 commit comments

Comments
 (0)