mumax / 3

GPU-accelerated micromagnetic simulator
Other
447 stars 150 forks source link

Gnuplot doesn't work on the web GUI #252

Open CJGassen opened 4 years ago

CJGassen commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Do you write lines to the output table?

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

Jachoman commented 3 years ago

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 commented 3 years ago

Hi,

please check if the gnuplot is in the Path of your system, if not use this:

export PATH=$PATH:path_to_gnuplot/bin

in windows, it's similar but in GUI.

pt., 2 paź 2020 o 13:41 Jachoman notifications@github.com napisał(a):

Hi. Did you finally solved 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!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mumax/3/issues/252#issuecomment-702686143, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3VD6RNNSJQVXWFVDUHJIDSIW375ANCNFSM4KYVTESA .

-- Mateusz Zelent

Jachoman commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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):

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.