Skip to content

Ability to plot parameters #1061

Closed
SciML/ModelingToolkit.jl
#3794
@mtiller-jh

Description

@mtiller-jh

Is your feature request related to a problem? Please describe.

It is quite common, for example in control systems, to want to compare a trajectory with a set point. For some cases, that set point may be a parameter. However, currently trying to plot a parameter leads to an ArgumentError: Collection must contain exactly 1 element error.

Describe the solution you’d like

I would like parameters to be plotable just like any other symbol.

Describe alternatives you’ve considered

The only alternative I can imagine is not plotting them. In such a case, an error explicitly saying "plotting of parameters is not supported" would certainly be preferable to the error above. But I suspect providing a good error message is about as much effort as actually plotting the variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions