Ask Your Question
0

Publish notebook with 3d plots [edited]

asked 13 years ago

3mpty gravatar image

updated 10 years ago

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.

Preview: (hide)

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 ( 13 years ago )

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 ( 13 years ago )

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

kcrisman gravatar imagekcrisman ( 13 years ago )

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

3mpty gravatar image3mpty ( 13 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 13 years ago

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.

Preview: (hide)
link

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: 13 years ago

Seen: 446 times

Last updated: Nov 12 '11