Re: [Matplotlib-users] question about explicit tick labels

2009-11-30 Thread Matthias Michler
Hi, I reattached your example in a slightly modified way. For me with current svn it does its job. The key points are that I introduced a twin-axes and used subplots_adjust(wspace=0.6) to extend the horizontal space between the subplots. Does this help you? Kind regards Matthias On

[Matplotlib-users] Installing iPython on Win XP

2009-11-30 Thread Wayne Watson
I downloaded ipython-0.10.win32-setup.exe and began the execution. It seem like it installed components. It may have brought up a download for ipython-0.10-py2.5.egg some minutes later. When I noticed it I thought maybe I accidentally triggered its appearnace from the Start menu. I tried

[Matplotlib-users] legend and symbols

2009-11-30 Thread Oliver Tomic
Hi, I am not sure whether this has been reported before or maybe even got fixed already. When I make scatter plot and plot a point with marker = 'o' it appears as a circle in the plot as it should. It won't, however, appear in the legend. Windows XP Python(x,y) 2.6.0 matplotlib 0.99.1 (I

Re: [Matplotlib-users] Unable to import matplotlib.pylab in Windows

2009-11-30 Thread Dilip Warrier
Thanks, Christoph. I confirmed that this build solves the problem. Dilip. - Original Message From: Christoph Gohlke cgoh...@uci.edu To: matplotlib-users matplotlib-users@lists.sourceforge.net Sent: Tue, November 24, 2009 5:55:03 PM Subject: Re: [Matplotlib-users] Unable to import

[Matplotlib-users] calling basemap has segmentation error

2009-11-30 Thread xiaoni
Hello, Dear all, I am using matplotlib and basemap. It worked well in my home computer until recently, when I perhaps made an automatic upgrade of the system and softwares using apt-get . Now I can import matplotlib and basemap without errors, but when I run the example/simpletest.py from

[Matplotlib-users] What's Wrong with this Histogram?

2009-11-30 Thread Wayne Watson
I'm working with a Python program that produces freq below. There are 32 bins. The bins represent 0-7, 8-14, ..., 248 - 255 of a set of frequencies (integer counts). 0 to 255 are the brightness pixel values from a 640x480 frame of b/w pixels. I binned 8 into each of 32 bins. One can easily see

Re: [Matplotlib-users] What's Wrong with this Histogram?

2009-11-30 Thread Wayne Watson
That helped by using the original data of 256 elements. So all the large values in the array beyond 120 would be tiny bars stretched out to x of about 127516. OK, now with the original 256 elements I see some problems. Individually, they contain some high counts, so I guess they are

Re: [Matplotlib-users] Installing iPython on Win XP

2009-11-30 Thread Wayne Watson
Looking a little further at this problem it looks like iPython was installed. I mis-interpreted some lines at the bottom. The very bottom one showed [1]. I didn't recognize that as a line prompt. The next question is whether one can accept a complete program. I suspect this is a purely

Re: [Matplotlib-users] Installing iPython on Win XP

2009-11-30 Thread PHobson
This is indeed a DOS prompt issue. Right-click the very top of the window and go to Properties. Upon exit, select that the changes should be applied to future windows with the same title. HTH -paul -Original Message- From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net] Sent:

Re: [Matplotlib-users] encoding of files included in sphinx

