Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!i18g2000prf.googlegroups.com!not-for-mail
From: perfreem@gmail.com
Newsgroups: comp.soft-sys.matlab
Subject: customizing scatter plots
Date: Sat, 14 Feb 2009 13:12:58 -0800 (PST)
Organization: http://groups.google.com
Lines: 23
Message-ID: <ec21e101-2c20-4813-ad1d-7b51d13d09a8@i18g2000prf.googlegroups.com>
NNTP-Posting-Host: 18.188.71.146
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1234645979 22695 127.0.0.1 (14 Feb 2009 21:12:59 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 14 Feb 2009 21:12:59 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: i18g2000prf.googlegroups.com; posting-host=18.188.71.146; 
	posting-account=aj71ngoAAAAYxQ83mJE8SXkq6oPGq18K
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_6; en-us) 
	AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:518286


hello,
i have a few questions about plotting scatter plots and changing
their
axes.
1] if i have a simple scatter plot, like
a = [0:.01:10];
b = a.*rand(1,length(a));
scatter(a,b);
set(gca, 'Box', 'off', 'LineWidth', 1);
set(gca, 'TickDir', 'out');
how can i make it so the two axes do not cross at 0? with the above
they extend past each other. how can i prevent the two ticks from
coming out just at the (0, 0) point?

2] is there a way to add a box plot for the marginals (a and b) for
this plot on the sides? like scatterhist(a,b) except showing box
plots
rather than the histogram?

3] is there a way in matlab to make the x and y axes separate from
each other, like Tufte axes? for example, see:
http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=81
thanks you for your help, i appreciate it!