plot.save different image than plot.show?
I've been wondering why on earth
plot.show() uses different settings:
p = plot(x^2+100, x, frame=True, gridlines=True) p.show() p.save('mydrawing2.pdf')
It draws the image with frames and gridlines, but the PDF is missing those. Is there a good reason why it does not use the same drawing settings for saving? If I wanted to use
save() I have to retype the
frame=True, gridlines=True, ... to the
I've nonetheless found a workaround:
p = plot(x^2+100, x, frame=True, gridlines=True) p.show() p.show(filename='mydrawing2.pdf')
It shows dead image in browser (since PDF can't be shown with img tag), but it actually is PDF file if I choose to save it, and this time around it has the same drawing settings.
But to me, it would be helpful if the
plot.save() were use the same settings, using dictionary and
**kwargs passing is very ugly looking.