2009-11-30 Thread Michael Droettboom
Sorry this thread fell through the cracks. Thanks for the reminder. The error is not actually on importing and parsing the .py file (it seems to do that just fine). The error is on printing to the console, at which point it tries to convert the Unicode string to ascii (which fails because

Re: [Matplotlib-users] What's Wrong with this Histogram?

2009-11-30 Thread Pierre de Buyl
bar does what you need. import numpy as np import matplotlib.pyplot as plt freq = np.array( [127516, 8548, 46797, 46648, 21085, 9084, 7466, 6534, 5801, 5051, 4655, 4168, 4343, 3105, 2508, 2082, 1200, 488, 121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ) fig = plt.figure()

[Matplotlib-users] How to display axis numbers inside the figure area

2009-11-30 Thread Pekeika
Good morning All, I am creating figures that need to overlay with maps, so disabling the box around my figures is a must. (need no title, legend, etc...) I have my plain figure now without surroundings but now need the axis numbers on the grid inside the plot area (like latitude and longitude

Re: [Matplotlib-users] Large figure sizes get squashed or clipped?

2009-11-30 Thread Michael Droettboom
Scrollbars seem like the only reasonable solution I can think of. Of course, this will require adding support in all the backends -- not a small undertaking. I've filed a feature request for this here: https://sourceforge.net/tracker/?func=detailaid=2906107group_id=80706atid=560723 Maybe if

Re: [Matplotlib-users] Links in pdf

2009-11-30 Thread Michael Droettboom
Just a note when implementing this feature (I'm too busy at the moment as well) -- the SVG backend already supports hyperlinks, so if possible the PDF support should piggyback on its public API (get_url/set_url). Mike On 11/28/2009 11:09 AM, Fabricio Silva wrote: Le samedi 28 novembre 2009 à

Re: [Matplotlib-users] Refer to matplotlib sphinx plots

2009-11-30 Thread Michael Droettboom
Unfortunately, at present you can't. The figure referencing in Sphinx works because there is a hard-coded phase to match labels to figures (which doesn't know about plots). I think the matplotlib plot directive needs to write such a phase at well (should be possible using Sphinx event hooks)

Re: [Matplotlib-users] legend and symbols

2009-11-30 Thread Gökhan Sever
On Mon, Nov 30, 2009 at 4:26 AM, Oliver Tomic oliver.to...@nofima.nowrote: Hi, I am not sure whether this has been reported before or maybe even got fixed already. When I make scatter plot and plot a point with marker = 'o' it appears as a circle in the plot as it should. It won't, however,

Re: [Matplotlib-users] Links in pdf

2009-11-30 Thread Jouni K . Seppänen
Michael Droettboom md...@stsci.edu writes: Just a note when implementing this feature (I'm too busy at the moment as well) -- the SVG backend already supports hyperlinks, so if possible the PDF support should piggyback on its public API (get_url/set_url). Yes, for URL links the API should

Re: [Matplotlib-users] What's Wrong with this Histogram?

2009-11-30 Thread Wayne Watson
Another related question. is there some statistics function that computes the mean, std. dev., min/max, etc. from a frequency distribution? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz

Re: [Matplotlib-users] Bug in matplotlib.patches' contains() method?

2009-11-30 Thread Jorge Scandaliaris
Michael Droettboom md...@... writes: It shouldn't always return True -- it should return a tuple of type (bool, dict). The first element is whether it's inside, and the second is a dictionary of indices of subobjects (used only for Collections). Unfortunately, this tuple always

Re: [Matplotlib-users] imshow without resampling

2009-11-30 Thread Geoffrey Ely
Hi, I found this old thread discussing the possibility of placing un- resampled images in PS, PDF and SVG. It was questioned weather there were any potential users for such a feature to justify the effort. If it makes a difference, here is one user who very much welcome it. I need to overlay

[Matplotlib-users] Bliting speed improvment patch (QT4Agg backend) + example of sliding demo

2009-11-30 Thread Laurent Dufrechou
Hi there, Finally with lot of try I've finally managed to make blitting of a cmap working. I've also patched QT4agg backend, to make a redraw immediately. (replaced self.draw by self.repaint) In my current project I was able to stream a 655KB network stream, do demodulation of an IQ stream and

[Matplotlib-users] font rendering quality

2009-11-30 Thread Ernest Adrogué
Hi, I notice a big difference in quality between the text rendered by matplotlib and that rendered by the rest of applications. As an example, see the image attached showing the same font as shown by firefox and matplotlib respectively. Is there any config setting I can change to improve the font

[Matplotlib-users] Fitting math functions to histograms

2009-11-30 Thread William Carithers
I would like to fit a gaussian to a histogram and then overplot it. I can write the code to do this but most plotting packages support such fitting. However I can't find it for pyplot even after scanning documentation, googling, etc. In fact, the only fitting functionality I could find was the

Re: [Matplotlib-users] Color in 3d plots

2009-11-30 Thread Mike Alger
After a weekend of no replies I managed to figure a way out myself As this was left to the reader as an exercise I will leave the integration or improvement of this solution as an exercise to the next reader What I have done is basically cloned the plot surface function and replaced the

[Matplotlib-users] figimage over plot?

2009-11-30 Thread Jason Heeris
Hi, Is it at all possible to have figimage draw the image OVER the top of the plot area? Currently I can only get it to draw underneath — even if I set the frame alpha to zero, it is obscured by the grid. This can be seen from the test code below: testplot.py #!/usr/bin/python import

Re: [Matplotlib-users] Fitting math functions to histograms

2009-11-30 Thread John Hunter
On Mon, Nov 30, 2009 at 6:44 PM, William Carithers wccarith...@lbl.gov wrote: I would like to fit a gaussian to a histogram and then overplot it. I can write the code to do this but most plotting packages support such fitting. However I can't find it for pyplot even after scanning

Re: [Matplotlib-users] Fitting math functions to histograms

2009-11-30 Thread William Carithers
Hi John, Yes, that is true if the data is truly gaussian. In my case, I know that the data have non-gaussian tails which tend to dominate the calculation of the standard deviation. I should have been clearer in my post that what I actually wanted to do was fit a gaussian to the truncated central

Re: [Matplotlib-users] figimage over plot?

2009-11-30 Thread John Hunter
On Mon, Nov 30, 2009 at 9:04 PM, Jason Heeris jason.hee...@gmail.com wrote: Is it at all possible to have figimage draw the image OVER the top of the plot area? Currently I can only get it to draw underneath — even if I set the frame alpha to zero, it is obscured by the grid. This can be seen

Re: [Matplotlib-users] Color in 3d plots

2009-11-30 Thread John Hunter
On Mon, Nov 30, 2009 at 8:06 PM, Mike Alger mal...@ryerson.ca wrote: After a weekend of no replies I managed to figure a way out myself Hey Mike, sorry for the radio silence. mpl is a big project and no one developer is equipped to answer questions about everything. We currently have only one

Re: [Matplotlib-users] font rendering quality

2009-11-30 Thread John Hunter
On Mon, Nov 30, 2009 at 6:38 PM, Ernest Adrogué eadro...@gmx.net wrote: Hi, I notice a big difference in quality between the text rendered by matplotlib and that rendered by the rest of applications. As an example, see the image attached showing the same font as shown by firefox and