Menu

palette and alpha

2016-01-08
2016-01-16
  • Masahiro Takahashi

    I'm plotting something like
    splot 'data.txt' u 1:2:3:4 w l lc palette
    I would like to change alpha (transparency) value with respect to column $5.
    Is it possible?

    Or in my current case, I would like to change alpha with respect to ($1**2+$2**2+$3**2).
    Is there a way to do it?

    I know that I can do something like using #AARRGGBB to specify alpha and color.
    But I would like to use palette (for ease) to get color and set alpha separately.

     

    Last edit: Masahiro Takahashi 2016-01-08
    • Ethan Merritt

      Ethan Merritt - 2016-01-10

      On Friday, 08 January 2016 03:31:03 AM Masahiro Takahashi wrote:

      I'm plotting something like
      splot 'data.txt' u 1:2:3:4 w l lc palette
      I would like to change alpha (transparency) value with respect to column $5 for example.
      Is it possible?

      Or in my current case, I would like to change alpha with respect to ($12+$22+$3**2).
      Is there a way to do it?

      I know that I can do something like using #AARRGGBB to specify alpha and color.
      But I would like to use palette (for ease) to get color and set alpha separately.

      So far as I know the only context in which you can combine transparency with
      a palette color is by using a transparent fill style.

      For example:

      plot FOO with filledcurves \ fillcolor palette fraction 0.75 \ fillstyle transparent solid 0.55

      That is unfortunately not very close to what you are asking for.

      Ethan
      
       
      • Masahiro Takahashi

        I would like to change the transparency in each line.

        But thanks anyway!

         

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.