duderstadt-lab / mars-fx

BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Molecule X and Y axis labels don't update when input is changed #50

Closed karlduderstadt closed 3 years ago

karlduderstadt commented 3 years ago

When you first open an archive and go to the molecule plot panel and set the X and Y inputs form the table for the plot, the names are used as axis labels. However, if you then change your inputs, the labels don't change.

There is a text input field with the label names that can always be updated but it would be nice if the labels also updated automatically when new inputs are chosen. Currently, it can become misleading if you change, and then glance at the axis and see the old label...

karlduderstadt commented 3 years ago

I guess one potential problem is that many different datasets can be plotted together on the same chart. So which labels should be used when there are multiple dataset inputs ? I guess the first one perhaps, but this might be misleading as well. I think this is why originally it was only set once at the beginning and then left for the use to edit.

karlduderstadt commented 3 years ago

I guess it could just take the X and Y columns of the first entry among all the series and use that for the axes. This would make it work nicely for plots with one entry and maybe be ok for entries with multiple entries. Maybe we could also add a preference setting for this...