Ask Your Question
1

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

asked 2021-10-29 19:37:09 +0200

dfarmi2 gravatar image

updated 2021-10-29 19:41:53 +0200

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-10-29 19:47:24 +0200

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!

edit flag offensive delete link more

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 ( 2021-10-29 23:22:30 +0200 )edit

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: 2021-10-29 19:37:09 +0200

Seen: 33 times

Last updated: Oct 29 '21