das-developers / das2java

The original das2 library. Provides interactive publication-ready 2-D plotting
https://das2.org
GNU Lesser General Public License v3.0
4 stars 0 forks source link

Return of bug in color editor, moving from black to white #105

Open jbfaden opened 2 months ago

jbfaden commented 2 months ago

For years there was a bug in the color editor, where you couldn't select the first color. This seemed to have disappeared, but Sadie saw where it is happening again.

In Autoplot:

  1. load vap+das2server:https://jupiter.physics.uiowa.edu/das/server?dataset=Juno/FGM/MagComponentsSCSE&start_time=2012-03-09T00:00:00.000Z&end_time=2012-03-10T00:00:00.000Z
  2. change color from "[54,179,179]" to "black", note that it does not accept black.
  3. change color from "[54,179,179]" to "blue", note that it does accept this.
  4. change color from "blue" to "black", note that it does accept this.
jbfaden commented 2 months ago

This has something to do with the vector in Autoplot. If I just plot a single channel, it works fine. But try:

  1. load vap+inline:ripplesVectorTimeSeries(100)
  2. change color from "[54,179,179]" to "black", note that it does not accept black.
  3. change color from "[54,179,179]" to "blue", note that it does accept this.
  4. change color from "blue" to "black", note that it does accept this.
jbfaden commented 2 months ago

I think this bug never went away, and was caused because the JComboBox model thinks the original color is black, but it isn't. The problem is fixed by replacing the JComboBox model each time the value is set.

jbfaden commented 2 months ago

I think I just observed this with the droplist for the plot symbol, in a multi-object property editor.