SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S





1
(4)
2
(2)
3
(2)
4
(9)
5
(1)
6
(1)
7
8
(3)
9
(1)
10
11
(11)
12
(14)
13
(1)
14
(15)
15
(5)
16
(1)
17
(3)
18
(1)
19
(5)
20
(1)
21
(2)
22
23
(1)
24
25
26
(1)
27
(1)
28
29
30
(1)

Showing 9 results of 9

From: Eric F. <ef...@ha...> - 2011年04月04日 22:58:25
On 04/04/2011 12:35 PM, Darren Dale wrote:
> On Mon, Apr 4, 2011 at 5:57 PM, Eric Firing<ef...@ha...> wrote:
>> On 04/04/2011 10:24 AM, Darren Dale wrote:
>>> When I run some of the examples in pylab_examples, like
>>> simple_plot.py, the call to show() yields a window that immediately
>>> closes. This is with either the v1.0.x or master branches on OS X with
>>> python 2.7 and the qt4 backend, with interactive=True in matplotlibrc.
>>> When I change interactive to False, the window remains open until I
>>> close it.
>>>
>>> Is interactive=True not supported for scripts anymore?
>>
>> After testing and thinking a bit, I think the answer is that it never
>> was, unless you are in an environment like ipython. Certainly it hasn't
>> been any time recently. A script run from the command line exits when
>> it reaches the last line; if nothing blocks, then it will immediately
>> close the window and exit. This is not backend-dependent or
>> OS-dependent--it is just the way scripts work.
>
> I thought I remembered there being two separate issues: whether or not
> to block, and whether a plot is updated after each command or
> rendering is deferred until show() is called. Things may have changed
> when IPython pulled the threading monkeypatches, more likely my memory
> is bad. Your explanation makes sense. Thanks.
>
> Darren
Darren,
You are correct that interactive mode does have two effects, and I was 
only describing one--whether show blocks. The other effect of 
interactive mode is that pyplot commands, which include 
draw_if_interactive() calls, draw immediately when in interactive mode 
but draw only upon execution of show() when in non-interactive mode.
Eric
From: Darren D. <dsd...@gm...> - 2011年04月04日 22:35:50
On Mon, Apr 4, 2011 at 5:57 PM, Eric Firing <ef...@ha...> wrote:
> On 04/04/2011 10:24 AM, Darren Dale wrote:
>> When I run some of the examples in pylab_examples, like
>> simple_plot.py, the call to show() yields a window that immediately
>> closes. This is with either the v1.0.x or master branches on OS X with
>> python 2.7 and the qt4 backend, with interactive=True in matplotlibrc.
>> When I change interactive to False, the window remains open until I
>> close it.
>>
>> Is interactive=True not supported for scripts anymore?
>
> After testing and thinking a bit, I think the answer is that it never
> was, unless you are in an environment like ipython. Certainly it hasn't
> been any time recently. A script run from the command line exits when
> it reaches the last line; if nothing blocks, then it will immediately
> close the window and exit. This is not backend-dependent or
> OS-dependent--it is just the way scripts work.
I thought I remembered there being two separate issues: whether or not
to block, and whether a plot is updated after each command or
rendering is deferred until show() is called. Things may have changed
when IPython pulled the threading monkeypatches, more likely my memory
is bad. Your explanation makes sense. Thanks.
Darren
From: Eric F. <ef...@ha...> - 2011年04月04日 21:57:30
On 04/04/2011 10:24 AM, Darren Dale wrote:
> When I run some of the examples in pylab_examples, like
> simple_plot.py, the call to show() yields a window that immediately
> closes. This is with either the v1.0.x or master branches on OS X with
> python 2.7 and the qt4 backend, with interactive=True in matplotlibrc.
> When I change interactive to False, the window remains open until I
> close it.
>
> Is interactive=True not supported for scripts anymore?
After testing and thinking a bit, I think the answer is that it never 
was, unless you are in an environment like ipython. Certainly it hasn't 
been any time recently. A script run from the command line exits when 
it reaches the last line; if nothing blocks, then it will immediately 
close the window and exit. This is not backend-dependent or 
OS-dependent--it is just the way scripts work.
Eric
From: Eric F. <ef...@ha...> - 2011年04月04日 21:01:49
On 04/04/2011 10:24 AM, Darren Dale wrote:
> When I run some of the examples in pylab_examples, like
> simple_plot.py, the call to show() yields a window that immediately
> closes. This is with either the v1.0.x or master branches on OS X with
> python 2.7 and the qt4 backend, with interactive=True in matplotlibrc.
> When I change interactive to False, the window remains open until I
> close it.
>
> Is interactive=True not supported for scripts anymore?
No, everything is supposed to work with both values of interactive. The 
difference is supposed to be that show blocks only in non-interactive mode.
I see the same problem with qt4agg backend on linux. I don't think it 
was doing that back when I was working on show, so I suspect something 
changed in qt4agg backend; either that, or this is something I thought I 
tested but didn't. It still works under ipython from git.
Eric
From: Darren D. <dsd...@gm...> - 2011年04月04日 20:24:42
When I run some of the examples in pylab_examples, like
simple_plot.py, the call to show() yields a window that immediately
closes. This is with either the v1.0.x or master branches on OS X with
python 2.7 and the qt4 backend, with interactive=True in matplotlibrc.
When I change interactive to False, the window remains open until I
close it.
Is interactive=True not supported for scripts anymore?
From: Peter B. <bu...@gm...> - 2011年04月04日 19:09:13
Sorry, my question was not clear.
What you mention works, IF you know the last plotted object was a line
and not a text...
My question relates to trying to find this type of information automatically.
On Mon, Apr 4, 2011 at 7:15 AM, <bu...@gm...> wrote:
> Hi,
>
> Does matplotlib keep track of the last object added to the plot axes or its
> nature (line, text, collection, patch, etc.) ?
> If not, would it be feasible to implement something like this in matplotlib
> ?
>
> This could be useful for interactive plotting, as it would allow a simple
> undo feature based on commands such as del ax.lines[-1].
-- 
thanks,
peter butterworth
From: Paul I. <piv...@gm...> - 2011年04月04日 07:25:30
bu...@gm..., on 2011年04月04日 05:15, wrote:
> Hi,
> 
> Does matplotlib keep track of the last object added to the plot axes
> or its nature (line, text, collection, patch, etc.) ?
> If not, would it be feasible to implement something like this in
> matplotlib ?
> 
> This could be useful for interactive plotting, as it would allow a
> simple undo feature based on commands such as del ax.lines[-1].
Hi there,
I think this functionality already exists exactly as you
describe. ax.plot appends new lines to ax.lines, ax.scatter
appends new collection to ax.collections (via the
ax.add_collection method).
try this, and you'll see the cyan line is removed:
plt.plot([1,2,3],'r')
plt.plot([1,2,1],'c')
ax = plt.gca()
del(ax.lines[-1])
plt.draw()
-- 
Paul Ivanov
314 address only used for lists, off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 
From: <bu...@gm...> - 2011年04月04日 05:15:08
Hi,
Does matplotlib keep track of the last object added to the plot axes or its 
nature (line, text, collection, patch, etc.) ?
If not, would it be feasible to implement something like this in 
matplotlib ?
This could be useful for interactive plotting, as it would allow a simple 
undo feature based on commands such as del ax.lines[-1].
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

Showing 9 results of 9

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /