Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe19.iad.POSTED!7564ea0f!not-for-mail
From: Walter Roberson <roberson@hushmail.com>
Organization: Canada Eat The Cookie Foundation
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Re: 3d plots of lines and points hard to read
References: <gcq8dl$sdu$1@fred.mathworks.com>
In-Reply-To: <gcq8dl$sdu$1@fred.mathworks.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 19
Message-ID: <Pu9Ik.1875$eB2.209@newsfe19.iad>
NNTP-Posting-Host: 24.79.146.116
X-Complaints-To: internet.abuse@sjrb.ca
X-Trace: newsfe19.iad 1223762991 24.79.146.116 (Sat, 11 Oct 2008 22:09:51 UTC)
NNTP-Posting-Date: Sat, 11 Oct 2008 22:09:51 UTC
Date: Sat, 11 Oct 2008 17:09:57 -0500
Xref: news.mathworks.com comp.soft-sys.matlab:494718


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.