<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244555</link>
    <title>MATLAB Central Newsreader - coloring and customizing scatter plots</title>
    <description>Feed for thread: coloring and customizing scatter plots</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>Sun, 15 Feb 2009 21:04:21 -0500</pubDate>
      <title>coloring and customizing scatter plots</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244555#628441</link>
      <author>perfreem@gmail.com</author>
      <description>hello,&lt;br&gt;
&lt;br&gt;
suppose i have the following scatter plot:&lt;br&gt;
&lt;br&gt;
x=5*randn(1000,1);&lt;br&gt;
y=.5*randn(1000,1);&lt;br&gt;
lh=scatterhist(x,y);&lt;br&gt;
bc=get(gcf,'color');&lt;br&gt;
set(lh(2:3),'visible','on','color',bc,'box','off');&lt;br&gt;
set(lh(2),'xtick',[],'xcolor',bc);&lt;br&gt;
set(lh(2),'yticklabel',abs(get(lh(2),'ytick')));&lt;br&gt;
set(lh(3),'ytick',[],'ycolor',bc);&lt;br&gt;
set(lh(3),'xticklabel',abs(get(lh(3),'xtick')));&lt;br&gt;
&lt;br&gt;
how can i set the color of the scatter plot? i tried setting&lt;br&gt;
'MarkerFaceColor' on the return of scatter hist but it does not work..&lt;br&gt;
how can i get the scatter plot's plot handle?&lt;br&gt;
&lt;br&gt;
also, i tried resetting the position of the axes. while:&lt;br&gt;
&lt;br&gt;
set(lh(2), 'yaxislocation', 'right');&lt;br&gt;
&lt;br&gt;
works, doing the same for lh(1) does not. how can i change its axis?&lt;br&gt;
&lt;br&gt;
finally, is there a way to get the two marginal histograms to not only&lt;br&gt;
use the same number of bins, but use the same bins in particular? that&lt;br&gt;
way histograms can be compared&lt;br&gt;
&lt;br&gt;
thank you.</description>
    </item>
  </channel>
</rss>

