Ask Your Question
0

Maxima in online notebook

asked 2013-07-23 15:20:58 +0200

bakant gravatar image

updated 2013-07-25 04:56:10 +0200

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-24 01:40:01 +0200 )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 16:49:32 +0200 )edit

The problem was solved. Now it returns the plot.

bakant gravatar imagebakant ( 2013-07-25 04:57:42 +0200 )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 17:53:37 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-07-25 17:53:47 +0200

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 15:20:58 +0200

Seen: 445 times

Last updated: Jul 25 '13