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
(8) |
2
(2) |
3
(8) |
4
(19) |
5
(19) |
6
(25) |
7
(8) |
8
(1) |
9
|
10
(15) |
11
(22) |
12
(8) |
13
(4) |
14
(1) |
15
|
16
(1) |
17
(20) |
18
(17) |
19
(13) |
20
(17) |
21
(7) |
22
(5) |
23
(6) |
24
(14) |
25
(14) |
26
(18) |
27
(21) |
28
(5) |
29
(9) |
30
(6) |
|
|
|
|
|
|
From: Michael V. De P. <mde...@ma...> - 2006-04-30 21:07:40
|
On Sun, Apr 30, 2006 at 08:48:06AM -1000, Eric Firing wrote: > It might not be complicated, but forget about using imshow--it is for > image data, which are inherently evenly spaced. Pcolor and pcolormesh > don't have this limitation. Note that Zij will give the color of the > box with diagonal corners (Xij, Yij) and (Xi+1,j+1, Yi+1,j+1), so if Z > has the same dimensions as X and Y, the last row and column will not be > shown. If your input data are intended to give the (x,y) positions of > the centers of regions rather than the corners, then you will need to do > some sort of regridding of Z, or shifting of your X and Y points, in > order to get everything exactly right with pcolor and pcolormesh. > > The attached script and sample data file show how you can put the data > from your ascii file into X, Y, and Z arrays, and plot them using pcolor > or pcolormesh. This is for the simple case in which treating x and y as > corners is good enough. Note that the grid does not have to form > rectangular cells; they can be quadrilaterals. I illustrated this in > the sample file by shifting one point. > > Eric > > > > 1.0 1.0 1.1 > 1.0 1.5 1.2 > 1.0 2.5 1.1 > 1.0 4.0 1.0 > 1.0 4.5 1.0 > 2.0 1.0 1.2 > 2.0 1.5 1.3 > 2.5 2.9 1.4 > 2.0 4.0 1.1 > 2.0 4.5 1.1 > 3.0 1.0 1.0 > 3.0 1.5 1.3 > 3.0 2.5 1.5 > 3.0 4.0 1.2 > 3.0 4.5 1.2 > 4.0 1.0 1.0 > 4.0 1.5 1.3 > 4.0 2.5 1.5 > 4.0 4.0 1.2 > 4.0 4.5 1.2 > #!/usr/bin/env python > > from pylab import subplot, show > from pylab import nx as N > > fname = 'xyz.asc' > nx, ny = (4,5) > > lines = open(fname).readlines() > a_list = [[float(field) for field in line.split()] for line in lines] > a = N.array(a_list) > > X = N.reshape(a[:,0], (nx, ny)) > Y = N.reshape(a[:,1], (nx, ny)) > Z = N.reshape(a[:,2], (nx, ny)) > > ax = subplot(1,2,1) > ax.pcolor(X,Y,Z, shading='flat') > > ax = subplot(1,2,2) > ax.pcolormesh(X,Y,Z, shading='flat') > > show() Unfortunately, I couldn't even get this example to work. It was some sort of error related to pcolor not being a method of subplot, or something like that (sorry, I don't have the exact error message with me right now). Essentially, it seems to me that the above example *would* in principle work, though it's still going to take me a while to get things working. I have a thesis to turn in on Friday, or else I would keep playing with it until I got it to work. As it is, I'm going to have to do without it (luckily, I can use the program that's exporting the data to make my plots, I just think they're ugly). Perhaps in the next few weeks I'll play with it some more and write up the results if I get it working well. Thanks for all the responses, Mike |
From: Eric F. <ef...@ha...> - 2006-04-30 18:48:22
|
Michael V. De Palatis wrote: > On Sat, Apr 29, 2006 at 08:41:48AM -1000, Eric Firing wrote: > >>How easy it is to do this depends on your ascii file format, and how the >>data are organized in it. Are the points in order? e.g. >> >>x0, y0, z00 >>x0, y1, z01 >>x0, y2, z02 >>x1, y0, z10 >>x1, y1, z11 >>x1, y2, z12 > > > This is precisely the ordering. > > >>Are the values space-delimited, or comma-delimited, or in some other >>format? > > > The values are space-delimited. The way I am reading them in is with > readline, then splitting the resulting string and appending to a list > of x, y, and z values. > > >>Is the grid uniform in the sense that all the x-intervals are the same >>and all the y-intervals are the same? > > > Unfortunately, the grid is not uniform. From the responses I have been > getting thus far, it's looking like this is going to be far more > complicated than I had hoped... It might not be complicated, but forget about using imshow--it is for image data, which are inherently evenly spaced. Pcolor and pcolormesh don't have this limitation. Note that Zij will give the color of the box with diagonal corners (Xij, Yij) and (Xi+1,j+1, Yi+1,j+1), so if Z has the same dimensions as X and Y, the last row and column will not be shown. If your input data are intended to give the (x,y) positions of the centers of regions rather than the corners, then you will need to do some sort of regridding of Z, or shifting of your X and Y points, in order to get everything exactly right with pcolor and pcolormesh. The attached script and sample data file show how you can put the data from your ascii file into X, Y, and Z arrays, and plot them using pcolor or pcolormesh. This is for the simple case in which treating x and y as corners is good enough. Note that the grid does not have to form rectangular cells; they can be quadrilaterals. I illustrated this in the sample file by shifting one point. Eric |
From: John H. <jdh...@ac...> - 2006-04-30 18:10:49
|
>>>>> "giandomenico" == giandomenico sica <gia...@po...> writes: giandomenico> Thanks for the message. I know networkx having used giandomenico> it in the early development of the project. It's a giandomenico> good package but is missing of some basic functions giandomenico> that I need to use, related to the analysis of giandomenico> graphs. Since my programming skills are quite weak, giandomenico> I'm not able to supply this lack through usual giandomenico> python programming code. Best, Nico I've CCd Aric Hagberg, one of the networkx developers. If you describe the missing features, he might be able to help add them to networkx. I believe he has also applied network theory to healthcare, though in the epidemiology domain. JDH Original post below From: gia...@po... Subject: [Matplotlib-users] CFC: An Atlas of Linguistic Graphs To: mat...@li... Date: Sun, 30 Apr 2006 18:44:13 +0200 X-Spambayes-Classification: ham; 0.00 I'm a researcher in graph theory and networks. I'm working about a project connected with the theory and the applications of linguistic graphs, which are mathematical structures useful to represent languages and consequently to manage the organization of data in different kinds of scientific fields. At the present I'm developing an application of these graphs to medicine, specifically related to the ontology of clinical diseases. And now to the purpose of this message, which is to ask if someone in this list can be interested in collaborating with me about the construction of an open source software useful to represent, to analyse and to compare linguistic graphs. I've developed the project but don't have the necessary programming skills to proceed with the creation of the code. The software would be distributed in public domain and the collaboration would be free and voluntary. I really hope that someone can be interested. In the case, please feel free to contact me by using my private e-mail address. I'll be pleased to send the complete documentation related to the project. Really many thanks. All the best, Giandomenico Sica Faculty of Philosophy Leiden University gia...@po... Publications http://www.polimetrica.com/polimetrica/view/people/Sica,_Giandomenico.html 1st World Congress and School on Universal Logic http://www.uni-log.org ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: <gia...@po...> - 2006-04-30 17:23:41
|
Thanks for the message. I know networkx having used it in the early development of the project. It's a good package but is missing of some basic functions that I need to use, related to the analysis of graphs. Since my programming skills are quite weak, I'm not able to supply this lack through usual python programming code. Best, Nico Quoting John Hunter <jdh...@ac...>: >>>>>> "giandomenico" == giandomenico sica >>>>>> <gia...@po...> writes: > giandomenico> graphs. I've developed the project but don't have > giandomenico> the necessary programming skills to proceed with the > giandomenico> creation of the code. The software would be > giandomenico> distributed in public domain and the collaboration > > A useful starting point would be networkx, a python graph/network > package. It also can use matplotlib to display them :-) > > http://networkx.sf.net > > JDH > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: John H. <jdh...@ac...> - 2006-04-30 17:07:38
|
>>>>> "giandomenico" == giandomenico sica <gia...@po...> writes: giandomenico> graphs. I've developed the project but don't have giandomenico> the necessary programming skills to proceed with the giandomenico> creation of the code. The software would be giandomenico> distributed in public domain and the collaboration A useful starting point would be networkx, a python graph/network package. It also can use matplotlib to display them :-) http://networkx.sf.net JDH |
From: <gia...@po...> - 2006-04-30 16:45:47
|
I'm a researcher in graph theory and networks. I'm working about a project connected with the theory and the applications of linguistic graphs, which are mathematical structures useful to represent languages and consequently to manage the organization of data in different kinds of scientific fields. At the present I'm developing an application of these graphs to medicine, specifically related to the ontology of clinical diseases. And now to the purpose of this message, which is to ask if someone in this list can be interested in collaborating with me about the construction of an open source software useful to represent, to analyse and to compare linguistic graphs. I've developed the project but don't have the necessary programming skills to proceed with the creation of the code. The software would be distributed in public domain and the collaboration would be free and voluntary. I really hope that someone can be interested. In the case, please feel free to contact me by using my private e-mail address. I'll be pleased to send the complete documentation related to the project. Really many thanks. All the best, Giandomenico Sica Faculty of Philosophy Leiden University gia...@po... Publications http://www.polimetrica.com/polimetrica/view/people/Sica,_Giandomenico.html 1st World Congress and School on Universal Logic http://www.uni-log.org |
From: Robert K. <rob...@gm...> - 2006-04-29 19:33:49
|
Michael V. De Palatis wrote: > Unfortunately, the grid is not uniform. From the responses I have been > getting thus far, it's looking like this is going to be far more > complicated than I had hoped... Look in examples/quadmesh_demo.py . Or pretend like it's not a grid at all and just use the information Andrew gave you the first time: http://www.scipy.org/Wiki/Cookbook/Matplotlib/Gridding_irregularly_spaced_data -- Robert Kern rob...@gm... "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: Michael V. De P. <mde...@ma...> - 2006-04-29 18:57:52
|
On Sat, Apr 29, 2006 at 08:41:48AM -1000, Eric Firing wrote: > How easy it is to do this depends on your ascii file format, and how the > data are organized in it. Are the points in order? e.g. > > x0, y0, z00 > x0, y1, z01 > x0, y2, z02 > x1, y0, z10 > x1, y1, z11 > x1, y2, z12 This is precisely the ordering. > Are the values space-delimited, or comma-delimited, or in some other > format? The values are space-delimited. The way I am reading them in is with readline, then splitting the resulting string and appending to a list of x, y, and z values. > Is the grid uniform in the sense that all the x-intervals are the same > and all the y-intervals are the same? Unfortunately, the grid is not uniform. From the responses I have been getting thus far, it's looking like this is going to be far more complicated than I had hoped... Would it in principle be difficult to write a function similar to imshow that can take 3 arrays and plot z (in color, say) as a function of x and y? To me, it would seem that it would essentially be the same as the plot function, except that it takes an extra array... Mike |
From: Eric F. <ef...@ha...> - 2006-04-29 18:42:31
|
Michael, How easy it is to do this depends on your ascii file format, and how the data are organized in it. Are the points in order? e.g. x0, y0, z00 x0, y1, z01 x0, y2, z02 x1, y0, z10 x1, y1, z11 x1, y2, z12 Are the values space-delimited, or comma-delimited, or in some other format? Is the grid uniform in the sense that all the x-intervals are the same and all the y-intervals are the same? Eric Michael V. De Palatis wrote: > Hi all, > > I am trying to use imshow to plot an image from some data. Basically, > I have a list of x, y, and z values, and I want to plot z as a > function of x and y. > > Unfortunately, most of the examples do this as far as I can > tell. Instead, they (at most) take a list of x and y then make a > *function* z out of that, and plot z, rather than having actual data > from a file for all three. > > The only one that does seem to do something like this seems to be > dependent on a binary file, which unfortunately is not the format I > have the data in. Sure, I could convert the very large files I already > have into binary, but in the long run, I think it would be better for > me to be able to simply use the ASCII data that I am provided with > since that can't be changed. > > Is there an easy way to do this, or will I just have to convert the > files? > > Thanks, > > Mike > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: Robert K. <rob...@gm...> - 2006-04-29 18:12:32
|
Michael V. De Palatis wrote: > On Sat, Apr 29, 2006 at 09:59:14AM -0700, Andrew Straw wrote: > >>If you data is regularly spaced, you can just use imshow or pcolor. If >>it's not regularaly spaced, see >>http://www.scipy.org/Wiki/Cookbook/Matplotlib/Gridding_irregularly_spaced_data > > Perhaps I'm missing something or did not explain my problem > properly. I am well aware that what I want to use is imshow (or, > apparently, pcolor). However, my problem is that I have all THREE > values in data form, not just x and y (that is, I do not have a > function to get z(x, y), but rather I have data points for z). > > I do not see a straightforward way to use imshow or pcolor to be able > to plot this data as they want a matrix that I have no idea how to > generate. Okay, so your x,y data is regularly spaced. What you have to do is create an array of the appropriate size to put all of your z values in. Then go through your list of points and populate the z array in the appropriate places. You will have to convert your x,y coordinates into i,j indices. If you know the spacing, this should not be difficult. Alternatively, you can sort the (x,y,z) tuples, turn it into an array, extract the z column, reshape the z column into the appropriate matrix, and transpose it (presuming you want y to be vertical): In [18]: xyz = [(1, 0, 10), (0, 1, 20), (0, 0, 30), (1, 1, 40)] In [19]: xyz.sort() In [20]: xyz Out[20]: [(0, 0, 30), (0, 1, 20), (1, 0, 10), (1, 1, 40)] In [21]: xyza = array(xyz) In [22]: z = xyza[:,-1] In [23]: z Out[23]: array([30, 20, 10, 40]) In [24]: z = transpose(reshape(z, (2,2))) In [25]: z Out[25]: array([[30, 10], [20, 40]]) -- Robert Kern rob...@gm... "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
From: Michael V. De P. <mde...@ma...> - 2006-04-29 17:53:05
|
On Sat, Apr 29, 2006 at 09:59:14AM -0700, Andrew Straw wrote: > If you data is regularly spaced, you can just use imshow or pcolor. If > it's not regularaly spaced, see > http://www.scipy.org/Wiki/Cookbook/Matplotlib/Gridding_irregularly_spaced_data Perhaps I'm missing something or did not explain my problem properly. I am well aware that what I want to use is imshow (or, apparently, pcolor). However, my problem is that I have all THREE values in data form, not just x and y (that is, I do not have a function to get z(x, y), but rather I have data points for z). I do not see a straightforward way to use imshow or pcolor to be able to plot this data as they want a matrix that I have no idea how to generate. Thanks, Mike > > Michael V. De Palatis wrote: > > >Hi all, > > > >I am trying to use imshow to plot an image from some data. Basically, > >I have a list of x, y, and z values, and I want to plot z as a > >function of x and y. > > > >Unfortunately, most of the examples do this as far as I can > >tell. Instead, they (at most) take a list of x and y then make a > >*function* z out of that, and plot z, rather than having actual data > >from a file for all three. > > > >The only one that does seem to do something like this seems to be > >dependent on a binary file, which unfortunately is not the format I > >have the data in. Sure, I could convert the very large files I already > >have into binary, but in the long run, I think it would be better for > >me to be able to simply use the ASCII data that I am provided with > >since that can't be changed. > > > >Is there an easy way to do this, or will I just have to convert the > >files? > > > >Thanks, > > > >Mike > > > > > >------------------------------------------------------- > >Using Tomcat but need to do more? Need to support web services, security? > >Get stuff done quickly with pre-integrated technology to make your job easier > >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >_______________________________________________ > >Matplotlib-users mailing list > >Mat...@li... > >https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > > > |
From: Andrew S. <str...@as...> - 2006-04-29 16:59:17
|
If you data is regularly spaced, you can just use imshow or pcolor. If it's not regularaly spaced, see http://www.scipy.org/Wiki/Cookbook/Matplotlib/Gridding_irregularly_spaced_data Michael V. De Palatis wrote: >Hi all, > >I am trying to use imshow to plot an image from some data. Basically, >I have a list of x, y, and z values, and I want to plot z as a >function of x and y. > >Unfortunately, most of the examples do this as far as I can >tell. Instead, they (at most) take a list of x and y then make a >*function* z out of that, and plot z, rather than having actual data >from a file for all three. > >The only one that does seem to do something like this seems to be >dependent on a binary file, which unfortunately is not the format I >have the data in. Sure, I could convert the very large files I already >have into binary, but in the long run, I think it would be better for >me to be able to simply use the ASCII data that I am provided with >since that can't be changed. > >Is there an easy way to do this, or will I just have to convert the >files? > >Thanks, > >Mike > > >------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Matplotlib-users mailing list >Mat...@li... >https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |
From: Michael V. De P. <mde...@ma...> - 2006-04-29 15:53:12
|
Hi all, I am trying to use imshow to plot an image from some data. Basically, I have a list of x, y, and z values, and I want to plot z as a function of x and y. Unfortunately, most of the examples do this as far as I can tell. Instead, they (at most) take a list of x and y then make a *function* z out of that, and plot z, rather than having actual data from a file for all three. The only one that does seem to do something like this seems to be dependent on a binary file, which unfortunately is not the format I have the data in. Sure, I could convert the very large files I already have into binary, but in the long run, I think it would be better for me to be able to simply use the ASCII data that I am provided with since that can't be changed. Is there an easy way to do this, or will I just have to convert the files? Thanks, Mike |
From: John H. <jdh...@ac...> - 2006-04-29 15:17:33
|
>>>>> "Ryan" == Ryan Krauss <rya...@gm...> writes: Ryan> I'm a dork. help xticks told me the solution (imagine that) Ryan> - RTFdocstring. Ryan> make sure to include xticks([1.75,2.0],['1.75','2.0']) At first this example confused me, because normally xticks([1.75,2.0]) w/o the labels will do the right thing, ie put labels on 1.75 and 2.0. The reason it doesn't in your example is that you are using a semilogx plot, and thus the default formatter is ticker.LogFormatterMathtext , which only places labels on the decades. This may be considered a bug, wart, or minor annoyance. As you note, there is an easy workaround. Alternatively, it might be better to change the formatter when there is a call to set_ticks just as we currently change the locator def set_ticks(self, ticks): """ Set the locations of the tick marks from sequence ticks ACCEPTS: sequence of floats """ self.set_major_locator( FixedLocator(ticks) ) self.get_view_interval().update(ticks,0) return self.get_major_ticks() JDH |
From: Ryan K. <rya...@gm...> - 2006-04-28 22:35:25
|
I'm a dork. help xticks told me the solution (imagine that) - RTFdocstring. make sure to include xticks([1.75,2.0],['1.75','2.0']) On 4/28/06, Ryan Krauss <rya...@gm...> wrote: > I have a semilogx plot that I have zoomed into, so that there are no > xticks visible. I can't seem to set the xticks to something that > isn't an integer power of 10. I would actually prefer to set it to a > number that isn't displayed as 10^xxx, but I don't know how. > > For example: > > y=3Dsin(2*pi*f) > semilogx(f,y) > xlim([1.5,2.5]) > xticks([1.75,2.0]) > show() > > has no xticks. > > How do I fix this? > > Thanks, > > Ryan > |
From: Ryan K. <rya...@gm...> - 2006-04-28 22:32:54
|
I have a semilogx plot that I have zoomed into, so that there are no xticks visible. I can't seem to set the xticks to something that isn't an integer power of 10. I would actually prefer to set it to a number that isn't displayed as 10^xxx, but I don't know how. For example: y=3Dsin(2*pi*f) semilogx(f,y) xlim([1.5,2.5]) xticks([1.75,2.0]) show() has no xticks. How do I fix this? Thanks, Ryan |
From: Christopher B. <Chr...@no...> - 2006-04-28 18:54:05
|
John Hunter wrote: > There may be an intelligent way to set the default dir globally for file > dialogs in wx, but I don't know what it is. So I'll suggest a workaround. I don't think there isn't. However, it probably starts out in the current working directory, which you can change with: import os os.chdir("ThePathYouWant") John's solution is better if this is more than a quickie app, however. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
From: John H. <jdh...@ac...> - 2006-04-28 13:11:44
|
>>>>> "Zunbeltz" == Zunbeltz Izaola <zun...@wm...> writes: Zunbeltz> Hi, I am embeding a matplotlib FigureCanvasWxAgg in a Zunbeltz> wxPython program. Zunbeltz> When i press the save botton the directory is that of Zunbeltz> the executable of the program. I want to change this to Zunbeltz> a certain directory. How can i do that? There may be an intelligent way to set the default dir globally for file dialogs in wx, but I don't know what it is. So I'll suggest a workaround. You can create a custom toolbar and override save from matplotlib.backends.backend_wx import NavigationToolbar2Wx class MyToolbar(class NavigationToolbar2Wx): def save(self, evt): # Fetch the required filename and file type. filetypes = self.canvas._get_imagesave_wildcards() # insert your default dir here dlg =wx.FileDialog(self._parent, "Save to file", "", "", filetypes, wx.SAVE|wx.OVERWRITE_PROMPT|wx.CHANGE_DIR) if dlg.ShowModal() == wx.ID_OK: dirname = dlg.GetDirectory() filename = dlg.GetFilename() DEBUG_MSG('Save file dir:%s name:%s' % (dirname, filename), 3, self) self.canvas.print_figure(os.path.join(dirname, filename)) and then use this toolbar rather than the default one. See examples/embedding_in_wx4.py for an example of how to use a custom toolbar in a wx app. JDH |
From: Zunbeltz I. <zun...@wm...> - 2006-04-28 10:47:35
|
Hi, I am embeding a matplotlib FigureCanvasWxAgg in a wxPython program. When i press the save botton the directory is that of the executable of the program. I want to change this to a certain directory. How can i do that? Thanks in advance, Zunbeltz |
From: John H. <jdh...@ac...> - 2006-04-27 21:20:31
|
>>>>> "David" == David Huard <dav...@gm...> writes: David> Back with .86 I used to do lots of ax = axes() ax.imshow(M) David> but in .87 this doesn't seem to work. It doesn't complain David> but nothing happens. Simply calling imshow(M) does the job David> however, but I thought the method call was nicer. Am I David> missing something ? works in svn... JDH |
From: David H. <dav...@gm...> - 2006-04-27 21:11:39
|
Back with .86 I used to do lots of ax =3D axes() ax.imshow(M) but in .87 this doesn't seem to work. It doesn't complain but nothing happens. Simply calling imshow(M) does the job however, but I thought the method call was nicer. Am I missing something ? Thanks, David |
From: Andy L. <les...@ya...> - 2006-04-27 21:02:32
|
Hi, I need to draw in my diagrams the text which will scale along with the rest of the chart when zooming in/out. How can I do that? Thx, A. |
From: Jouni K S. <jk...@ik...> - 2006-04-27 19:10:44
|
John Hunter <jdh...@ac...> writes: > Is anyone aware of a solution which would allow the > mail-to-news-gateway folks to still post while blocking the > unsubscribed spammers? Presumably not.... It is possible to subscribe to the list and then set a Mailman option to disable mail sending, so you have subscriber status without actually getting any email. I just did that, so if this message reaches the list, using Gmane is still possible for subscribers. -- Jouni |
From: Glen W. M. <Gle...@sw...> - 2006-04-27 16:59:30
|
On Wed, Apr 26, 2006 at 01:22:17PM -1000, Eric Firing wrote: > class myLocator(MaxNLocator): > def nonsingular(self, vmin, vmax, expander=0.001, tiny=1e-12): > return Locator.nonsingular(self, vmin, vmax, > expander=expander, tiny=tiny) > and then > > ax.xaxis.set_major_locator(myLocator()) This worked out of the box. Thanks! > As an alternative approach, can you simply use as your x-coordinate time > deltas from a suitable base time, so that vmin and vmax would not be so > huge compared to their difference? My assumption while working with the > ticker.py code was that this would be the logical solution to this sort > of problem. Well, the complication is that I not only need to be able to zoom in for ~10sec segments, but also to zoom out on long segments. So, yes, I could do a modulus-year operation, but that would complicate labeling of the ticks and also in getting data points back from click events. Doable, just a little more complicated. > Longer term, it would be easy to modify the Locator classes so that the > default values of tiny and expander would appear as a kwargs in > __init__. Whether this would be a valuable change or mere clutter, I > don't know; I will listen for more advice. If it's that simple, then I would vote for it. Surely someone will find it useful someday. However, the work-around I've implemented isn't bad. Thank you for your help. Glen Mabey |
From: Achim G. <Ach...@ph...> - 2006-04-27 15:12:33
|
Hello! I wrote an application with matplotlib, which often (3 times a second or more) updates the graphics window. When I switch off the update, the aplication is quite stable, but with updates Xlib prints the following lines and the application freezes. Xlib: unexpected async reply (sequence 0x1318f)! Xlib: sequence lost (0x20000 > 0x1318f) in reply type 0x0! I do not know how to debug/backtrace this message. Does anyone have a clue? The application is using matplotlib with pygtk and numarray, running under Debian testing. python-matplotlib-data 0.86.2-4 python-matplotlib-doc 0.86.2-4 python2.4-matplotlib 0.86.2-4 python2.4-gtk2 2.8.2-3 libcairo2 1.0.4-1+b1 libcairo2-dev 1.0.4-1+b1 python2.4-cairo 1.0.2-1 It is not clear to me, if this error is caused by matplotlib, but it seems to be "correlated" to its use. Any help is welcome. Thanks, achim |