﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4126	OM-specific annotation to generate plots with code in model	Christoph <buchner@…>	somebody	"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 [http://stackoverflow.com/questions/40283482/how-to-automate-plotting-a-certain-set-of-values-after-simulation-in-omedit 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 `displayUnit`s. 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."	enhancement	closed	high	Future	*unknown*		duplicate		
