Opened 8 years ago

Closed 7 years ago

#4126 closed enhancement (duplicate)

OM-specific annotation to generate plots with code in model

Reported by: Christoph <buchner@…> Owned by: somebody
Priority: high Milestone: Future
Component: *unknown* Version:
Keywords: Cc:

Description

I have built a fairly complex model using OMEdit. To post-process, I want to generate a set of plots (<5) with a different number of quantities (~5) plotted in each plot.

So far, I did this using the Plotting view in OMEdit. However, doing this time and time again, with the mouse, after every start of OMEdit, gets tedious very quickly, so I want to automate this.
AFAIK, there is no way to programmatically define a set of plots belonging to a certain model, which get generated/refreshed after every simulation of said model.

Adeel suggested here that "we could have [an] OpenModelica specific annotation to make it work" and that I could submit a ticket.

I have also tried to do this with an OMNotebook which runs the simulations and creates the plots. In theory this would be nice, but the plot() command there does not honor defined displayUnits. Also, this necessitates a separate set of code to be maintained, so is less useful. Also, the plot API does not seem to allow to programmatically save the generated plots to an image file, but the same problem exists in OMEdit - you have to press buttons.

Change History (2)

comment:1 by Christoph <buchner@…>, 8 years ago

Type: defectenhancement

comment:2 by Christoph Buchner <buchner@…>, 7 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #4280, which has the more articulated/specific description

Note: See TracTickets for help on using tickets.