<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Accessing plot brushed data	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/accessing-plot-brushed-data/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/accessing-plot-brushed-data?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=accessing-plot-brushed-data</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Mon, 25 Sep 2017 10:59:56 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-413999</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 25 Sep 2017 10:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1911#comment-413999</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-413252&quot;&gt;ZR&lt;/a&gt;.

@ZR - if you read my article carefully you will see that &lt;b&gt;BrushHandles&lt;/b&gt; and &lt;b&gt;BrushData&lt;/b&gt; are properties of the line object (which is returned by the &lt;i&gt;&lt;b&gt;plot&lt;/b&gt;&lt;/i&gt; or &lt;i&gt;&lt;b&gt;line&lt;/b&gt;&lt;/i&gt; or &lt;i&gt;&lt;b&gt;scatter&lt;/b&gt;&lt;/i&gt; functions) - not of the axes object.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-413252">ZR</a>.</p>
<p>@ZR &#8211; if you read my article carefully you will see that <b>BrushHandles</b> and <b>BrushData</b> are properties of the line object (which is returned by the <i><b>plot</b></i> or <i><b>line</b></i> or <i><b>scatter</b></i> functions) &#8211; not of the axes object.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ZR		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-413252</link>

		<dc:creator><![CDATA[ZR]]></dc:creator>
		<pubDate>Fri, 08 Sep 2017 13:21:56 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1911#comment-413252</guid>

					<description><![CDATA[Hello,
Is there a way to access brushed data for Scatters in Matlab 2015b? I was able to get it to work in 2012a using your first method described above, but your method described in &quot;Updates for HG2 (R2014b+)&quot; doesn&#039;t seem to work. I tried the following, with the following results:
&lt;pre lang=&quot;matlab&quot;&gt;
&gt;&gt; hl.BrushHandles
No appropriate method, property, or field &#039;BrushHandles&#039; for class &#039;matlab.graphics.axis.Axes&#039;.
 
&gt;&gt; get(hl,&#039;BrushData&#039;)
Error using matlab.graphics.axis.Axes/get
There is no BrushData property on the Axes class.
&lt;/pre&gt;

Just to reiterate, this is specifically for scatters, not plots.

Thanks!]]></description>
			<content:encoded><![CDATA[<p>Hello,<br />
Is there a way to access brushed data for Scatters in Matlab 2015b? I was able to get it to work in 2012a using your first method described above, but your method described in &#8220;Updates for HG2 (R2014b+)&#8221; doesn&#8217;t seem to work. I tried the following, with the following results:</p>
<pre lang="matlab">
>> hl.BrushHandles
No appropriate method, property, or field 'BrushHandles' for class 'matlab.graphics.axis.Axes'.
 
>> get(hl,'BrushData')
Error using matlab.graphics.axis.Axes/get
There is no BrushData property on the Axes class.
</pre>
<p>Just to reiterate, this is specifically for scatters, not plots.</p>
<p>Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-405225</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 22 Apr 2017 20:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1911#comment-405225</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-405176&quot;&gt;Eric&lt;/a&gt;.

@Eric - see my comment above: http://undocumentedmatlab.com/blog/accessing-plot-brushed-data#comment-345181]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-405176">Eric</a>.</p>
<p>@Eric &#8211; see my comment above: <a href="http://undocumentedmatlab.com/blog/accessing-plot-brushed-data#comment-345181" rel="ugc">http://undocumentedmatlab.com/blog/accessing-plot-brushed-data#comment-345181</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eric		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-405176</link>

		<dc:creator><![CDATA[Eric]]></dc:creator>
		<pubDate>Fri, 21 Apr 2017 19:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1911#comment-405176</guid>

					<description><![CDATA[@Yair Altman
findall(gca,&#039;tag&#039;,&#039;Brushing&#039;) returns zero on my machine.  I&#039;m using R2016b.]]></description>
			<content:encoded><![CDATA[<p>@Yair Altman<br />
findall(gca,&#8217;tag&#8217;,&#8217;Brushing&#8217;) returns zero on my machine.  I&#8217;m using R2016b.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-401938</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 04 Mar 2017 17:53:05 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1911#comment-401938</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-401901&quot;&gt;Rahul&lt;/a&gt;.

@Rahul - the code that I posted above works well even in R2016b]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-401901">Rahul</a>.</p>
<p>@Rahul &#8211; the code that I posted above works well even in R2016b</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rahul		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-401901</link>

		<dc:creator><![CDATA[Rahul]]></dc:creator>
		<pubDate>Sat, 04 Mar 2017 12:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1911#comment-401901</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-345180&quot;&gt;bash0r&lt;/a&gt;.

i try this for getting the brush data in matlab 15b but it is now working.
why?.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-345180">bash0r</a>.</p>
<p>i try this for getting the brush data in matlab 15b but it is now working.<br />
why?.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-370082</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 18 Feb 2016 17:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1911#comment-370082</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-370072&quot;&gt;Bill&lt;/a&gt;.

@Bill - http://undocumentedmatlab.com/blog/getundoc-get-undocumented-object-properties]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-370072">Bill</a>.</p>
<p>@Bill &#8211; <a href="http://undocumentedmatlab.com/blog/getundoc-get-undocumented-object-properties" rel="ugc">http://undocumentedmatlab.com/blog/getundoc-get-undocumented-object-properties</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bill		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-370073</link>

		<dc:creator><![CDATA[Bill]]></dc:creator>
		<pubDate>Thu, 18 Feb 2016 14:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1911#comment-370073</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-346119&quot;&gt;colin&lt;/a&gt;.

You can set the brush data using the &lt;i&gt;&lt;b&gt;set&lt;/b&gt;&lt;/i&gt; command with your line handle, just like you would set the &lt;b&gt;XData&lt;/b&gt; or &lt;b&gt;YData&lt;/b&gt;.

&lt;pre lang=&quot;matlab&quot;&gt;set(hLine,&#039;BrushData&#039;,xxx)&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-346119">colin</a>.</p>
<p>You can set the brush data using the <i><b>set</b></i> command with your line handle, just like you would set the <b>XData</b> or <b>YData</b>.</p>
<pre lang="matlab">set(hLine,'BrushData',xxx)</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bill		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-370072</link>

		<dc:creator><![CDATA[Bill]]></dc:creator>
		<pubDate>Thu, 18 Feb 2016 14:05:37 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1911#comment-370072</guid>

					<description><![CDATA[Thanks! What a great article. Your update in the comments for R2104b+ saved me. How do you find hidden line properties like &lt;b&gt;BrushData&lt;/b&gt;?]]></description>
			<content:encoded><![CDATA[<p>Thanks! What a great article. Your update in the comments for R2104b+ saved me. How do you find hidden line properties like <b>BrushData</b>?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nimrod Geffen		</title>
		<link>https://undocumentedmatlab.com/articles/accessing-plot-brushed-data#comment-355518</link>

		<dc:creator><![CDATA[Nimrod Geffen]]></dc:creator>
		<pubDate>Thu, 20 Aug 2015 10:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1911#comment-355518</guid>

					<description><![CDATA[Shalom Yair!
I have a GUI that I would like to have the interactive option of deleting scatter points with Brush function. My code is:
&lt;pre lang=&#039;matlab&#039;&gt;
h = brush;
set(h, &#039;Enable&#039;, &#039;on&#039;, &#039;color&#039;, &#039;c&#039;);
pause
brushedIdx = logical(handles.hScatter.BrushData);  % handles.hScatter is the scatter plot handle
brushedXData = hLine.XData(brushedIdx);
&lt;/pre&gt;

It seems like the pause is just not working. If I debug and put a breakpoint after the pause it jumps right to it without letting me grab the brush data.

I used brush with pause in matlab 2013 (with the findall(gca,&#039;tag&#039;,&#039;Brushing&#039;); to get the brush data) and it worked fine. I&#039;ll mention that the GUI is a child GUI and it has uiwait in the openning function (Maybe it is related but in matlab 2013 it did&#039;nt bother).

Thank you very much for your help!

Nimrod]]></description>
			<content:encoded><![CDATA[<p>Shalom Yair!<br />
I have a GUI that I would like to have the interactive option of deleting scatter points with Brush function. My code is:</p>
<pre lang='matlab'>
h = brush;
set(h, 'Enable', 'on', 'color', 'c');
pause
brushedIdx = logical(handles.hScatter.BrushData);  % handles.hScatter is the scatter plot handle
brushedXData = hLine.XData(brushedIdx);
</pre>
<p>It seems like the pause is just not working. If I debug and put a breakpoint after the pause it jumps right to it without letting me grab the brush data.</p>
<p>I used brush with pause in matlab 2013 (with the findall(gca,&#8217;tag&#8217;,&#8217;Brushing&#8217;); to get the brush data) and it worked fine. I&#8217;ll mention that the GUI is a child GUI and it has uiwait in the openning function (Maybe it is related but in matlab 2013 it did&#8217;nt bother).</p>
<p>Thank you very much for your help!</p>
<p>Nimrod</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
