Ask Your Question

Publish notebook with 3d plots [edited]

asked 2011-11-10 11:17:46 -0500

3mpty gravatar image

updated 2015-01-13 10:58:20 -0500

FrédéricC gravatar image

Is there a way to export/publish plots along with code used to create them?

On sagenb if I go to the link I get when I click "publish" I don't see any plot. I don't need an interctive plot, just something graphical to show.

Thank you in advance, Paolo.

edit retag flag offensive close merge delete



Are you talking about a 2d or 3d plot? It seems like things work fine for 2d plots:

Jason Grout gravatar imageJason Grout ( 2011-11-10 12:52:16 -0500 )edit

Yes, this works too well for 2d plots sometimes - if the image is still in the directory on one with "remove output" it will show up again :)

kcrisman gravatar imagekcrisman ( 2011-11-10 15:22:38 -0500 )edit
Jason Grout gravatar imageJason Grout ( 2011-11-10 17:37:55 -0500 )edit

Maybe, but I only am using local installs without this in it.

kcrisman gravatar imagekcrisman ( 2011-11-11 01:25:47 -0500 )edit

Forgot to mention that, I'm talking about 3d plots.

3mpty gravatar image3mpty ( 2011-11-11 01:28:44 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2011-11-11 15:38:30 -0500

kcrisman gravatar image

This isn't the workaround you probably want, but you can use

sage: var('x,y')
(x, y)
sage: plot3d(x^2+y^2,(x,-1,1),(y,-1,1),viewer='tachyon')

to at least get a plot that should stick around. However, it will look different and cannot be manipulated dynamically.

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: 2011-11-10 11:17:46 -0500

Seen: 140 times

Last updated: Nov 11 '11