Skip to content

Commit

Permalink
Fixes for aspects on plots with projections
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 16, 2017
1 parent 1bce5be commit 0d6a0fb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions holoviews/plotting/mpl/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ def _finalize_axis(self, key, title=None, dimensions=None, ranges=None, xticks=N
self._set_axis_limits(axis, element, subplots, ranges)

# Apply aspects
self._set_aspect(axis, self.aspect)
if self.aspect is not None and self.projection != 'polar':
self._set_aspect(axis, self.aspect)

if not subplots and not self.drawn:
self._finalize_artist(key)
Expand Down Expand Up @@ -295,9 +296,7 @@ def _set_aspect(self, axes, aspect):
"""
Set the aspect on the axes based on the aspect setting.
"""
if aspect is None:
return
elif isinstance(aspect, util.basestring) and aspect != 'square':
if isinstance(aspect, util.basestring) and aspect != 'square':
axes.set_aspect(aspect)
return

Expand Down

0 comments on commit 0d6a0fb

Please sign in to comment.