Menu

#438 pngcairo: Clear, empty space below a key on a transparent plot

open
nobody
None
5
2022-07-29
2016-02-29
No

On a plot with a white background , the space below a key can easily be cleared with:

set key opaque

This command actually draws a white rectangle below the key, so that any plotted lines no longer interfere with the inside key.

However, when the output terminal is pngcairo transparent the white rectangle is undesired.

opaque key on transparent PNG

The desired result would be:

clear empty key background on transparent PNG

Currently, I will have to do with the following cluttered transparent PNG:

cluttered transparent PNG

Discussion

  • Serge Stroobandt

    For those interested, I also posted a related question on Stack Overflow.

     
  • Ethan Merritt

    Ethan Merritt - 2020-12-25

    2020 Review

    I am reminded of the old old cartoon gags about "invisible paint". Basically there is no way to do this for most terminal types. It would require a fill mode that replaces the current content of a rectangle rather than overwriting it. I think this would be possible for pixmap terminals (png gif ...) but not for any of the vector terminals (ps pdf emf svg ...).

     
  • theozh

    theozh - 2022-07-29

    This can be solved in a different way:
    instead of covering visible curves with "invisible" paint, you simply blank out the data at the (un)desired location(s).
    See: https://stackoverflow.com/a/70219551/7295599

     

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.