You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
| 2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
| 2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
| 2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
| 2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
| 2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
| 2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
| 2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
| 2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
| 2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
| 2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
| 2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
| 2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
| 2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
1
(24) |
2
(35) |
3
(21) |
4
(15) |
5
(1) |
|
6
(2) |
7
(30) |
8
(16) |
9
(11) |
10
(10) |
11
(10) |
12
(4) |
|
13
(2) |
14
(14) |
15
(21) |
16
(7) |
17
(5) |
18
(2) |
19
(5) |
|
20
|
21
(4) |
22
(8) |
23
(4) |
24
(6) |
25
(2) |
26
(2) |
|
27
(5) |
28
(9) |
29
(16) |
30
(14) |
31
(5) |
|
|
|
From: Jae-Joon L. <lee...@gm...> - 2009-12-28 19:44:18
|
On Mon, Dec 28, 2009 at 12:39 AM, Eric Firing <ef...@ha...> wrote:
> So, which way is better? I assume the change is an improvement, because
> the behavior with a list should be the same as with an ndarray.
>
I agree with you.
>
> We could split the recaching up into parts that can be done independently on
> x and y, and the part that has to be done when x and y are both set; this
> would permit the separate x and y parts to be done by set_xdata and
> set_ydata, which would freeze the data at that point, so that later changes
> to the original arrays' contents would not affect the plot. (This would
> also require forcing a copy instead of using asarray; this has a performance
> penalty, but perhaps a negligible one.)
This is similar to what I meant with option 1 in my previous post.
>
> Is it really worth fiddling with this, though? Unless there is a compelling
> reason to change it, I am inclined to leave the present behavior alone until
> the larger design is overhauled, so that unit-handling--which is the cause
> of most of the fuss--is clearly and uniformly confined to a single layer of
> the mpl stack.
>
I don't think I can make any compelling case here (I think this is
more like a design choice and not something that need to be fixed).
And I'm completely fine with leaving it as is.
Anyhow, how about adding some words about this behavior in set_data.
def set_data(self, *args):
"""
Set the x and y data.
ACCEPTS: 2D array (rows are x, y) or two 1D arrays
Note that a Line2D instatnce keeps a reference to the
input. If the input is mutable (.e.g, list, numpy array) and
its content changes after the set_data call, the plot may
reflect the changes. A following meth:`recache` call will
prevent it.
"""
Anyhow, the current code looks much cleaner than before,
Thanks.
-JJ
> Eric
>
|
|
From: TheLonelyStar <na...@lo...> - 2009-12-28 15:24:43
|
Hi, I have a Qt application, where I want to display a matplotlib figure which is updated from time to time (not mebeded, in its own window). Now, I do: import pylab pylab.ion() pylab.figure() within a function of the Qt application. And then I get a segfault. What is the proper way to do this? I use matplotlib 0.99.1.1 on gentoo linux. Thanks! Nathan -- View this message in context: http://old.nabble.com/matplotlib-figure-within-Qt-Application--%3E-segfault-tp26944171p26944171.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Eric F. <ef...@ha...> - 2009-12-28 05:39:59
|
Jae-Joon Lee wrote: > On Sun, Dec 27, 2009 at 7:31 PM, Eric Firing <ef...@ha...> wrote: >> I don't understand what your script, below, is intended to do or show. I >> haven't run it with mpl prior to my change. With the change, it simply >> draws a single line, or at least that is all I see on the plot. > > Before your change, it draws two different lines. So, which way is better? I assume the change is an improvement, because the behavior with a list should be the same as with an ndarray. > > Anyhow, another example, > > import matplotlib.pyplot as plt > > ax = plt.subplot(111) > a = [0, 1] > l1, = ax.plot(a) > l1.set_ydata(a) > a[1] = 0.5 > > plt.show() > > The above code draws a line from (0,0) to (1, 0.5), not (0,0) to > (1,1). And my question is whether we want this behavior. I don't think it matters much. The present behavior is not unreasonable. > > I think the issue is more subtle. If the recaching is done somehow > before the mutable data changes, the change has no effect. On the > other hand, if the recaching is done after the change (as in the above > example), the change is effective. We could split the recaching up into parts that can be done independently on x and y, and the part that has to be done when x and y are both set; this would permit the separate x and y parts to be done by set_xdata and set_ydata, which would freeze the data at that point, so that later changes to the original arrays' contents would not affect the plot. (This would also require forcing a copy instead of using asarray; this has a performance penalty, but perhaps a negligible one.) Is it really worth fiddling with this, though? Unless there is a compelling reason to change it, I am inclined to leave the present behavior alone until the larger design is overhauled, so that unit-handling--which is the cause of most of the fuss--is clearly and uniformly confined to a single layer of the mpl stack. Eric > > Regards, > > -JJ |
|
From: Jae-Joon L. <lee...@gm...> - 2009-12-28 03:33:09
|
On Sun, Dec 27, 2009 at 7:31 PM, Eric Firing <ef...@ha...> wrote: > I don't understand what your script, below, is intended to do or show. I > haven't run it with mpl prior to my change. With the change, it simply > draws a single line, or at least that is all I see on the plot. Before your change, it draws two different lines. Anyhow, another example, import matplotlib.pyplot as plt ax = plt.subplot(111) a = [0, 1] l1, = ax.plot(a) l1.set_ydata(a) a[1] = 0.5 plt.show() The above code draws a line from (0,0) to (1, 0.5), not (0,0) to (1,1). And my question is whether we want this behavior. I think the issue is more subtle. If the recaching is done somehow before the mutable data changes, the change has no effect. On the other hand, if the recaching is done after the change (as in the above example), the change is effective. Regards, -JJ |
|
From: Dr. P. M. F. <pfe...@ve...> - 2009-12-28 03:02:25
|
When I try to save a figure to a file using `savefig`, text in the figure (x-axis label, y-axis label, etc.) is not saved. Have other people encountered this problem? I'm using the Enthought Python Distribution 5.1.1 on a 32-bit Windows XP machine. -- View this message in context: http://old.nabble.com/savefig-does-not-save-text-tp26939342p26939342.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
|
From: Eric F. <ef...@ha...> - 2009-12-28 02:49:04
|
Eric Firing wrote: >> I went ahead and committed (svn rev 8054) changes that I think address >> the problem, and that should slightly improve speed as well in some >> cases, without slowing anything down in other reasonable cases--unless >> there are subtleties I am missing. Or maybe I am missing something >> blatant. In any case, if I have fouled it up, I trust it will soon be >> evident and the commit can be reverted or fixed. > > > Sure enough, the buildbot came up with a problem: it looks like there is > a test where my change is causing a line to disappear. I will look into it. > Fixed in 8055. Eric |
|
From: Eric F. <ef...@ha...> - 2009-12-28 00:46:58
|
> > I went ahead and committed (svn rev 8054) changes that I think address > the problem, and that should slightly improve speed as well in some > cases, without slowing anything down in other reasonable cases--unless > there are subtleties I am missing. Or maybe I am missing something > blatant. In any case, if I have fouled it up, I trust it will soon be > evident and the commit can be reverted or fixed. Sure enough, the buildbot came up with a problem: it looks like there is a test where my change is causing a line to disappear. I will look into it. Eric |
|
From: Eric F. <ef...@ha...> - 2009-12-28 00:38:53
|
Till Stensitzki wrote: > Hello, > i am using a Matplotlib figure as widget, in a PyQt4 programm. > Everything works, except "set_autoscale_on(False)". > Everytime i call a figure axes to plot something, it forgets its > autoscale status. Here some code, with axs a subplot of a figure: > > | print axs.get_autoscale_on() > print axs.get_autoscaley_on() > print axs.get_autoscalex_on() > axs.plot(range(100) > print axs.get_autoscale_on() > print axs.get_autoscaley_on() > print axs.get_autoscalex_on() > | > > returns > > |False > False > False > True > True > True > | > > any help? I can't reproduce it with svn, doing simple command-line plotting with ipython. Do you see this problem if you make a minimal plotting script, or only when you embed your widget? Eric |
|
From: Eric F. <ef...@ha...> - 2009-12-28 00:34:45
|
Jae-Joon Lee wrote: > On Sun, Dec 27, 2009 at 2:37 PM, Eric Firing <ef...@ha...> wrote: >> What are the circumstances under which one would call set_data() and not >> want or need an update? > > If you ask me, I'm +1 to update the plot always. But, apparently, the > original author of this code wanted to do some checks to avoid > unnecessary recaching. So, I'm not sure which is better. > > On the other hand, I think there is a general issue of whether the > current behavior of the cache is broken or not. In the code below, > the function test_cache() gives different results depending on the > input is a list or a numpy array. And, to me, this is something that > needs to be fixed despite it may add a little bit of complication into > the code. > > I did not want to step into this issue as I didn't write the code, but > there has been no responses from other developers while this issue (I > mean, the original issue of set_data not updating the plot) has been > raised a few times in the mailing list. I'm glad you called attention to it; I agree that it needed to be addressed. > > So, if Eric and others have any other thoughts, please speak. I went ahead and committed (svn rev 8054) changes that I think address the problem, and that should slightly improve speed as well in some cases, without slowing anything down in other reasonable cases--unless there are subtleties I am missing. Or maybe I am missing something blatant. In any case, if I have fouled it up, I trust it will soon be evident and the commit can be reverted or fixed. I don't understand what your script, below, is intended to do or show. I haven't run it with mpl prior to my change. With the change, it simply draws a single line, or at least that is all I see on the plot. Eric > Regards, > > -JJ > > > from matplotlib.pyplot import subplot, show > import numpy as np > import matplotlib.lines as mlines > > def test_cache(ax, yy): > l = mlines.Line2D([0, 1], yy) > yy[1]=0.7 > ax.add_line(l) > > ax = subplot(111) > a1 = [0, 1] > test_cache(ax, a1) > a2 = np.array([0, 1], dtype="d") > test_cache(ax, a2) > > show() |