diff --git a/python/prophet/plot.py b/python/prophet/plot.py index 3bc1327..f6e618a 100644 --- a/python/prophet/plot.py +++ b/python/prophet/plot.py @@ -63,6 +63,7 @@ def plot( ------- A matplotlib figure. """ + user_provided_ax = False if ax is None else True if ax is None: fig = plt.figure(facecolor='w', figsize=figsize) ax = fig.add_subplot(111) @@ -89,7 +90,8 @@ def plot( ax.set_ylabel(ylabel) if include_legend: ax.legend() - fig.tight_layout() + if not user_provided_ax: + fig.tight_layout() return fig