Menu

#2626 splot: Variable RGB color adds to automatic cb range

None
closed-fixed
nobody
None
2023-06-09
2023-06-06
No

Thank you for all your continued work on gnuplot, very much looking forward to 5.5! We use it extensively in our day to day work and are very happy with it!

When plotting two line plots, where:

  • one has its colors specified using lc rgb variable
  • and the other has its colors specified with lc palette

the rgb colors add to the automatically generated cb range. This behavior differs from plot, where only palette values are used to calculate the cb range.
Example (splot, doesn't work as expected):

splot '-' with lines lc rgb variable, '-' with lines lc palette
1 1 0 16711680
2 2 0 65280
3 3 0 16711680
e
5 5 0 0.01
6 6 0 1.0
7 5 0 0.05
e

The two line segments with explicitly specified rgb colors are correctly colored. The other two (palette colored) however are black, because the raw rgb values cause the cbrange to go from 0 - 1.8E7.

Comparison with 2d plot (works as expected):

plot '-' with lines lc rgb variable, '-' with lines lc palette
1 1 16711680
2 2 65280
3 3 16711680
e
5 5 0.01
6 6 1.0
7 5 0.05
e

Discussion

  • Markus Ebner

    Markus Ebner - 2023-06-06
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,5 @@
    +Thank you for all your continued work on gnuplot, very much looking forward to 5.5! We use it extensively in our day to day work and are very happy with it!
    +
     When plotting two line plots, where:
    
     - one has its colors specified using `lc rgb variable`
     - and the other has its colors specified with `lc palette`
    
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2023-06-09
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB