add option for sorting profile data by x-axis values before plotting

Issue #891 closed
Agustin Lobo created an issue

How can it go backards ~1000 nm ?

Comments (10)

  1. Andreas Janz

    Sure, we could decide to sort profile data points according to the wavelength before plotting.

    Having said that, I wouldn’t recommend to do that unasked, because it can slow down plotting of larger libraries (and it somehow alters the data).

    @Benjamin Jakimow shall we have a checkbox “Sort by x values” in the plotting options?

  2. Agustin Lobo reporter

    Having said that, I wouldn’t recommend to do that unasked, because it can slow down plotting of larger libraries

    I cannot argue there. Another alternative is just displaying points, avoiding the link of one point to the next one with a segment (after all, there is no reason for linking points in the spectrum with segments: the data are only at the points).

    .(and it somehow alters the data)

    That it is not true: I just refer to the plot display, not to actually modifying the data on disk. Data must be displayed by the order of the

    magnitude displayed on the X axis.

    marked as enhancement

    You can name it as you wish, but the current plots in with the spectrum does not follow the order of the variable selected for the X axis, is wrong. A different thing would be that the user would optionally select another variable (i.e., band order) for sorting (as he/she would do for coloring, a good example would be a trajectory: an spatial pattern of points in X,Y plane linked by segments according to time), but this would need to be specifically declared.

  3. Andreas Janz

    I cannot argue there. Another alternative is just displaying points, avoiding the link of one point to the next one with a segment (after all, there is no reason for linking points in the spectrum with segments: the data are only at the points)

    It is possible to just plot the points. You can change the line style here:

    @Benjamin Jakimow I would say that the location of the line style setting for temporally linked profiles is a bit counter intuitive. Why is it under the visualization settings of the SpectralView? It should be right next to the temporally linked profiles color setting, right?

  4. Andreas Janz

    That it is not true: I just refer to the plot display, not to actually modifying the data on disk. Data must be displayed by the order of the

    magnitude displayed on the X axis.

    Alright, true, data is not really altered.

    You can name it as you wish, but the current plots in with the spectrum does not follow the order of the variable selected for the X axis, is wrong. A different thing would be that the user would optionally select another variable (i.e., band order) for sorting (as he/she would do for coloring, a good example would be a trajectory: an spatial pattern of points in X,Y plane linked by segments according to time), but this would need to be specifically declared.

    I created a fresh follow-up issue here: https://bitbucket.org/hu-geomatics/enmap-box/issues/906/add-an-sort-by-x-values-checkbox-to-enable

  5. Agustin Lobo reporter

    @Benjamin Jakimow

    I would say that the location of the line style setting for temporally linked profiles is a bit counter intuitive. Why is it under the visualization settings of the SpectralView? It should be right next to the temporally linked profiles color setting, right?

    I agree switching from line to points should be in a more straightforward button

  6. Log in to comment