Mercurial > hg > octave-nkf
changeset 8633:0c5541c39a42
Add support for transparent patches
author | Kai Habel |
---|---|
date | Thu, 29 Jan 2009 14:16:02 -0500 |
parents | d366fdf4ffe9 |
children | cbd6545b0d85 |
files | scripts/ChangeLog scripts/plot/__go_draw_axes__.m |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-01-29 Kai Habel <kai.habel@gmx.de> + + * plot/__go_draw_axes__.m: Add support for transparent patches. + 2009-01-29 Søren Hauberg <hauberg@gmail.com> * help/help.m, help/print_usage.m, help/get_first_help_sentence.m:
--- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -567,6 +567,10 @@ if (mono) colorspec = ""; + elseif (__gnuplot_has_feature__ ("transparent_patches") + && isscalar (obj.facealpha)) + colorspec = sprintf ("lc rgb \"#%02x%02x%02x\" fillstyle transparent solid %f", + round (255*color), obj.facealpha); else colorspec = sprintf ("lc rgb \"#%02x%02x%02x\"", round (255*color)); @@ -574,7 +578,8 @@ withclause{data_idx} = sprintf ("with filledcurve %s", colorspec); data{data_idx} = [xcol, ycol]'; - usingclause{data_idx} = sprintf ("record=%d using ($1):($2)", numel (xcol)); + usingclause{data_idx} = sprintf ("record=%d using ($1):($2)", + numel (xcol)); endif endif