Skip to content

Commit

Permalink
plot method returns the axes
Browse files Browse the repository at this point in the history
  • Loading branch information
sushobhana committed Aug 26, 2018
1 parent 7448596 commit 92bc2fb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion regions/core/bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,12 @@ def plot(self, origin=(0, 0), ax=None, **kwargs):
is used.
kwargs
Any keyword arguments accepted by `matplotlib.patches.Patch`.
Returns
-------
ax: `~matplotlib.axes`
Axes on which the patch is added.
"""

reg = self.to_region()
reg.plot(origin=origin, ax=ax, **kwargs)
return reg.plot(origin=origin, ax=ax, **kwargs)

0 comments on commit 92bc2fb

Please sign in to comment.