Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnuplot doesn't work on the web GUI #252

Open
CJGassen opened this issue Feb 20, 2020 · 7 comments
Open

Gnuplot doesn't work on the web GUI #252

CJGassen opened this issue Feb 20, 2020 · 7 comments

Comments

@CJGassen
Copy link

I am totally new to this, and was just trying to follow the most basic example provided, but for some reason gnuplot doesn't work and is showing the error message:

exec: "gnuplot": executable file not found in %PATH%

I have gnuplot downloaded, but I don't know if I need to do anything specific with it after downloading to get the plots to appear on the web GUI.

Also, previously I was having an issue with an error message reading:

open mumax-2020-02-20_13h55.out/table.txt: The system cannot find the file specified.

So I put in a blank text document into the folder of the current session and that got rid of that error message, but I'm guessing it didn't actually solve the issue, rather just created a different one.

Any help would be appreciated.

Thanks

@CJGassen
Copy link
Author

Update:

I reinstalled gnuplot and added the program files to the path variable upon downloading and that fixed that issue, however the plots don't actually show up when I run mumax, rather it shows the broken image icon on and off as it runs.

@JeroenMulkers
Copy link
Collaborator

Do you write lines to the output table?

The plot appears only if there is data in the output table.

@Jachoman
Copy link

Jachoman commented Oct 2, 2020

Hi. Did you finally solve that problem? I've recently installed mumax and gnuPlot and I have the exact same problem. I've managed to open the tables mumax3 generates by navegating through the directories with the gnu console but the gnu still doesn´t work at all in the mumax console.

Thanks!

@kkingstoun
Copy link
Contributor

kkingstoun commented Oct 2, 2020 via email

@Jachoman
Copy link

Jachoman commented Oct 2, 2020

Thanks for the fast answer!
I'm operating on windows 10 and you were right , I didn't have the gnuplot in the path of the sistem. I just did what you told me but it still don't works. Hoever now the problem has changed: Once I set the parameters for the simulation (according to the first example in the mumax examples section) I press run and a message appears saying something like "too many gnuplots" and when the simulation ends it says "write |1: The pipe has been ended". I think it might be related to the setup of the gnu plot in mumax interface but I don´t know how to solve it.

Thanks in advance.

@CJGassen
Copy link
Author

CJGassen commented Oct 2, 2020

I'm on windows 10 as well, and I have gnuplot\bin in my path variable in the system, and I still have no output.

To test I'm running the first example on the MuMax page.

Before the tableautosave command the gnuplot gives the standard error message of not finding the table.txt file prior to the creation, as expected.

But after the command runs to create the data output, I just get the broken image symbol that flashes on and off as the time steps forward, but not gnuplot image. If I want to see the gnuplot data I have to open the output file separately on gnuplot.

Then once the run reaches the end of the time, I get the "pipe has been ended" message as well.

Edit: I actually get the "pipe has been ended" message prior to the end of the run. There are still changes occurring in the display output and the run time has not reached its conclusion when this message pops up and the broken image symbol goes away.

@Jachoman
Copy link

Jachoman commented Oct 5, 2020

I haven´t solved the problem yet but after spendig some time with mumax and ran some simulations I reached to the conclusion that it is better not to use the GUI itself to perform the simulations but only as an aid to write the script. And this is because I'm not sure if its possible to run a script previously written from the GUI (at least I haven´t found how) which is one of the most powerfull tools in any simulating program, either to prepare long simulations or to recycle previously designed ones.
Therefore I'm currently using mumax from the command window (which is the windows cmd in my case) following this steps (after including both mumax and gnuplot in the path, as "kkingstoun" sugested):

  • write the mumax script (with any editor), which has to be a .mx3 file containing all the mumax orders (these orders can be copied from the GUI console)
  • Run this mumax script calling the mumax3 command in the cmd console
  • Write a gnuplot script which has to be a .p file with the gnuplot orders necessary to plot the mumax data
  • Run this gnuplot script calling the gnuplot command in the cmd console.

In the gnuplot script it is possible to specify the format of the output plot (for example to save a png image of the plot), so after writing all these scripts it is possible to write a .bat script for windows automating all, which in my opinion is extremely powerfull. By runing different scripts it is possible to program several simulations one after the other and obtain the graphs for all of them , which might be useful for example to use a computer during the whole night to calculate several scenarios.

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

No branches or pull requests

4 participants