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

Plot multiple variables

Plot multiple variables

Hi everyone!

I am using OMShell. I need some help with how to use the plot command to plot more than one variable, in the same figure. How can I hold the plot to show different variables?

Greetings!

Re: Plot multiple variables

Just call plot with variable names,

Code:

plot({x,y,z})

If you want to plot variables in new window then,

Code:

plot(x, externalWindow=true)

Adeel.

Re: Plot multiple variables

I see...

I missed the {} characters current/roll

Cheers!

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