First time here? Check out the FAQ!

Ask Your Question
0

Maxima in online notebook

asked 11 years ago

bakant gravatar image

updated 11 years ago

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{}
Preview: (hide)

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

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

ppurka gravatar imageppurka ( 11 years ago )

The problem was solved. Now it returns the plot.

bakant gravatar imagebakant ( 11 years ago )

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

ppurka gravatar imageppurka ( 11 years ago )

1 Answer

Sort by » oldest newest most voted
2

answered 11 years ago

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.

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

Seen: 516 times

Last updated: Jul 25 '13