Ask Your Question
1

Why is Sage calling Wine to show 2D plots and how do I fix it?

asked 3 years ago

dfarmi2 gravatar image

updated 3 years ago

This is a two-parter. Part the first is mainly out of curiosity. Part the second carries more weight.

I'm running an Arch (Manjaro) Linux machine. I have a fresh install of sagemath via pacman. My system is up to date, and I can open the sage console by calling it from the command line. I'd like to plot a 2D graph of a Brownian motion algorithm, but whenever I call it, Wine opens. The first time my graph was compiled, a dialog box opened and it said something along the lines of "Do you want to run this using Wine?". I clicked yes. It no longer shows up. I don't have the exact line. I uninstalled and reinstalled Sage and deleted the cache. I wasn't able to replicate the dialog box. Anyway.

Whenever I run plot(<func>), the prompt reads back that it is launching a png viewer for a Graphics object, which I understand to be the correct output. But again, it opens in Wine via a Windows 95 looking Explorer window. Here's the path.

file:Z:\home\def\.sage\temp\tower\17759\tmp_esqczsyp.png

Why is Wine the default program to open a 2D plot? Curiously, I can show 3D plots just fine.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 3 years ago

dfarmi2 gravatar image

Not sure why it defaulted to Wine Internet Explorer to open a .png file, but all I did was open it in a different program and it works!

Preview: (hide)
link

Comments

1

Somehow Internet Explorer must have registered itself as the default application to open png files. It seems you have managed to change that. Congratulations on solving your problem!

slelievre gravatar imageslelievre ( 3 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

1 follower

Stats

Asked: 3 years ago

Seen: 240 times

Last updated: Oct 29 '21