<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246735</link>
    <title>MATLAB Central Newsreader - linewidth control</title>
    <description>Feed for thread: linewidth control</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>Mon, 16 Mar 2009 02:17:01 -0400</pubDate>
      <title>linewidth control</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246735#635109</link>
      <author>Godzilla </author>
      <description>Is it possible to more accurately control the linewidth of a plotted line? &lt;br&gt;
&lt;br&gt;
I would really like to scale the width of the line to some fraction of the x-axis tick marks.   For example, my ticks are 1-second spacing and I want draw a line whose width corresponds to 100 msec.  &lt;br&gt;
&lt;br&gt;
&amp;nbsp;</description>
    </item>
    <item>
      <pubDate>Mon, 16 Mar 2009 19:11:01 -0400</pubDate>
      <title>Re: linewidth control</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246735#635322</link>
      <author>Miroslav Balda</author>
      <description>&quot;Godzilla &quot; &amp;lt;godzilla@tokyo.edu&amp;gt; wrote in message &amp;lt;gpkcqt$9n5$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Is it possible to more accurately control the linewidth of a plotted line? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I would really like to scale the width of the line to some fraction of the x-axis tick marks.   For example, my ticks are 1-second spacing and I want draw a line whose width corresponds to 100 msec.  &lt;br&gt;
&lt;br&gt;
Hi,&lt;br&gt;
One solution is here:&lt;br&gt;
&lt;br&gt;
lw = 0.1;     %   linewidth in seconds&lt;br&gt;
set(gca,'Units','pixels');&lt;br&gt;
xlim = get(gca,'XLim');&lt;br&gt;
dt = xlim(2)-xlim(1);          % displayed time in seconds&lt;br&gt;
pos = get(gca,'Position');&lt;br&gt;
w = (pos(3)-pos(1))/dx*lw;&lt;br&gt;
plot(t,fun(t),'Linewidth',w);&lt;br&gt;
&lt;br&gt;
Hope it hepls.&lt;br&gt;
&lt;br&gt;
Mira</description>
    </item>
    <item>
      <pubDate>Tue, 17 Mar 2009 02:15:04 -0400</pubDate>
      <title>Re: linewidth control</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/246735#635399</link>
      <author>Godzilla </author>
      <description>&quot;Miroslav Balda&quot; &amp;lt;miroslav.nospam@balda.cz&amp;gt; wrote in message &amp;lt;gpm885$s28$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Godzilla &quot; &amp;lt;godzilla@tokyo.edu&amp;gt; wrote in message &amp;lt;gpkcqt$9n5$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Is it possible to more accurately control the linewidth of a plotted line? &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; I would really like to scale the width of the line to some fraction of the x-axis tick marks.   For example, my ticks are 1-second spacing and I want draw a line whose width corresponds to 100 msec.  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; One solution is here:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; lw = 0.1;     %   linewidth in seconds&lt;br&gt;
&amp;gt; set(gca,'Units','pixels');&lt;br&gt;
&amp;gt; xlim = get(gca,'XLim');&lt;br&gt;
&amp;gt; dt = xlim(2)-xlim(1);          % displayed time in seconds&lt;br&gt;
&amp;gt; pos = get(gca,'Position');&lt;br&gt;
&amp;gt; w = (pos(3)-pos(1))/dx*lw;&lt;br&gt;
&amp;gt; plot(t,fun(t),'Linewidth',w);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hope it hepls.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Mira&lt;br&gt;
&lt;br&gt;
Thanks.  Just what I was looking for. </description>
    </item>
  </channel>
</rss>

