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
(38) |
2
(31) |
3
(9) |
|
4
(13) |
5
(24) |
6
(11) |
7
(8) |
8
(14) |
9
(7) |
10
(4) |
|
11
(7) |
12
(11) |
13
(16) |
14
(19) |
15
(11) |
16
(9) |
17
(3) |
|
18
(4) |
19
(47) |
20
(28) |
21
(9) |
22
(9) |
23
(11) |
24
|
|
25
|
26
(12) |
27
(22) |
28
(20) |
29
(16) |
30
(19) |
|
|
From: <tom...@gm...> - 2010-04-21 19:14:43
|
Thank you very much Steve! This helped a lot, it worked in the ipython as well, there is no difference, only that the ipython is interactive and has more supplementary features. :)
Thanks,
Tomislav
----- Original Message -----
From: Stephen George
Sent: 04/21/10 03:33 AM
To: mat...@li...
Subject: Re: [Matplotlib-users] plotting in a loop
Hi,
Sorry haven't used ipython, so not sure if there is another/better ipython way.
Attached is how I solved it in normal python.
I added a "next line" button to the graph, and set the ydata for the line each time the button is pushed.
There is a couple of set_ylim lines commented out, depending on the nature of your data, it might be appropriate to uncomment one of those, however the set_aspect line may might mean the graph is very tall and skinny with the supplied data.
Hope that gives you some ideas for your own code.
Steve
On 21/04/2010 3:35 AM, tom...@gm... wrote: Hello everyone,
if I read a column file like this (simplified to integers):
0 1 2 3
1 2 3 4
2 3 4 5
3 4 5 6
with: "data = np.loadtxt("fileName")", why can't I use a for loop inside ipython (started with "-pylab" option) to plot each of the Line2D objects and then draw them on the plot? I am using matplotlib to debug a computational geometry code and I would like these lines to plot paused by the user input so that I can identify when (where) exactly the wrong calculations happen:
import numpy as np
import matplotlib.pyplot as plt
fig1 = plt.figure()
ax1 = fig1.add_subplot(111)
ax1.set_aspect("equal")
for line in data:
raw_input("press enter to plot the line")
ax1.plot([line[0],line[2]],[line[1],line[3]],'b')
plt.draw()
This way I could see with pressing e.g. the return key when my calculations go wrong.... any advice?
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Mat...@li...://lists.sourceforge.net/lists/listinfo/matplotlib-users https://lists.sourceforge.net/lists/listinfo/matplotlib-users
|
|
From: Gökhan S. <gok...@gm...> - 2010-04-21 18:29:36
|
On Wed, Apr 21, 2010 at 12:06 PM, Gökhan Sever <gok...@gm...>wrote: > > > On Wed, Apr 21, 2010 at 4:39 AM, Matthias Michler <Mat...@gm... > > wrote: > >> I think it works like expected, i.e. it toggles the state of showing grid >> lines for minor and major ticks. >> The problem it the case were people set only major tick grid lines >> ax.grid(True, which='major') >> and than press the key 'g', because than they change between having major >> and >> minor tick grid lines and this is somehow a strange behavior, isn't it? >> Therefore I myself am not convinced of that solution. >> [...] >> > > Interesting that setting and using "g" doesn't toggle both minor and major > grids at the same time. It behaves erratically. > event.inaxes.grid(which='minormajor') > > I'm sorry, I don't get your point. If I ran your script I get a window >> without >> gridlines as expected. The result is independent of the call of >> ax.grid(False, which='majorminor'). >> By the way are you using matplotlib-svn? >> > > Yes I test this again and it doesn't work. That setting only disables major > grids. Grids are cleared in my second explicit call. This is rev 8226 using > WXAgg backend. > > >> >> Kind regards, >> Matthias >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > > -- > Gökhan > I removed mpl directory and re-checked out and re-installed it using rev 8260. Applied your patch with patch -p0 -i grid_for_major_minor_ticks.patch That simple example still doesn't work here (cannot get rid of major - minor grids at the same in a double log scaled plot). Could someone confirm this behaviour? Thanks. -- Gökhan |
|
From: Gökhan S. <gok...@gm...> - 2010-04-21 17:06:17
|
On Wed, Apr 21, 2010 at 4:39 AM, Matthias Michler <Mat...@gm...>wrote: > I think it works like expected, i.e. it toggles the state of showing grid > lines for minor and major ticks. > The problem it the case were people set only major tick grid lines > ax.grid(True, which='major') > and than press the key 'g', because than they change between having major > and > minor tick grid lines and this is somehow a strange behavior, isn't it? > Therefore I myself am not convinced of that solution. > [...] > Interesting that setting and using "g" doesn't toggle both minor and major grids at the same time. It behaves erratically. event.inaxes.grid(which='minormajor') I'm sorry, I don't get your point. If I ran your script I get a window > without > gridlines as expected. The result is independent of the call of > ax.grid(False, which='majorminor'). > By the way are you using matplotlib-svn? > Yes I test this again and it doesn't work. That setting only disables major grids. Grids are cleared in my second explicit call. This is rev 8226 using WXAgg backend. > > Kind regards, > Matthias > > > ------------------------------------------------------------------------------ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Gökhan |
|
From: Gökhan S. <gok...@gm...> - 2010-04-21 06:10:13
|
On Tue, Apr 20, 2010 at 11:11 AM, Gökhan Sever <gok...@gm...>wrote: > > > On Tue, Apr 20, 2010 at 2:42 AM, Matthias Michler <Mat...@gm... > > wrote: > >> Hi Gökhan, >> >> thanks for testing this small patch. Maybe one of the developers could >> submit >> it or should I place it on the patch-tracker? >> >> > Usually after some pinging someone picks up the code and commits in to the > svn. > > >> About the toggling of all grid-lines using >> event.inaxes.grid(which='majorminor') >> I not sure this is intended, because this means that you will allways >> toggling >> major and minor tick - grid lines using key 'g' instead of only toggling >> major tick grid lines. Maybe a developer or other users could comment on >> the >> preferred behavior. >> > > Just create a simple plot and log-log x,y-axes and try hitting "g". Both > minor and major gridlines must be visible to get a clear view. In some cases > grids clutter the figure instead of helping. > > In my previous post, the main point was change in > event.inaxes.grid(which='majorminor') doesn't really work as expected. Could > you at least check that behavior? > > > >> >> Kind regards, >> Matthias >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > > -- > Gökhan > Hi Matthias, I spotted another annoyance: Save the following lines in a file called test.py and run python test.py import matplotlib.pyplot as plt plt.plot(range(100)) plt.xscale('log') plt.yscale('log') ax = plt.gca() ax.grid(False, which='majorminor') plt.show() This doesn't work properly in the first call. If you call it from within Ipython -pylab using run test.py again no difference. Only when you call ax.grid(False, which='majorminor') grids disappear. -- Gökhan |
|
From: Michiel de H. <mjl...@ya...> - 2010-04-21 02:22:13
|
Well, the example with the comment "WARNING : illustrating how NOT to use show":
for i in range(10):
# make figure i
show()
works perfectly fine with the Mac OS X backend, and I doubt that there is some fundamental reason why this can work with the Mac OS X backend but not with other backends.
--Michiel
--- On Tue, 4/20/10, Alan G Isaac <ala...@gm...> wrote:
> From: Alan G Isaac <ala...@gm...>
> Subject: Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts
> To: mat...@li...
> Date: Tuesday, April 20, 2010, 9:51 PM
> http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show
>
> hth,
> Alan Isaac
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Alan G I. <ala...@gm...> - 2010-04-21 01:51:49
|
http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show hth, Alan Isaac |
|
From: Stephen G. <ste...@op...> - 2010-04-21 01:42:01
|
Hi,
Sorry haven't used ipython, so not sure if there is another/better
ipython way.
Attached is how I solved it in normal python.
I added a "next line" button to the graph, and set the ydata for the
line each time the button is pushed.
There is a couple of set_ylim lines commented out, depending on the
nature of your data, it might be appropriate to uncomment one of those,
however the set_aspect line may might mean the graph is very tall and
skinny with the supplied data.
Hope that gives you some ideas for your own code.
Steve
On 21/04/2010 3:35 AM, tom...@gm... wrote:
> Hello everyone,
>
> if I read a column file like this (simplified to integers):
>
> 0 1 2 3
> 1 2 3 4
> 2 3 4 5
> 3 4 5 6
>
> with: "data = np.loadtxt("fileName")", why can't I use a for loop
> inside ipython (started with "-pylab" option) to plot each of the
> Line2D objects and then draw them on the plot? I am using matplotlib
> to debug a computational geometry code and I would like these lines to
> plot paused by the user input so that I can identify when (where)
> exactly the wrong calculations happen:
>
>
> import numpy as np
>
> import matplotlib.pyplot as plt
>
> fig1 = plt.figure()
>
> ax1 = fig1.add_subplot(111)
>
> ax1.set_aspect("equal")
>
> for line in data:
>
> raw_input("press enter to plot the line")
>
> ax1.plot([line[0],line[2]],[line[1],line[3]],'b')
>
> plt.draw()
>
>
>
> This way I could see with pressing e.g. the return key when my
> calculations go wrong.... any advice?
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|
|
From: Michiel de H. <mjl...@ya...> - 2010-04-21 01:19:59
|
--- On Tue, 4/20/10, Ryan May <rm...@gm...> wrote:
> Antony Lee <ant...@en...> wrote:
> > That would be a solution, indeed. However, is there
> > really no way of coming back to a pre-plt.show() state
> > once all windows are closed? What kind of
> > irreversible things does plt.show() do?
>
> It starts the GUI toolkit event loop, which starts to make
> things messy if you try to call show() again. It often works,
> but calling show() more than once is most-definitely not
> supported.
>
But what exactly does show() do that prevents it from being called again? At least for the Mac OS X and the gtkcairo backends, calling show() multiple times doesn't seem to cause any problems. Can you give an example where calling show() multiple times breaks things? If there is such a case, it may reveal a lurking bug in show() itself.
--Michiel.
|