csv export of line series

Oystein Bjorke 6 years ago 0
This discussion was imported from CodePlex

aec wrote at 2012-08-30 19:17:

Hi obj. You have written an export demo where it is possible to export a plot model to (for instance) csv format. Can you do this also for line series? Than you can use this export routine as well for the export of plot models.

I think that an export of a line series could be interesting for developers. Having such a routine, one is able to write an export function if some clicks on the curve or on the legend to export the raw data.

aec wrote at 2012-08-31 09:42:

Another application is to compare simulation results with measurement data. First you simulate something and plot this into a window. Afterwards you load the measurement data and plot them also to the window.

In such a situation it will be more convenient to have an import/export function for line series because the measurement data are often available in csv format.

objo wrote at 2012-09-05 21:03:

I think this should be the responsibility of the application! But I think it requires the selection feature (http://oxyplot.codeplex.com/workitem/8193) if you want to click and export one curve only.

I see it could also be convenient to have it built-into the plot controls, so I added it as issue http://oxyplot.codeplex.com/workitem/10002!

aec wrote at 2012-09-06 08:32:

Hi objo. Thanks for this support. Of course, I agree with you, that the application should be responsible for such a feature. On the other hand you intend to support a selection feature. I didn't know that before. 

But with this information I think that a built-in function is not necessary and yields less flexibility. Think about different possible csv formats ... Instead of a built-in function with minor flexibility an export example based on the selection feature would be sufficient. This could avoid further feature requests because everyone has than a template which can be modified for special purposes.