Save and read plot

Aug 19, 2012 at 12:40 AM


Could any one tell me what is the best way to save plot? including annotations and series.

One way I saw an example is :

create Property class for each annotation, then serialize a collection of property classes.

when read the saved file, base on property classes to create plot with annotations. 

Aug 21, 2012 at 11:04 AM

It should be possible to serialize the PlotModel, but I am not sure if I would recommend it... The data structure may change... I think the client application should be responsible for this, using its own model. I'm interested in hearing other opinions on this!

Aug 21, 2012 at 2:06 PM

I did test to serialize PlotModel, 

Some properties could not be serialized, like Plot, OxyThichness(need add serialized attribute.)

So will user property class to make a copy of annotation and save them. easier.



Aug 23, 2012 at 1:53 PM
Edited Aug 23, 2012 at 1:53 PM

I added, it should not be difficult to fix this!