duderstadt-lab / mars-fx

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

Chart X axis draw half numbers #70

Open karlduderstadt opened 2 years ago

karlduderstadt commented 2 years ago

Working with an smFRET dataset, I just experienced a very strange behavior a molecule plot where the axis didn't draw numbers greater than 21. The smFRET datasets have columns with many NaN values for non-observations, so the lengths of traces differ. I switched to the raw signal trace that does have values for all time points. However, the X axis of one plot remained fixed at 21.

Closing and reloading the dataset fixed the issue. There could be some issue related to the NaN values. I have never see this working with datasets that do not have NaN values. It could also be the the initially selected columns define some global characteristics that influence plotting for the rest of the sessions. In any case, we need to figure this out and fix it.

I will label it minor bug because in the end it is a cosmetic issue and can be fixed by reopening. There is not data loss and the axis is still correct but just doesn't draw completely.

Screenshot 2022-06-08 at 09 18 45
karlduderstadt commented 2 years ago

I also noticed that the option to fix the X axis bounds doesn't seem to allow higher values. It seems to get fixed to perhaps the bound of the first trace and can't go higher. Again this is only a problem working with smFRET traces that have a variety of lengths. Hmmm.. Needs more investigation