hdf-compass icon indicating copy to clipboard operation
hdf-compass copied to clipboard

Provide Plot with X-Axis Taken from a Table Column

Open L-A-F opened this issue 6 years ago • 5 comments

I am working with 1D-data with the first column being "time".

It would be great to get the possibility to plot several columns, let's say....temperature 1, temperature 2, temperature 3 with an X-axis taken from the first column "time" (or any other reference).

This was a feature available in HDFview and might be useful for a lot of applications.

At the moment, data are plotted against the line index, which is in my case, not a relevant information.

L-A-F avatar Apr 10 '18 14:04 L-A-F

Hi @L-A-F - I'm familiar with that feature from HDFview and it sounds useful to have in Compass.

I don't have the free time to work on this right now. Would you be interested in implementing yourself and submitting a PR?

jreadey avatar Apr 11 '18 23:04 jreadey

Hi @jreadey,

I am actually busy as well, but I am willing to give it a try.

My first idea was to declare a column as "reference" and plot any selection against it.

But because actions with right-click on table are not implemented yet and to keep it simple, I was thinking (at the moment) about a new Icon XY just like the Plot Data one.

One would select some columns and the first to be selected would be the reference. This way, I could reuse the PlotFrame class and only implement another draw_figure.

Let me know if it would be ok.

L-A-F avatar Apr 16 '18 12:04 L-A-F

Hi @jreadey,

could you give me some permissions to open a new branch in order to solve this issue? I've already built something up for 1D-tables.

L-A-F avatar Apr 18 '18 21:04 L-A-F

I think you should be able to submit a PR without any special permissions. Give it a try!

jreadey avatar Apr 18 '18 21:04 jreadey

sorry, I am quite new on GitHub. Anyway, I manage to submit a PR (see add XYplot for 1D-array).

L-A-F avatar Apr 23 '18 18:04 L-A-F