Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!i20g2000prf.googlegroups.com!not-for-mail
From: perfreem@gmail.com
Newsgroups: comp.soft-sys.matlab
Subject: Re: scatterhist with axis
Date: Mon, 2 Feb 2009 16:20:03 -0800 (PST)
Organization: http://groups.google.com
Lines: 28
Message-ID: <8da1806f-a732-40ef-942f-33233c259d6a@i20g2000prf.googlegroups.com>
References: <65f14c0d-ecfb-445e-bfd0-8b02009abcd2@l33g2000pri.googlegroups.com> 
	<glvd1m$pnr$1@fred.mathworks.com>
NNTP-Posting-Host: 18.79.2.173
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1233620403 1080 127.0.0.1 (3 Feb 2009 00:20:03 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 3 Feb 2009 00:20:03 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: i20g2000prf.googlegroups.com; posting-host=18.79.2.173; 
	posting-account=aj71ngoAAAAYxQ83mJE8SXkq6oPGq18K
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) 
	Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:515543


On Jan 30, 12:23=A0pm, "us " <u...@neurol.unizh.ch> wrote:
> perfr...@gmail.com
>
> > i am using thescatterhistcommand to plot a scatter plot along with
> > its histogram. how can i make it so axes are added to the histogram
> > (the y axis), so that i know what each bar represents...
>
> one of the solutions
>
> % the data
> =A0 =A0 =A0x=3Drandn(1000,1);
> =A0 =A0 =A0y=3Drandn(1000,1);
> % the plot
> =A0 =A0 =A0lh=3Dscatterhist(x,y);
> =A0 =A0 =A0bc=3Dget(gcf,'color');
> =A0 =A0 =A0set(lh(2:3),'visible','on','color',bc,'box','off');
> % - x-axis hist
> =A0 =A0 =A0set(lh(2),'xtick',[],'xcolor',bc);
> % - y-axis hist
> =A0 =A0 =A0set(lh(3),'ytick',[],'ycolor',bc);
>
> us


when i do this, the histogram axes appear to have the right values but
are shown as negative numbers. any idea how to fix this?

thank you