spectriclabs / sigplot

:chart_with_upwards_trend: SigPlot provides fast interactive web-plotting for software defined radio.
Apache License 2.0
8 stars 3 forks source link

Request to add save as of csv file to menu #16

Open kmun opened 10 months ago

kmun commented 10 months ago

We have had several of our users request for an enhancement which would allow them to save a Type 2000 or Type 1000 plot as CSV so they can import it into a spreadsheet.

I would suggest it be added to the 'save as' menu item currently in sigplot.

maihde commented 9 months ago

@kmun upon further investigation, this isn't a simple request if it has to handle exporting generically in all cases. Further, can you clarify if the export requirement needs to export the raw data or the rendered data. For example, if the plot is in 10log10 mode and the CSV is saved...should the values be the raw values or the values after 10log10 is applied?

Instead of building this directly into SigPlot, my recommendation is that you build a SigPlot plugin that is tailored to your specific requirements. SigPlot plugins can contribute to the menu and have access to all the internals of the plot and layers. If you would like some guidance on building your own plugins let me know.

kmun commented 9 months ago

I would like the raw data but either would fine. In your example, it would be fine to allow saving of the raw or the 10log10 result. It can always be converted the desired format in excel.

I’ve never done a plug in, so I will probably ask for guidance on that one…If you have an example that deals with data storage of some kind, that would be great.

Thanks,

Kam

From: maihde @.> Sent: Saturday, November 18, 2023 2:46 PM To: spectriclabs/sigplot @.> Cc: Mun, Kam U (US) @.>; Mention @.> Subject: Re: [spectriclabs/sigplot] Request to add save as of csv file to menu (Issue #16)

External Email Alert

This email has been sent from an account outside of the BAE Systems network. Please treat the email with caution, especially if you are requested to click on a link, decrypt/open an attachment, or enable macros. For further information on how to spot phishing, access “Cybersecurity OneSpace Page” and report phishing by clicking the button “Report Phishing” on the Outlook toolbar.

@kmunhttps://github.com/kmun upon further investigation, this isn't a simple request if it has to handle exporting generically in all cases. Further, can you clarify if the export requirement needs to export the raw data or the rendered data. For example, if the plot is in 10log10 mode and the CSV is saved...should the values be the raw values or the values after 10log10 is applied?

Instead of building this directly into SigPlot, my recommendation is that you build a SigPlot plugin that is tailored to your specific requirements. SigPlot plugins can contribute to the menu and have access to all the internals of the plot and layers. If you would like some guidance on building your own plugins let me know.

— Reply to this email directly, view it on GitHubhttps://github.com/spectriclabs/sigplot/issues/16#issuecomment-1817608173, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK4LRSUG435RGIOG72LD4HLYFEF7NAVCNFSM6AAAAAA6XTQUR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXGYYDQMJXGM. You are receiving this because you were mentioned.Message ID: @.**@.>>

maihde commented 9 months ago

@kmun here is an example plugin for performing CSV export. The menu will be Plugins... > Export ... > Raw CSV

https://github.com/spectriclabs/sigplot/tree/main/examples/export

If you are making your own new plugin based on this, you will need to make a small update to SigPlot or upgrade to the latest code.

https://github.com/spectriclabs/sigplot/commit/a149b505b4453d11ba2c7cb9f962e9e04eb2f821