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

Creating graph as JPG

Creating graph as JPG

Is there a way to programmatically create a graph, then save it as a picture file of some sort after simulation?

Re: Creating graph as JPG

Hi, I also interested in this question. I failed to find any command which can save plot to png or jpg or bmp. But it is possible from omplot, so likely this command just does not visible?

Re: Creating graph as JPG

In OMPlot, you can save an image which is the same as the displayed widget (sizes and so on).

For high-quality plot images, use an external tool like gnuplot. No one was interested in the ticket I created regarding a specific gnuplot API in OpenModelica; maybe because it is so easy to write the files yourself when you know how... https://trac.openmodelica.org/OpenModelica/ticket/2549

Re: Creating graph as JPG

thanks for answer!
I wish it would be simpler but i got that i should switch to gnuplot for my purposes.



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