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}
(151) 
_{Aug}

_{Sep}

_{Oct}

_{Nov}

_{Dec}

S  M  T  W  T  F  S 



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





From: Goyo <goyodiaz@gm...>  20110224 23:02:15

2011/2/22 Benjamin Root <ben.root@...>: > > Admittedly, this isn't using matplotlib's hist() function because it only > allows for one color per dataset. However, you can use numpy's histogram > function to get the bins and counts yourself, and then use bar() to make the > bars. bar() will allow you to color the bars individually. Pylab hist() returns a list of patches so you can also change their properties. Goyo 
From: Goyo <goyodiaz@gm...>  20110224 22:49:12

2011/2/22 Daniel Mader <danielstefanmader@...>: > Hi, > > there has been a similar question recently but I couldn't figure out > if or how this is solved: > > I'd like to reduce the figure size so that I can add it to a LaTeX > document without scaling (PDF output with LaTeX font rendering). For > that, I need to adapt the font sizes, too. > > Unfortunately, the canvas is not properly scaled so that the axis > labels and the possibly the tick marks are cut off. > > Is this a bug, feature, design flaw? How can I properly work around > it, i.e. reduce the graph automatically for a given figsize/font size > combination so that everything fits on the figure? You'll have to understand how dimensions are calculated and then use stuff like Figure.subplots_adjust. http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure.subplots_adjust http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.SubplotParams http://matplotlib.sourceforge.net/faq/howto_faq.html#automaticallymakeroomforticklabels As a fast and dirty trick you can pass big numbers to subplots_adjust and then use bbox_inches='tight' in savefig. Goyo 
From: bhargav vaidya <coolastro@gm...>  20110224 18:07:17

> > > On Wed, Feb 23, 2011 at 2:09 PM, bhargav vaidya <coolastro@...> wrote: > Hello Matplotlib Users. > > I am trying to work my way out to interpolate a surface from polar coordinates (R,Theta,Z) to rectangular coordinates(X,Y,Z) > Basically I am looking for an equivalent for POLAR_SURFACE.pro routine in IDL using matplotlib/Scipy? > > http://idlastro.gsfc.nasa.gov/idl_html_help/POLAR_SURFACE.html > > Does anyone of you have done that before or could tell me what functions can I use to get that? > > Regards > Bhargav Vaidya > > > (Quick Note: technically, you have cylindrical coordinates because you have Z, not Phi) > > While I am sure there are some more optimal methods, the straightforward way is to do something like the following: > > import numpy as np > from scipy.interpolate import griddata > > orig_x = R*np.cos(Theta) > orig_y = R*np.sin(Theta) > orig_z = Z > > grid_x, grid_y, grid_z = np.mgrid[orig_x.min():orig_x.max():10j, > orig_y.min():orig_y.max():10j, > orig_z.min():orig_z.max():10j] > > new_vals = griddata((orig_x, orig_y, orig_z), orig_vals, (grid_x, grid_y, grid_z) > > > After running this, you should have new_vals which should have the same shape as grid_x. You can also specify the interpolation method used by griddata through the 'method' keyword argument. The '10j' in the np.mgrid[] call merely specifies the number of points you want in that axis and can be changed to any other integer you want (just keep the 'j' there to make it work the way we want). > > I hope that helps! > Ben Root > Hello Benjamin Thanks for the reply... I was a little vague in my first question before... Here is my specific problem I have a 3D matrix say of density (rho [ r, theta , phi] ) where r, theta ,phi have (64,32,32) elements theta and phi values are in radians. I have to interpolate rho(r, theta) at some phi to rho(x,z) and rho(r, phi) at some theta to rho(x,y) .... However I used the a different code then the one you mentioned .. I am using the scipy.ndimage.geometric_transform I am attaching the figure obtained using a code below THE PART OF THE CODE TO CONVERT THE POLAR TO CARTESIAN IS GIVEN BELOW I have the following problems : 1. I am not happy with the interpolation. This is partly because I am using pcolormesh for plotting data as imshow is not working for my irregularly spaced grid. I have also tried higher order for the geometric transform but the difference is not that appreciable. Can I improve the interpolation is some way? 2. In the right panels of the plot above, I dont get the radial and vertical coordinate as the right cartesian values.. I think this can be solved if I give the right x y and z values to pcolormesh ... but I am not sure how to get the right values for them so that they are consistent with the transform. import numpy as np import scipy as S import scipy.ndimage def get_polar_plot(self,var,**kwargs): def r2theta(outcoords, inputshape, origin): xindex, yindex = outcoords x0, y0 = origin x = xindex  x0 y = yindex  y0 r = np.sqrt(x**2 + y**2) theta = np.arctan2(np.piy, x) theta_index = np.round((theta+ np.pi) * inputshape[1] / (1.015*np.pi)) return (r,theta_index) def r2phi(outcoords, inputshape, origin): xindex, yindex = outcoords x0, y0 = origin x = xindex  x0 y = yindex  y0 r = np.sqrt(x**2 + y**2) phi = np.arctan2(y, x) phi_index = np.round((phi + np.pi) * inputshape[1] / (2.1*np.pi)) return (r,phi_index) x1 = kwargs.get('x1') # This is Radial coordinate x2 = kwargs.get('x2') # This is Either Theta or Phi data_arr2d = var if kwargs.get('rtheta',False) == True: var_cart = S.ndimage.geometric_transform(data_arr2d, r2theta,order=1,output_shape = (data_arr2d.shape[0]*2, data_arr2d.shape[0]),extra_keywords = {'inputshape':data_arr2d.shape,'origin':(data_arr2d.shape[0],0)}) if kwargs.get('rphi',False) == True: var_cart = S.ndimage.geometric_transform(data_arr2d, r2phi, order=1,output_shape = (data_arr2d.shape[0]*2, data_arr2d.shape[0]*2),extra_keywords = {'inputshape':data_arr2d.shape,'origin':(data_arr2d.shape[0],data_arr2d.shape[0])}) return var_cart Hope you will help me in this regard. Regards Bhargav 
From: Benjamin Root <ben.root@ou...>  20110224 15:48:23

