<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241827</link>
    <title>MATLAB Central Newsreader - Two lined legend entry</title>
    <description>Feed for thread: Two lined legend entry</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, 02 Jan 2009 22:53:02 -0500</pubDate>
      <title>Two lined legend entry</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241827#619635</link>
      <author>Bruce </author>
      <description>Does anyone know how to make one legend entry have two lines of text (rather than one very long line)?&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
Bruce</description>
    </item>
    <item>
      <pubDate>Sat, 03 Jan 2009 01:34:02 -0500</pubDate>
      <title>Re: Two lined legend entry</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/241827#619640</link>
      <author>Jiro Doke</author>
      <description>&quot;Bruce &quot; &amp;lt;brucebassi@yahoo.com&amp;gt; wrote in message &amp;lt;gjm5se$ios$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Does anyone know how to make one legend entry have two lines of text (rather than one very long line)?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&amp;gt; Bruce&lt;br&gt;
&lt;br&gt;
You can use SPRINTF:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; plot(rand(10,2))&lt;br&gt;
&amp;gt;&amp;gt; legend(sprintf('this has\ntwo lines'), 'this is one line')&lt;br&gt;
&lt;br&gt;
jiro</description>
    </item>
  </channel>
</rss>

