Ask Your Question
0

Publish notebook with 3d plots [edited]

asked 2011-11-10 18:17:46 +0100

3mpty gravatar image

updated 2015-01-13 17:58:20 +0100

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

Comments

1

Are you talking about a 2d or 3d plot? It seems like things work fine for 2d plots: http://sagenb.org/home/pub/3645/

Jason Grout gravatar imageJason Grout ( 2011-11-10 19:52:16 +0100 )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 22:22:38 +0100 )edit
Jason Grout gravatar imageJason Grout ( 2011-11-11 00:37:55 +0100 )edit

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

kcrisman gravatar imagekcrisman ( 2011-11-11 08:25:47 +0100 )edit

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

3mpty gravatar image3mpty ( 2011-11-11 08:28:44 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2011-11-11 22:38:30 +0100

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

Stats

Asked: 2011-11-10 18:17:46 +0100

Seen: 381 times

Last updated: Nov 12 '11