Menu

#2285 png notruecolor ignores maxcolor with defined palette

None
closed-fixed
nobody
None
2020-07-16
2020-06-26
No

Hi,

while playing with defined palettes and maxcolors as shown on http://www.gnuplotting.org/tag/maxcolors/ I found out that the png terminal does not seem to honour the maxcolors settings in notruecolor mode.

See the attached script which shows the difference between different terminals and options.

The issue can be worked around with just specifying "truecolor", or using proper interval boudaries in the palette and avoid maxcolors altgether, but it was still surprising as a user so I thought I'd report it.

Tested on linux also with a self compiled gnuplot from git 5.4.rc2-8-ga2beaa0a0.

Thanks,
Antonio

1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2020-07-03
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Antonio Ospite

    Antonio Ospite - 2020-07-03

    Thanks @sfeam the change from commit 19ebc5024be2b0bd661ab63a0355502357b9caf1 works fine.

    However with the master branch I see that the SVG file produced by my tests script has a red-ish color for the plot borders, can you see this? Should I report the issue separately?

    Thanks, Antonio

     

    Last edit: Antonio Ospite 2020-07-03
    • Ethan Merritt

      Ethan Merritt - 2020-07-03

      I touched only the libgd code. Anything to do with svg is something else entirely.

       
  • Antonio Ospite

    Antonio Ospite - 2020-07-04

    Yes, I figured that, I was just asking if you saw somehting strange with the same test script, but it turned out to be a local problem... I had some experimental changes to the svg terminal I forgot about.

    Thanks again.

    Ciao, Antonio

     
  • Ethan Merritt

    Ethan Merritt - 2020-07-16
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.