<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239632</link>
    <title>MATLAB Central Newsreader - interactive plot functions</title>
    <description>Feed for thread: interactive plot functions</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>Thu, 20 Nov 2008 22:46:02 -0500</pubDate>
      <title>interactive plot functions</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239632#612250</link>
      <author>Alan B</author>
      <description>I wrote a small function which displays two plots on a figure, and uses the windowbuttonmotionfcn to interactively modify the axis limits in the second plot, based on the mouse position in the first plot. The plots contain the same data, which right now is a set of two 240000-element vectors. The functionality is achieved by using a single function with an &quot;action&quot; input variable, and a big if-else block.&lt;br&gt;
&lt;br&gt;
This program functions properly but it is a bit slow, the second plot will update about 2 times per second when I am moving the mouse around quickly. When I reduce the size of the vectors, it responds much more quickly. I can think of a few ways that I might be able to speed up the display, but I'm not sure if they'll work; originally I thought that changing the display by modifying axes limits would be the fastest way to do it, and that doesn't seem to be the case.&lt;br&gt;
&lt;br&gt;
Before I try a bunch of different ideas to speed this up, I thought I'd ask here if anyone has had a similar problem, and if maybe there is a better way to structure my program.&lt;br&gt;
&lt;br&gt;
Thanks for any help.</description>
    </item>
  </channel>
</rss>