On Wed, Feb 23, 2011 at 6:56 PM, Jack Sankey <jack.sankey@...> wrote: > Hi everyone! > > Is there any backendindependent way to get and set the figure window > coordinates and sizes (i.e. in pixels)? Currently when I make new plots they > appear in random locations as determined by my operating system; during > analysis when I'm making and destroying a lot of plot windows I want to be > able to have them automatically appear in "good" locations (such as the > upper left corner of my screen). > > Also, I am trying to find ways to get/set the zorder. > > Thanks in advance, > Jack > > There was someone who found that it was possible to add some additional information to the creation of a figure window. This information (at least on Linux systems), could be taken advantage of by customized configurations of the desktop manager. I would be curious to see what has come of that effort. Ben Root 
From: Benjamin Root <ben.root@ou...>  20110224 15:44:42

On Wed, Feb 23, 2011 at 10:52 PM, Mark Janikas <mjanikas@...> wrote: > Hello All, > > > > Is there a way to add HTML links into output graphics? In short, I would > like to use something like the PLT.text command and have it link to an html > page. The url arg doesn’t seem to be what I am looking for. > > > > My final output medium is PDF… so I am using: > > > > from matplotlib.backends.backend_pdf import PdfPages as PDF > > import matplotlib.pyplot as PLT > > > > > > pdfOutput = PDF(fileName) > > PLT.text(“Some Text to Link”, url = “http:…”) > > … > > … > > PLT.savefig(pdfOutput, format='pdf') > > PLT.clf() > > > > > > Thanks so much for any advise! > > > > MJ > > Looks like the url string is only used for SVG files. If you could, please file a feature request to have it added to the pdf backend: https://sourceforge.net/tracker/?group_id=80706 Ben Root 
From: Nadezhda Dencheva <dencheva@st...>  20110224 14:30:59

Jason, Try adding a pyqt property 'facecolor' to your widget. (This way you can set it also through the designer.) Add something like this to the widget's __init__ method: figFacecolor = QtCore.pyqtProperty(str, getfigfacecolor, setfigfacecolor, resetfigfacecolor) And then define the three methods. Nadia 
From: gary ruben <gruben@bi...>  20110224 11:20:09

