Skip to content

Commit 5811602

Browse files
author
Chang She
committed
BUG: return ax.get_figure() in scatter_plot if ax argument is not None
1 parent 7298313 commit 5811602

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tools/plotting.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,8 @@ def plot_group(group, ax):
705705
if ax is None:
706706
fig = plt.figure()
707707
ax = fig.add_subplot(111)
708+
else:
709+
fig = ax.get_figure()
708710
plot_group(data, ax)
709711
ax.set_ylabel(str(y))
710712
ax.set_xlabel(str(x))

0 commit comments

Comments
 (0)