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

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Avoid changing things unneccesarily.
  • Loading branch information
pelson committed Jun 11, 2012
commit 3a4241c2f499b3a0a9967bda07801c59b7b22abc
8 changes: 2 additions & 6 deletions lib/matplotlib/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3514,9 +3514,7 @@ def axhspan(self, ymin, ymax, xmin=0, xmax=1, **kwargs):
* draw a gray rectangle from *y* = 0.25-0.75 that spans the
horizontal extent of the axes::

# draw a gray rectangle from *y* = 0.25-0.75 that spans the
# horizontal extent of the axes
axhspan(0.25, 0.75, facecolor='0.5', alpha=0.5)
>>> axhspan(0.25, 0.75, facecolor='0.5', alpha=0.5)

Valid kwargs are :class:`~matplotlib.patches.Polygon` properties:

Expand Down Expand Up @@ -3572,9 +3570,7 @@ def axvspan(self, xmin, xmax, ymin=0, ymax=1, **kwargs):
* draw a vertical green translucent rectangle from x=1.25 to 1.55 that
spans the yrange of the axes::

# draw a vertical green translucent rectangle from x=1.25 to 1.55
# that spans the yrange of the axes
axvspan(1.25, 1.55, facecolor='g', alpha=0.5)
>>> axvspan(1.25, 1.55, facecolor='g', alpha=0.5)

Valid kwargs are :class:`~matplotlib.patches.Polygon`
properties:
Expand Down
4 changes: 1 addition & 3 deletions lib/matplotlib/projections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ def process_projection_requirements(figure, *args, **kwargs):
projection = 'polar'

# ensure that the resolution keyword is always put into the key
# for polar plots [so that the result of
# plt.subplot(111, projection='polar') can be found with
# plt.gca(projection='polar', resolution=1)]
# for polar plots
if projection == 'polar':
kwargs.setdefault('resolution', 1)

Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/projections/polar.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ def __init__(self, *args, **kwargs):
each pair of data points. Set to 1 to disable
interpolation.
"""
self._rpad = 0.05
self.resolution = kwargs.pop('resolution', 1)
self._default_theta_offset = kwargs.pop('theta_offset', 0)
self._default_theta_direction = kwargs.pop('theta_direction', 1)
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,6 @@ def test_scatter_plot():
ax = plt.axes()
ax.scatter([3, 4, 2, 6], [2, 5, 2, 3], c=['r', 'y', 'b', 'lime'], s=[24, 15, 19, 29])


def test_as_mpl_axes_api():
# tests the _as_mpl_axes api
from matplotlib.projections.polar import PolarAxes
Expand Down
4 changes: 0 additions & 4 deletions lib/matplotlib/tests/test_tightlayout.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,3 @@ def test_tight_layout6():
None, 1 - (gs2.top-top)],
h_pad=0.5)


if __name__=='__main__':
import nose
nose.runmodule(argv=['-s','--with-doctest'], exit=False)