help-octave
[Top][All Lists]
Advanced

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

Does EgdeAlpha in fill()/patch() work?


From: notMyUsername
Subject: Does EgdeAlpha in fill()/patch() work?
Date: Mon, 1 Jul 2013 22:15:44 -0700 (PDT)

Greetings,

I am trying to highlight a section of a plot by changing the background
"behind" it.  The only way that I know to do that is to use fill() or
patch() - which (as far as I know) is always over the top of the graph, but
would be OK if I could get alpha to work... which I can't.  Here is sample
code:

f1=figure(1)
clf;
hold on
grid on
h=fill([90,210,210,90],[-.8,-.8,.8,.8]);
set(h,'FaceColor',[0,0,0]);
set(h,'FaceAlpha',0.25);
set(h,'EdgeColor','none');
set(h,'EdgeAlpha',0);
set(h,'EdgeLighting','none');
axis(50,250);

When I use this, I do get a transparant rectangle but nothing I try gets rid
of the edge of the rectangle - which I really, really do not want.  I just
want a totally flat, featureless transparent rectangle  I have tried various
values for "EdgeAlpha" but none have any effect.  Same for EdgeLighting. 
Does either actually do anything?

Any suggestions would be greatly appreciated as this is driving me nuts.

Thanks!

Octave 3.6.4 using AquaTerm on OS X 10.6 via Homebrew

P.S. Just as a side note, if I try putting any parameters (like
'color',[0,0,0]) in fill() octave hangs... but as long as set() works I'm
O.K..



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Does-EgdeAlpha-in-fill-patch-work-tp4655094.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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