Prev: Periodogram PSD of a white noise
Next: executable files
From: Steven_Lord on 4 Aug 2010 09:58 "Judy " <sauwen.jl(a)gmail.com> wrote in message news:i3ac8p$qvl$1(a)fred.mathworks.com... > I looked at patch but when I wanted to color in two vertical lines, it > made 2 triangles instead. I suppose I could indicate 4 vertices.. but > that doesn't seem very clean. > > I saw an area function as well, and it works well. I changed my two > parallel lines to just an array, going from 0 to 1 and then back down from > 1 to 0 when ready. > Only thing now, is the coloring option doesn't seem to be working. > > Here is an example. > > Why isn't my filled color changing to cyan? > > a=zeros(1,10); a(6:7)=5; > figure, > plot(a); > area(a,'FaceColor','c') It did when I tried it. First, make sure you haven't created your own area.m function or variable that's shadowing the built-in function: which -all area Next, call AREA with an output argument (to store the handle to the areaseries object AREA created) and GET the properties of that handle. Make sure the FaceColor property of that object is cyan [0 1 1]. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
From: Judy on 4 Aug 2010 14:26 Looks like MATLAB thinks it is filling in the right color but it isn't being displayed as so. I've tried other colors too in the FaceColor property and it still results in a filled in dark blue color as seen in my link below. I may just have to live with this if there is no other choice. http://imgur.com/Ko4RR Thanks~
From: Walter Roberson on 4 Aug 2010 14:40 Judy wrote: > Looks like MATLAB thinks it is filling in the right color but it isn't > being displayed as so. I've tried other colors too in the FaceColor > property and it still results in a filled in dark blue color as seen in > my link below. I may just have to live with this if there is no other > choice. What is your renderer set to?
From: Judy on 4 Aug 2010 14:54 Walter Roberson <roberson(a)hushmail.com> wrote in message <i3cc6p$cbf$1(a)canopus.cc.umanitoba.ca>... > Judy wrote: > > Looks like MATLAB thinks it is filling in the right color but it isn't > > being displayed as so. I've tried other colors too in the FaceColor > > property and it still results in a filled in dark blue color as seen in > > my link below. I may just have to live with this if there is no other > > choice. > > What is your renderer set to? What is a rendered set? (?) Thanks.
From: us on 4 Aug 2010 15:03 "Judy " <sauwen.jl(a)gmail.com> wrote in message <i3ac8p$qvl$1(a)fred.mathworks.com>... > I looked at patch but when I wanted to color in two vertical lines, it made 2 triangles instead. I suppose I could indicate 4 vertices.. but that doesn't seem very clean. this reflects a false setup of your X/Y parameters for PATCH... can you show CSSM how you called the function(?)... note: PATCH is much more versatile compared to AREA, which comes with a simple level arg to close your patch... us
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: Periodogram PSD of a white noise Next: executable files |