Message Boards Message Boards

0
|
4999 Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to plot in log scale with SystemModelPlot?

Posted 3 years ago

Apparently, this is not possible.... ? I have also tried to create a variable with the result of the simulation

var = sim1["volume_1.a.p", t]

And plot it in log with

LogPlot[var, {t, 0, 3}]

But the result is bad, probably because of the limits of the interpolation accuracy that becomes very bad when plotted in log scale ....

Thanks for an idea ....

POSTED BY: Yvan Abbe
3 Replies
Posted 3 years ago

Thanks for your confirmation. I can stop searching.

POSTED BY: Yvan Abbe
Posted 3 years ago

... I thik I've found a way to do it :

sim1 = SystemModelSimulate[...,3]
f = sim1[{"volume_1.a.p"}][[1]];
LogPlot[f[t], {t, 0, 10}, PlotRange -> All, Filling -> Axis]

It is not direct, but seems to work ...

enter image description here

POSTED BY: Yvan Abbe

Hi Abbe,

Yes, that is the recommended way of doing it.

POSTED BY: Ankit Naik
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract