Ask Your Question
1 different image than

asked 2010-11-27 08:39:02 -0500

Ciantic gravatar image

updated 2010-11-27 08:48:18 -0500


I've been wondering why on earth and uses different settings:

p = plot(x^2+100, x, frame=True, gridlines=True)'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 save().

I've nonetheless found a workaround:

p = plot(x^2+100, x, frame=True, gridlines=True)'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 were use the same settings, using dictionary and **kwargs passing is very ugly looking.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2010-11-27 10:07:23 -0500

Mike Hansen gravatar image

This is bug #7981, and it will hopefully be fixed in an upcoming version of Sage. If you need it fixed now, you can apply the second patch on that ticket. Use the steps 1 - 4 here if you aren't sure how to apply the patch.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2010-11-27 08:39:02 -0500

Seen: 364 times

Last updated: Nov 27 '10