Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

copy matlibplot plot image from jupyter lab

Gurus,

I was trying to copy a python plot from jupyterlab. Although the image looks fine under jupyterlab, it shows a totally black theme after it is pasted to my word doc. Could you please let me know how to solve this? Thx.

My code was

x=[1,2,3]
y=[1,2,3] 
plt.scatter(x, y)

And the image was attached enter image description here

like image 633
Shu Pan Avatar asked Aug 25 '26 00:08

Shu Pan


1 Answers

A slightly faster method than what user2036476 has suggested:

  1. Hold down shift while right-clicking the plot
  2. Select "Copy image"

done

like image 172
Oren Matar Avatar answered Aug 26 '26 22:08

Oren Matar