Is there a way to get a bit of "depth perception" in matlab? ie if i plot some primitives like lines and points, I can't really tell where they are unless I rotate the plot around for a while. Is there something like shadows or something that can be turned on to give at least some sense of depth instead of just green pixels on a white background, which are very ambiguous?
Anyone have a good way to do this?
Thanks,
Dave
Subject: 3d plots of lines and points hard to read
David Doria wrote:
> Is there a way to get a bit of "depth perception" in matlab? ie if i plot some primitives
> like lines and points,
Lighting only applies to surface and patch objects, not to lines and points. You could
try the hack of replacing your lines and points with patch objects that retrace back
on themselves to be infinitely thin; I wouldn't be especially hopeful about that approach
though.
> I can't really tell where they are unless I rotate the plot around for a while.
> Is there something like shadows or something that can be turned on to give at least
> some sense of depth instead of just green pixels on a white background, which are very ambiguous?
You should be able to set a 3D plot to have perspective by changing the axes Camera*
properties (I think)... but sometimes that just isn't enough.
You can't do colour interpolation on any one line or lineseries object; you either use
patches (as mentioned above) or you break your line or lineseries object up into
segments and colour the segments.
Subject: 3d plots of lines and points hard to read
Another way to get an impression of depth may be using stem3
Best,
Wolfgang
Walter Roberson <roberson@hushmail.com> wrote in message <Pu9Ik.1875$eB2.209@newsfe19.iad>...
> David Doria wrote:
> > Is there a way to get a bit of "depth perception" in matlab? ie if i plot some primitives
> > like lines and points,
>
> Lighting only applies to surface and patch objects, not to lines and points. You could
> try the hack of replacing your lines and points with patch objects that retrace back
> on themselves to be infinitely thin; I wouldn't be especially hopeful about that approach
> though.
>
> > I can't really tell where they are unless I rotate the plot around for a while.
> > Is there something like shadows or something that can be turned on to give at least
> > some sense of depth instead of just green pixels on a white background, which are very ambiguous?
>
> You should be able to set a 3D plot to have perspective by changing the axes Camera*
> properties (I think)... but sometimes that just isn't enough.
>
> You can't do colour interpolation on any one line or lineseries object; you either use
> patches (as mentioned above) or you break your line or lineseries object up into
> segments and colour the segments.
Tags for this Thread
Add a New Tag:
Separated by commas
Ex.: root locus, bode
What are tags?
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.