<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting nearest plot in Measurement Studio for .NET Languages</title>
    <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Getting-nearest-plot/m-p/341237#M3136</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Thanks Elton.&amp;nbsp;&amp;nbsp; That will work fine.&amp;nbsp; I was hoping there was a "get nearest plot" type of thing.&amp;nbsp; But we will just have to make the user click on the plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Scott&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2006 16:21:12 GMT</pubDate>
    <dc:creator>Sof</dc:creator>
    <dc:date>2006-03-21T16:21:12Z</dc:date>
    <item>
      <title>Getting nearest plot</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Getting-nearest-plot/m-p/340757#M3127</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I have multiple plots on a scattergraph.&amp;nbsp; The user wants to click on one of those plots and have the cursor be assigned to that plot.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Is there a way to do this?&amp;nbsp; I can't find anything that will work.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;VS2005&lt;/DIV&gt;
&lt;DIV&gt;NI 7.1&lt;/DIV&gt;
&lt;DIV&gt;C#&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;thanks,&lt;/DIV&gt;
&lt;DIV&gt;Scott&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Mar 2006 21:14:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Getting-nearest-plot/m-p/340757#M3127</guid>
      <dc:creator>Sof</dc:creator>
      <dc:date>2006-03-20T21:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting nearest plot</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Getting-nearest-plot/m-p/340898#M3130</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;
The graphs have a GetPlotAt method that will return a reference to the plot if
there is a plot point at the specified coordinates.  You could use this method
in a mouse event handler, check to see if there is a plot at the specified
coordinates, and if so, associate the plot with the cursor.  For example:
&lt;/P&gt;

&lt;PRE&gt;private void OnPlotAreaMouseDown(object sender, MouseEventArgs e)
{
    XYPlot plot = graph.GetPlotAt(e.X, e.Y);
    if (plot != null)
        xyCursor1.Plot = plot;
}
&lt;/PRE&gt;

&lt;P&gt;
- Elton
&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2006 03:09:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Getting-nearest-plot/m-p/340898#M3130</guid>
      <dc:creator>Elton Wells</dc:creator>
      <dc:date>2006-03-21T03:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting nearest plot</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Getting-nearest-plot/m-p/341237#M3136</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Thanks Elton.&amp;nbsp;&amp;nbsp; That will work fine.&amp;nbsp; I was hoping there was a "get nearest plot" type of thing.&amp;nbsp; But we will just have to make the user click on the plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2006 16:21:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Getting-nearest-plot/m-p/341237#M3136</guid>
      <dc:creator>Sof</dc:creator>
      <dc:date>2006-03-21T16:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting nearest plot</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Getting-nearest-plot/m-p/341247#M3139</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;
Another thing you could consider doing is adding a legend for the plots and
then let users associate the cursor with the plots via the legend items, via
clicking on the legend item for the plot, a context menu on the legend, etc.
&lt;/P&gt;

&lt;P&gt;
- Elton
&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2006 16:29:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Getting-nearest-plot/m-p/341247#M3139</guid>
      <dc:creator>Elton Wells</dc:creator>
      <dc:date>2006-03-21T16:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting nearest plot</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Getting-nearest-plot/m-p/341269#M3141</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Yes.&amp;nbsp; That was in fact one of the ways I had suggested.&amp;nbsp; They want the "click on plot" method also, however, because that is what their previous Motif program gave them.&amp;nbsp; I will also give them the up down arrow keys to cycle through plots.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2006 16:50:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-NET/Getting-nearest-plot/m-p/341269#M3141</guid>
      <dc:creator>Sof</dc:creator>
      <dc:date>2006-03-21T16:50:25Z</dc:date>
    </item>
  </channel>
</rss>

