Problem with plot

157 views
Skip to first unread message

Philippe Delavalade

unread,
Dec 13, 2023, 6:35:42 AM12/13/23
to sage-s...@googlegroups.com
Hi.

I'm using sage-10.2 with linux (slint-15.0 based on slackware 15.0) on the
console.

When I run
p=plot(x^2); p
there is no graphics on the screen, just the line
Launched png viewer for Graphics object consisting of 1 graphics primitive

Is something missing in my configuration ?

Moreover, in help(plot), the command sphinx_plot is often used but on my
machine I obtain
NameError: name 'sphinx_plot' is not defined

Thanks for help.

--
Philippe

Emmanuel Charpentier

unread,
Dec 16, 2023, 4:36:39 AM12/16/23
to sage-support

Le mercredi 13 décembre 2023 à 12:35:42 UTC+1, Philippe Delavalade a écrit :

Hi.

I'm using sage-10.2 with linux (slint-15.0 based on slackware 15.0) on the
console.

When I run
p=plot(x^2); p
there is no graphics on the screen, just the line
Launched png viewer for Graphics object consisting of 1 graphics primitive

Is something missing in my configuration ?

Maybe : WorksForMe(TM) on Debian testing installed from source. How did you obtain your installation ?

Moreover, in help(plot), the command sphinx_plot is often used but on my
machine I obtain
NameError: name 'sphinx_plot' is not defined

Googling sagemath sphinx_plot leads you to the General conventions chapter of the Sage developer Guide, where it appears that this function is part of the Sphinx system of documentation (especially the mechanisms extracting viewable/printable documentation from Python docstrings).

This function appears to trigger the output of (some relevant form of) graphics in the desired documentation. Since help gives you a text form of the docstring, which does not have any useful form of graphics, what you get in the output is the (unexecuted) function call.

A complete explanation probably exists in the Sphinx documentation, which I’m currently too lazy to chase on the ‘Net…

HTH,

Dima Pasechnik

unread,
Dec 16, 2023, 7:10:36 AM12/16/23
to sage-s...@googlegroups.com
It's probably just a build error. I'd try something like

make sage_conf && make
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/5f5cf9f2-4bf5-4558-8417-6e31c50858d7n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages