Python Forum
Graphs from Jupyter notebook to word
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Graphs from Jupyter notebook to word
#1
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).

1
2
3
4
5
6
7
8
9
10
# 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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  I'm trying to import a dataset into a Jupyter Notebook Hisilat03 0 759 Mar-24-2025, 09:26 AM
Last Post: Hisilat03
  Jupyter Notebook cell ? flaviu2 6 5,051 Feb-10-2025, 09:39 AM
Last Post: mysqlguider
  import data (.csv) into Jupyter notebook oranstprotonme 2 1,273 Aug-14-2024, 07:08 PM
Last Post: oranstprotonme
  Troubleshooting Jupyter Notebook installation with Python using pip and a venv Drone4four 1 2,390 Jun-04-2024, 10:55 PM
Last Post: Drone4four
  My code works on Jupyter Lab/Notebook, but NOT on Visual Code Editor jst 4 4,513 Nov-15-2023, 06:56 PM
Last Post: jst
  Navigating file directories and paths inside Jupyter Notebook Mark17 5 9,022 Oct-29-2023, 12:40 PM
Last Post: Mark17
  How to programmatically stop a program in Jupyter Notebook? Mark17 11 61,525 Feb-12-2023, 01:41 PM
Last Post: jp21in
Thumbs Up Python 3 Jupyter notebook ternary plot data nicholas 0 1,873 Jan-21-2023, 05:01 PM
Last Post: nicholas
  Plot several graphs on the same row Menthix 1 1,796 Mar-18-2022, 05:47 PM
Last Post: deanhystad
  Opening an empty Jupyter notebook in VSCODE Krischu 3 3,464 Mar-09-2022, 01:57 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020