|
From: bdb112 <boy...@an...> - 2011-04-03 00:48:14
|
Cannot pick markers '+','x' or others with zero area in plots made by pyplot.scatter The example below http://old.nabble.com/file/p31305303/picker_example_scatter.py picker_example_scatter.py is from the matplotlib docs, but modified to use scatter instead of plot (which works fine). http://matplotlib.sourceforge.net/users/event_handling.html#picking-exercise run picker_example_scatter.py <will not respond to any picks> edit code replace 'x' with 'o' <Works, but only if click is inside marker - i.e. ignores picker value.> See also http://old.nabble.com/Can't-pick-on-various-scatter-markers-tp19140977p19140977.html which describes the same problem. Ububtu 10.04 LTS matplotlib 0.99.1.1 Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) -- View this message in context: http://old.nabble.com/picker-inpoerative-on-scatter-markers-x%2C-%2B-%28those-with-zero-area%29-tp31305303p31305303.html Sent from the matplotlib - devel mailing list archive at Nabble.com. |
|
From: Eric F. <ef...@ha...> - 2011-04-03 01:05:00
|
On 04/02/2011 02:48 PM, bdb112 wrote: > > Cannot pick markers '+','x' or others with zero area in plots made by > pyplot.scatter > > The example below > http://old.nabble.com/file/p31305303/picker_example_scatter.py > picker_example_scatter.py is from the matplotlib docs, but modified to use > scatter instead of plot (which works fine). > http://matplotlib.sourceforge.net/users/event_handling.html#picking-exercise > > run picker_example_scatter.py > <will not respond to any picks> > edit code replace 'x' with 'o' > <Works, but only if click is inside marker - i.e. ignores picker value.> > > See also > http://old.nabble.com/Can't-pick-on-various-scatter-markers-tp19140977p19140977.html > which describes the same problem. The bug is verified in 1.0.x. I have looked around, but haven't figured it out yet. Eric > > Ububtu 10.04 LTS > matplotlib 0.99.1.1 > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) > > |
|
From: Eric F. <ef...@ha...> - 2011-04-04 00:46:51
|
On 04/02/2011 02:48 PM, bdb112 wrote: > > Cannot pick markers '+','x' or others with zero area in plots made by > pyplot.scatter > > The example below > http://old.nabble.com/file/p31305303/picker_example_scatter.py > picker_example_scatter.py is from the matplotlib docs, but modified to use > scatter instead of plot (which works fine). > http://matplotlib.sourceforge.net/users/event_handling.html#picking-exercise > > run picker_example_scatter.py > <will not respond to any picks> > edit code replace 'x' with 'o' > <Works, but only if click is inside marker - i.e. ignores picker value.> > > See also > http://old.nabble.com/Can't-pick-on-various-scatter-markers-tp19140977p19140977.html > which describes the same problem. > > Ububtu 10.04 LTS > matplotlib 0.99.1.1 > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) > > See https://github.com/matplotlib/matplotlib/pull/72 for a possible solution. Eric |
|
From: bdb112 <boy...@an...> - 2011-04-05 03:34:55
|
Tried the fix over a 1.0.0 installation a few months old and it works, but there are issues with blocking, which I have encountered before. I will try on the current snapshot, and also adapt your fix to a 0.99 release which has a blocking behaviour that I understand better. efiring wrote: > > On 04/02/2011 02:48 PM, bdb112 wrote: >> >> Cannot pick markers '+','x' or others with zero area in plots made by >> pyplot.scatter >> >> The example below >> http://old.nabble.com/file/p31305303/picker_example_scatter.py >> picker_example_scatter.py is from the matplotlib docs, but modified to >> use >> scatter instead of plot (which works fine). >> http://matplotlib.sourceforge.net/users/event_handling.html#picking-exercise >> >> run picker_example_scatter.py >> <will not respond to any picks> >> edit code replace 'x' with 'o' >> <Works, but only if click is inside marker - i.e. ignores picker value.> >> >> See also >> http://old.nabble.com/Can't-pick-on-various-scatter-markers-tp19140977p19140977.html >> which describes the same problem. >> >> Ububtu 10.04 LTS >> matplotlib 0.99.1.1 >> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) >> >> > > See https://github.com/matplotlib/matplotlib/pull/72 for a possible > solution. > > Eric > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > -- View this message in context: http://old.nabble.com/picker-inpoerative-on-scatter-markers-x%2C-%2B-%28those-with-zero-area%29-tp31305303p31320598.html Sent from the matplotlib - devel mailing list archive at Nabble.com. |