Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#132 plot with image including tranparency

closed
nobody
None
5
2012-02-07
2011-10-18
Anonymous
No

my plot is created from a data file with
set palette defined ( ... )
plot 'datafile' u 1:2:3 with image

How do i add transparancy to the plot ?
set style fill transparent has no effect on an image plot
There is also no syntax in set palette defined to add tranparency
The only solution i found is using rgbalpha style.
But there a had to split the third data column into r g b values.
Is there an easier solution?

Discussion

  • Ethan Merritt
    Ethan Merritt
    2011-10-19

    You don't say what terminal type you are using, so I can't give a complete answer.
    For some terminal types it would work to say

    set style fill transparent solid 0.5 noborder
    plot 'datafile' u 1:2:3 with image failsafe

     
  • Ethan Merritt
    Ethan Merritt
    2011-10-19

    Actually, I must apologize for an incorrect answer. Apparently the normal processing of fill style is not applied to "with image" plots. The answer I gave does work for "with pm3d", if your data allows you to use that plot style instead.

     
  • Ethan Merritt
    Ethan Merritt
    2012-02-07

    • status: open --> closed