Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

linux save plot to file

linux save plot to file

Hi,
I am using linux distro.
How can save mi simulation result  plot  to png file?
At Windows there is OMPlot.exe but at linux  i don't know.
Thnaks

Oki


Re: linux save plot to file

By the  way  i just noticed; linux also have  OMPlot. But when tried with below cmd

OMPlot --filename=.... --plotAll

i got OMPlot cannot connect to X server

actualy i am interesing save to png file. Not plot to screen

oki

Re: linux save plot to file

I also noticed; I was connect linux  via ssh.
When i try to run OMPlot local terminal , i got all plot at the screen.
Still i am looking for solution via ssh save plot to png

Thnaks
Oki

Re: linux save plot to file

I don't think is possible (yet) from command line.
Why do you want the png file?

Re: linux save plot to file

I want to use this png at the web interface

Oki

Re: linux save plot to file

I suggest you use dygraph-combined.js from http://dygraphs.com/download.html for that.
You generate .csv files via: simulate(Model, outputFormat="csv") then you plot them using dygraph-combined.js.
You get interactive plots like these:
https://test.openmodelica.org/libraries … .diff.html
click on javascript.

Alternatively you could use python to plot the .mat file:
http://www.j-raedler.de/projects/dymat/

Alternatively you can use gnuplot to plot the csv files to png:
https://blogs.it.ox.ac.uk/networks/2011 … h-gnuplot/

Alternatively you could use octave to plot the mat file to png.

Re: linux save plot to file

I got it,
Thnaks
Oki

There are 0 guests and 0 other users also viewing this topic