I am getting nothing displayed from a plot command. I am using vnc to access the desktop remotely, but nothing gets displayed. Am I missing a "standard" image viewer? I get no diagnostics, Merely :
Out[6]= -Graphics-
Steve

I was interested but could not view the web page because it requires Flash Player, great !!DougieLawson wrote:Try following the Mathematica 101 lessons http://www.wolfram.com/broadcast/screen ... dsonstart/
Works for me on my Win81 machine.MoosePi wrote:I was interested but could not view the web page because it requires Flash Player, great !!DougieLawson wrote:Try following the Mathematica 101 lessons http://www.wolfram.com/broadcast/screen ... dsonstart/
This does not work for me. I connect via SSH to a headless Pi with hdmi_force_hotplug=1 / hdmi_group=2 / hdmi_mode=85 in /boot/config.txt to enable VNC connections. I then start the text-based Mathematica interface with "wolfram". Plot output displays as "-Graphics-" as expected. But Export["plot.png",p] fails with "Can't open display :25". I then have to use ^C leading to "Interrupt during LinkConnect>" and type "quit" to return to the shell prompt. It works well via VNC but everything is muuuuch sloooowerrrrrr, of course, so I wanted to use the text-based interface via ssh.Arnoud wrote:The text interface launched with 'wolfram' does not display graphics (it just shows -Graphics- in the output); you can still export those graphics (as gif, png, jpeg, etc).
Apparently this got fixed in the apt-get dist-upgrade of Mathematica I got yesterday! There is also a new "wolframscript" program, so this works a treat and is just what I needed:algorithm wrote:This does not work for me. I connect via SSH to a headless Pi with hdmi_force_hotplug=1 / hdmi_group=2 / hdmi_mode=85 in /boot/config.txt to enable VNC connections. I then start the text-based Mathematica interface with "wolfram". Plot output displays as "-Graphics-" as expected. But Export["plot.png",p] fails with "Can't open display :25". I then have to use ^C leading to "Interrupt during LinkConnect>" and type "quit" to return to the shell prompt. It works well via VNC but everything is muuuuch sloooowerrrrrr, of course, so I wanted to use the text-based interface via ssh.
Code: Select all
wolframscript -c 'Export["plot.png",Plot[Sin[x],{x,0,2 Pi}]]'