help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plotting semi-trasnparent patches?


From: Kai Habel
Subject: Re: Plotting semi-trasnparent patches?
Date: Mon, 26 Jan 2009 16:12:39 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20081227)

Søren Hauberg schrieb:
> Hi All
>
> Is there a way to make a patch (as produced by the 'patch' command)
> semi-transparent? I tried setting the 'facealpha' property to 0.5 but
> that didn't do what I expected.
>
> BTW. I'm running a checkout of the development sources from some time
> yesterday.
>
> Søren
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>   
Using a development version of gnuplot (4.3.cvs) this can be implemented
fairly easy. See attached patch. I am hesitating in providing a full
changeset, since we would depend on a development version of gnuplot. I
see no easy way to check for this gnuplot feature otherwise we could
support this conditionally. I think we have to wait for gnuplot release
which supports this feature. 

Kai
diff -r 0eb83938c8bc scripts/plot/__go_draw_axes__.m                          
--- a/scripts/plot/__go_draw_axes__.m   Sun Jan 18 22:01:36 2009 +0100        
+++ b/scripts/plot/__go_draw_axes__.m   Mon Jan 26 16:02:02 2009 +0100        
@@ -568,8 +568,8 @@                                                           
               if (mono)                                                      
                 colorspec = "";                                              
               else                                                           
-                colorspec = sprintf ("lc rgb \"#%02x%02x%02x\"",             
-                                     round (255*color));                     
+                colorspec = sprintf ("lc rgb \"#%02x%02x%02x\" fillstyle 
transparent solid %f",
+                                     round (255*color), obj.facealpha);        
                
               endif                                                            
                
               withclause{data_idx} = sprintf ("with filledcurve %s",    

reply via email to

[Prev in Thread] Current Thread [Next in Thread]