wwrechard / pydlm

A python library for Bayesian time series modeling
BSD 3-Clause "New" or "Revised" License
475 stars 98 forks source link

How to save plotPredictN result in an image #67

Closed smama65 closed 11 months ago

smama65 commented 11 months ago

Thank you for your great method and implementation.

May I kindly ask you, how to save the result of plotPredictN as a png image?

smama65 commented 11 months ago

I added following function to pydlm/plot/dlmplot to save plot and call this function on pydlm/plot/dlmPlotMod

def plotsave(fig_name): """ Save the plot

"""
plt.savefig(fig_name, dpi=300)