I haven't seen this done before so I don't know if there's a standard way. The idea seems to be to take some points which are real data, create a random variable for each point with the points' position as the mean, then choose some number of points from each distribution to create some new points clustered around the original data. Some examples online seem to use uniform distributions and Poisson distributions or mixtures of these (uniform for the xvariable and Poisson for the y). If my take on this is correct, you can use scipy.stats to do this  an example is in the attached file which creates Gaussian distributions for each of the x and y coordinates then creates an equal number of new points for each of the seed points. The online examples I saw seem to choose random numbers of new points for each seed point. I didn't bother trying to cover all the possibilities. Hopefully this is helpful, Gary R. On Thu, Feb 24, 2011 at 3:04 PM, Uri Laserson <laserson@...> wrote: > Hi all, > I am interested in jittering points in a plot. I searched the forum, but I > am amazed at the dearth of results on the topic. I am referring to > something like this: > http://goo.gl/Db47s > or > http://goo.gl/BjIZt > > Is there a standard way people do this with MPL? > Thanks! > Uri > ................................................................................... > Uri Laserson > Graduate Student, Biomedical Engineering > HarvardMIT Division of Health Sciences and Technology > M +1 917 742 8019 > laserson@... 
From: Mark Janikas <mjanikas@es...>  20110224 04:52:54

Hello All, Is there a way to add HTML links into output graphics? In short, I would like to use something like the PLT.text command and have it link to an html page. The url arg doesn't seem to be what I am looking for. My final output medium is PDF... so I am using: from matplotlib.backends.backend_pdf import PdfPages as PDF import matplotlib.pyplot as PLT pdfOutput = PDF(fileName) PLT.text("Some Text to Link", url = "http:...") ... ... PLT.savefig(pdfOutput, format='pdf') PLT.clf() Thanks so much for any advise! MJ Mark Janikas Product Developer ESRI, Geoprocessing 380 New York St. Redlands, CA 92373 9097932853 (2563) mjanikas@...<mailto:mjanikas@...> 
From: Uri Laserson <laserson@mi...>  20110224 04:09:30

Hi all, I am interested in jittering points in a plot. I searched the forum, but I am amazed at the dearth of results on the topic. I am referring to something like this: http://goo.gl/Db47s or http://goo.gl/BjIZt Is there a standard way people do this with MPL? Thanks! Uri ................................................................................... Uri Laserson Graduate Student, Biomedical Engineering HarvardMIT Division of Health Sciences and Technology M +1 917 742 8019 laserson@... 
From: Jack Sankey <jack.sankey@gm...>  20110224 00:56:53

Hi everyone! Is there any backendindependent way to get and set the figure window coordinates and sizes (i.e. in pixels)? Currently when I make new plots they appear in random locations as determined by my operating system; during analysis when I'm making and destroying a lot of plot windows I want to be able to have them automatically appear in "good" locations (such as the upper left corner of my screen). Also, I am trying to find ways to get/set the zorder. Thanks in advance, Jack 
From: Benjamin Root <ben.root@ou...>  20110224 00:28:27

On Wed, Feb 23, 2011 at 4:52 PM, Rene Breton <superluminique@...>wrote: > Thanks much for the quick answer Ben! > > At least now I know it doesn't exist, yet. I might dig into the source > code to change the color as you suggest. As a workaround, maybe I will > simply tweak the .ps output in Adobe Illustrator; should be easy enough > to remove such thing. > Another issue may be the tickmarks, which are made separately in another segment of code. > > By the way, I'm very glad you (and people) took over the mplot3d. I > really think that 3D plotting was the number one missing thing in > Matplotlib and Python more generally. (mayavi2 is way to complicated and > clunky for what most people need) > > Thank you for your vote of confidence. This is exactly the intent of mplot3d, which is to allow for the possibility of basic 3d plotting features without the need to go "allin" to a major 3d plotting system. We are still a long way from what I envision for mplot3d. > If I may make another suggestion, besides getting more control over the > axes spines, it would be to allow the axes rendering to "mix" multiple > plot objects. Let's say one plots a sphere and a cylinder (like a rod) > that goes through the sphere and get the part of the cylinder that lies > inside the sphere to be hidden. Of course, I realize it might not be > trivial to do, depending exactly how plots are rendered. > > You are not the first to request this, and you will not be the last. Unfortunately, it is an intractable problem that can never be completely solved by the 2d rendering framework employed by matplotlib. If/When matplotlib gains an opengl backend, this problem will be revisited. Please do continue to feel free to continue commenting on mplot3d and how you think it can be better. And, as always, patches are welcome! Ben Root 