Ask Your Question
0

Maxima in online notebook

asked 2013-07-23 08:20:58 -0500

bakant gravatar image

updated 2013-07-24 21:56:10 -0500

Is there any way to show maxima graphs in the online Sage notebook?

maxima('plot2d(sin(x),[x,-7,7])')

shows nothing.

maxima('plot2d(sin(x),[x,-7,7],[plot_format, gnuplot],[gnuplot_term, svg],[gnuplot_out_file, "plot2d.svg"])')

returns not hyperlink

{}plot2d.svg{}
edit retag flag offensive close merge delete

Comments

1

You need to save the plot into the current directory as a png, jpg, or svg file. Then it will be automatically displayed. Something like `plot2d(....).save("./file.png")`. I don't know if maxima can save a file in png format to current directory.

ppurka gravatar imageppurka ( 2013-07-23 18:40:01 -0500 )edit

For gnuplot, you will need gnuplot to be installed. I doubt it is installed in the online notebook.

ppurka gravatar imageppurka ( 2013-07-24 09:49:32 -0500 )edit

The problem was solved. Now it returns the plot.

bakant gravatar imagebakant ( 2013-07-24 21:57:42 -0500 )edit

Great! I will just put my answer as a proper answer then, so that this question doesn't appear as unanswered.

ppurka gravatar imageppurka ( 2013-07-25 10:53:37 -0500 )edit

1 answer

Sort by » oldest newest most voted
2

answered 2013-07-25 10:53:47 -0500

ppurka gravatar image

You need to save the plot into the current directory as a png, jpg, or svg file. Then it will be automatically displayed. Something like plot2d(....).save("./file.png"). I don't know if maxima can save a file in png format to current directory.

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: 2013-07-23 08:20:58 -0500

Seen: 145 times

Last updated: Jul 25 '13