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

Skip to content

Commit ebac44a

Browse files
committed
Fix incorrect doc regarding projections.
`plot(x, y, projection="custom")` (e.g. `projection="polar"`) doesn't actually work (and would go against the mpl model of separating axes and artists that are axes children, anyways).
1 parent b459bc7 commit ebac44a

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)