First time here? Check out the FAQ!

Ask Your Question
1

can't get a plot() to show up in shell using VirtualBox

asked 11 years ago

Ptarmigan gravatar image

I'm a Sage newbie (and mostly a linux newbie too) running Sage 5.9 in VirtualBox under Windows 7. When I'm in the sage shell and try to plot things, I don't get any error, but no image shows up either. Plotting does work in the notebook.

Is there something obvious (a setting, etc.) that I might be missing to make plots work?

Preview: (hide)

Comments

Thanks for the answers. I do have Sage running in Linux at home, but I can't have a dual boot here at school (per our IT department) and my office mates and I also need Windows. Currently what I'm doing is putting the plots into pdf files and then opening them, which seems to be workable.

Ptarmigan gravatar imagePtarmigan ( 11 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 11 years ago

Volker Braun gravatar image

The commandline is text mode, it doesn't have graphics capability. If you really want a full graphical install then I would suggest you install a full Linux VM and then compile Sage in it. Its fun ;-)

Preview: (hide)
link

Comments

The command line is not that bad ;) It is possible to view images and even watch movies! One justs needs to have framebuffer support built into the kernel and compiled in user applications. For viewing images, there is fbi, and for viewing videos there is mplayer, vlc, xine, etc. :) One can possibly set the png viewer in sage by using sage.misc.viewer.viewer.png_viewer('/usr/bin/fbi') # provided fbi is installed This however didn't work on my system. Not sure why (maybe the `png_viewer` function is broken?). fbi by itself works just fine.

ppurka gravatar imageppurka ( 11 years ago )

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: 669 times

Last updated: Jun 12 '13