<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243443</link>
    <title>MATLAB Central Newsreader - scatterhist with axis</title>
    <description>Feed for thread: scatterhist with axis</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 30 Jan 2009 15:15:53 -0500</pubDate>
      <title>scatterhist with axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243443#625020</link>
      <author>perfreem@gmail.com</author>
      <description>hello,&lt;br&gt;
&lt;br&gt;
i am using the scatterhist command to plot a scatter plot along with&lt;br&gt;
its histogram. how can i make it so axes are added to the histogram&lt;br&gt;
(the y axis), so that i know what each bar represents?&lt;br&gt;
&lt;br&gt;
thanks you.</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jan 2009 15:48:31 -0500</pubDate>
      <title>Re: scatterhist with axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243443#625028</link>
      <author>Tom Lane</author>
      <description>&amp;gt; i am using the scatterhist command to plot a scatter plot along with&lt;br&gt;
&amp;gt; its histogram. how can i make it so axes are added to the histogram&lt;br&gt;
&amp;gt; (the y axis), so that i know what each bar represents?&lt;br&gt;
&lt;br&gt;
Here's one way:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;% Get all axes in current figure, make them visible&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;set(findobj(gcf,'type','axes'),'visib','on')&lt;br&gt;
&lt;br&gt;
-- Tom </description>
    </item>
    <item>
      <pubDate>Fri, 30 Jan 2009 16:52:11 -0500</pubDate>
      <title>Re: scatterhist with axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243443#625039</link>
      <author>perfreem@gmail.com</author>
      <description>On Jan 30, 10:48=A0am, &quot;Tom Lane&quot; &amp;lt;tl...@mathworks.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; i am using the scatterhist command to plot a scatter plot along with&lt;br&gt;
&amp;gt; &amp;gt; its histogram. how can i make it so axes are added to the histogram&lt;br&gt;
&amp;gt; &amp;gt; (the y axis), so that i know what each bar represents?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Here's one way:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; =A0 =A0% Get all axes in current figure, make them visible&lt;br&gt;
&amp;gt; =A0 =A0set(findobj(gcf,'type','axes'),'visib','on')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -- Tom&lt;br&gt;
&lt;br&gt;
thanks, but i don't want all the axes to show, just the y axis of the&lt;br&gt;
histograms... how can i find this axis id? i just want to be able to&lt;br&gt;
interpret the height of every bar on the histogram.</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jan 2009 17:23:02 -0500</pubDate>
      <title>Re: scatterhist with axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243443#625047</link>
      <author>us</author>
      <description>perfreem@gmail.com&lt;br&gt;
&amp;gt; i am using the scatterhist command to plot a scatter plot along with&lt;br&gt;
&amp;gt; its histogram. how can i make it so axes are added to the histogram&lt;br&gt;
&amp;gt; (the y axis), so that i know what each bar represents...&lt;br&gt;
&lt;br&gt;
one of the solutions&lt;br&gt;
&lt;br&gt;
% the data&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x=randn(1000,1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;y=randn(1000,1);&lt;br&gt;
% the plot&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lh=scatterhist(x,y);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bc=get(gcf,'color');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(lh(2:3),'visible','on','color',bc,'box','off');&lt;br&gt;
% - x-axis hist&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(lh(2),'xtick',[],'xcolor',bc);&lt;br&gt;
% - y-axis hist&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(lh(3),'ytick',[],'ycolor',bc);&lt;br&gt;
&lt;br&gt;
us</description>
    </item>
    <item>
      <pubDate>Tue, 03 Feb 2009 00:20:03 -0500</pubDate>
      <title>Re: scatterhist with axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243443#625579</link>
      <author>perfreem@gmail.com</author>
      <description>On Jan 30, 12:23=A0pm, &quot;us &quot; &amp;lt;u...@neurol.unizh.ch&amp;gt; wrote:&lt;br&gt;
&amp;gt; perfr...@gmail.com&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; i am using thescatterhistcommand to plot a scatter plot along with&lt;br&gt;
&amp;gt; &amp;gt; its histogram. how can i make it so axes are added to the histogram&lt;br&gt;
&amp;gt; &amp;gt; (the y axis), so that i know what each bar represents...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; one of the solutions&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; % the data&lt;br&gt;
&amp;gt; =A0 =A0 =A0x=3Drandn(1000,1);&lt;br&gt;
&amp;gt; =A0 =A0 =A0y=3Drandn(1000,1);&lt;br&gt;
&amp;gt; % the plot&lt;br&gt;
&amp;gt; =A0 =A0 =A0lh=3Dscatterhist(x,y);&lt;br&gt;
&amp;gt; =A0 =A0 =A0bc=3Dget(gcf,'color');&lt;br&gt;
&amp;gt; =A0 =A0 =A0set(lh(2:3),'visible','on','color',bc,'box','off');&lt;br&gt;
&amp;gt; % - x-axis hist&lt;br&gt;
&amp;gt; =A0 =A0 =A0set(lh(2),'xtick',[],'xcolor',bc);&lt;br&gt;
&amp;gt; % - y-axis hist&lt;br&gt;
&amp;gt; =A0 =A0 =A0set(lh(3),'ytick',[],'ycolor',bc);&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
when i do this, the histogram axes appear to have the right values but&lt;br&gt;
are shown as negative numbers. any idea how to fix this?&lt;br&gt;
&lt;br&gt;
thank you</description>
    </item>
    <item>
      <pubDate>Tue, 03 Feb 2009 16:32:01 -0500</pubDate>
      <title>Re: scatterhist with axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/243443#625765</link>
      <author>us</author>
      <description>perfreem@gmail.com&lt;br&gt;
&amp;gt; &amp;gt; one of the solutions&lt;br&gt;
&amp;gt; &amp;gt; ...&lt;br&gt;
&lt;br&gt;
&amp;gt; when i do this, the histogram axes appear to have the right values but&lt;br&gt;
&amp;gt; are shown as negative numbers. any idea how to fix this...&lt;br&gt;
&lt;br&gt;
one of the solutions&lt;br&gt;
&lt;br&gt;
% the data&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x=5*randn(1000,1);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;y=.5*randn(1000,1);&lt;br&gt;
% the plot&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;lh=scatterhist(x,y);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bc=get(gcf,'color');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(lh(2:3),'visible','on','color',bc,'box','off');&lt;br&gt;
% - x-axis hist&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(lh(2),'xtick',[],'xcolor',bc);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(lh(2),'yticklabel',abs(get(lh(2),'ytick')));&lt;br&gt;
% - y-axis hist&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(lh(3),'ytick',[],'ycolor',bc);&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(lh(3),'xticklabel',abs(get(lh(3),'xtick')));&lt;br&gt;
&lt;br&gt;
us</description>
    </item>
  </channel>
</rss>

