8000 Tidied up branch a little. · pelson/matplotlib@53cbea6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 53cbea6

Browse files
author
Phil Elson
committed
Tidied up branch a little.
1 parent 40a0ec9 commit 53cbea6

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

doc/devel/add_new_projection.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ elements:
100100
"advanced" feature left to the reader, but there is an example of
101101
this for polar plots in :mod:`matplotlib.projections.polar`.
102102

103-
- Optionally define the class attribute ``NAME`` which can be
104-
registered with :func:`matplotlib.projections.register_projection`
105-
and used for simple projection instantiation such as
106-
``plt.axes(projection=NAME)``, where ``NAME`` is a string.
107-
108103
- Any additional methods for additional convenience or features.
109104

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

lib/matplotlib/projections/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ def get_projection_class(projection=None):
6060
return projection_registry.get_projection_class(projection)
6161
except KeyError:
6262
raise ValueError("Unknown projection '%s'" % projection)
63-
63+
64+
6465

6566
def projection_factory(projection, figure, rect, **kwargs):
6667
"""

lib/matplotlib/projections/polar.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -757,14 +757,3 @@ def drag_pan(self, button, key, x, y):
757757
# return mpath.Path(result, codes)
758758
# transform_path_non_affine = transform_path
759759

760-
class Polar(object):
761-
"""
762-
Represents the polar projection, a Polar instance can be used to initialise
763-
a polar plot in the standard ways, for example::
764-
765-
plt.axes(projection=Polar())
766-
767-
"""
768-
def _as_mpl_axes(self):
769-
# implement the matplotlib axes interface
770-
return PolarAxes, {}

0 commit comments

Comments
 (0)
0