Python Forum

Full Version: Graphs from Jupyter notebook to word
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Everyone,

Is there an easier way to get graphs from Jupyter notebook to work? I have several graphs to transfer but when I copy paste the size is horrible and the colors are now faded (they weren't for some reason a few weeks ago).

# gca stands for 'get current axis'
plot_df = Loss_df

ax = plt.gca()

plot_df.plot(kind='line',use_index=True,y='QQ_GDP',ax=ax)
plot_df.plot(kind='line', use_index=True,y='VAR_Q1', color='red', ax=ax)
plt.ylabel('GDP')
plt.title('VAR Quarter 1')
plt.show()
Thanks