Skip to content

Graphic out#11

Open
Wirdal wants to merge 3 commits into
matloff:masterfrom
Wirdal:GraphicOut
Open

Graphic out#11
Wirdal wants to merge 3 commits into
matloff:masterfrom
Wirdal:GraphicOut

Conversation

@Wirdal

@Wirdal Wirdal commented Mar 9, 2019

Copy link
Copy Markdown

R has been saving the plots of whatever it runs, but can't display, within the local directory.

What I do is just call the user-supplied 'open' function on the pdf that gets created when the user wants to. The command is in a dropdown window, so the user can select when to see their output.

I have tested it on my Ubuntu laptop, as well as my Windows desktop. They work fine. I added some error validation if the 'open' command does not work, OR if the PDF containing the graph does not exist.

I would like to do two more things with this.

  1. Save old graphs, and allow lookback for them
  2. Have TKinter actually open them within its own GUI. I think this would create some more speed, just so the OS does not have to start another program. I don't think Tkinter has any built-in PDF support, however. So stripping out the image from the PDF and converting it to something the GUI can load would be necessary, if we're not to add any additional dependencies.

@Wirdal

Wirdal commented Mar 9, 2019

Copy link
Copy Markdown
Author

Also, I see that many students don't generally call omsi with all the arguments on the command line. I think it would be good to have an option where they can add their preferred way of opening the PDFs while omsi is still running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant