Re: [Matplotlib-users] Issue with Matplotlib on Win32 and "ImportError: DLL load failed"

2009-08-25 Thread John Hunter
On Tue, Aug 25, 2009 at 4:59 PM, Patrick Rynhart wrote: > Thanks again for your help.  Do you think that testing for the version > of the Visual C redistributable is required during an install of > matplotlib (and/or possibly at runtime). This shouldn't be an issue with recent binaries of mpl, eg

Re: [Matplotlib-users] Issue with Matplotlib on Win32 and "ImportError: DLL load failed"

2009-08-25 Thread Patrick Rynhart
Hi again, Just to update you, copying across the Visual C/C++ runtime library (MSVCP71.DLL) from a Windows XP SP3 install to C:\Python25\Lib\site-packages\matplotlib on Windows Server 2008 does in fact appear to work correctly with matplotlib after all. Regards, Patrick -- Dr Patrick Rynhart Li

Re: [Matplotlib-users] Issue with Matplotlib on Win32 and "ImportError: DLL load failed"

2009-08-25 Thread Patrick Rynhart
On Fri, Aug 7, 2009 at 7:27 PM, John Hunter wrote: > On Thu, Aug 6, 2009 at 8:48 PM, Patrick Rynhart wrote: >> Dear all, >> >> We are using Python 2.5, matplotlib and NumPy on Windows to assist >> with the teaching for an undergraduate paper. On a small number of >> installations, an error attempt

Re: [Matplotlib-users] possible bug with linestyle='steps'

2009-08-25 Thread Paul Ray
Hi, I just installed matplotlib 0.99.0 and I see that this problem is still there. The command plot(a,ls='steps') is equivalent to plot(a,ls='steps-pre') and both cause the first value of the array to NOT be plotted. This is REALLY not what should happen when one plots an array with several

Re: [Matplotlib-users] Pareto diagram - align cumulative percentage marker in the middle of the bars

2009-08-25 Thread Christopher Barker
Werner F. Bruhin wrote: > The other problem I have is that the xtick_labels are cut off at the > bottom when the frame is resized below a certain size. How can I > prevent this? I don't think MPL yet has a system for making things fit, so you need to change the size/position of your axes objec

Re: [Matplotlib-users] Pareto diagram - align cumulative percentage marker in the middle of the bars

2009-08-25 Thread Werner F. Bruhin
Jouni K. Seppänen wrote: > "Werner F. Bruhin" writes: > > >> I trying to create a Pareto diagram and would like that the percentage >> marker is center aligned on the bars, >> > > Perhaps the easiest solution is to use bar(...,align='center'). > Thanks, that does the trick for me, after

Re: [Matplotlib-users] Pareto diagram - align cumulative percentage marker in the middle of the bars

2009-08-25 Thread Jouni K . Seppänen
"Werner F. Bruhin" writes: > I trying to create a Pareto diagram and would like that the percentage > marker is center aligned on the bars, Perhaps the easiest solution is to use bar(...,align='center'). -- Jouni K. Seppänen http://www.iki.fi/jks -

Re: [Matplotlib-users] Custom ticklabels on colorbar

2009-08-25 Thread Jae-Joon Lee
Please, take your time and post a "standalone" code that reproduces your problem so that others can actually test. Also, please describe what results you have and why they are wrong. On Tue, Aug 25, 2009 at 4:08 AM, Daniel Platz wrote: > fig1.colorbar(pc1,ax=ax1,orientation='horizontal',pad=0.025,

Re: [Matplotlib-users] Memory leak somewhere?

2009-08-25 Thread pixolex pixolex
You made my day! Long life to The "close()" All my ram and swap file was sucked every time a run my script to generate 260 png images...almost killing my ubuntu! On Tue, May 26, 2009 at 2:23 PM, John Hunter wrote: > On Tue, May 26, 2009 at 7:39 AM, Michael Droettboom > wrote: > > Does it help

[Matplotlib-users] Pareto diagram - align cumulative percentage marker in the middle of the bars

2009-08-25 Thread Werner F. Bruhin
I trying to create a Pareto diagram and would like that the percentage marker is center aligned on the bars, i.e. the blue point should be center aligned on the bar instead of to be aligned on the left edge in the following image. The other problem I have is that the xtick_labels are cut of

Re: [Matplotlib-users] contour lines not hidden by patches

2009-08-25 Thread Jouni K . Seppänen
Auré Gourrier writes: > The patches hide the contourf correctly, as expected, but not the > contour lines... Sounds like a zorder problem: http://matplotlib.sourceforge.net/examples/pylab_examples/zorder_demo.html > Below are the code lines. Since several details were edited out, the code sam

[Matplotlib-users] APLpy 0.9.4 Release

2009-08-25 Thread Astronomical Python
We are pleased to announce the release of APLpy 0.9.4, which includes bug fixes, improvements, and new features. APLpy is a python module that makes it easy to interactively produce publication-quality plots of astronomical images in FITS format. More details are available at http://aplpy.sourcefo

[Matplotlib-users] contour lines not hidden by patches

2009-08-25 Thread Auré Gourrier
Can't figure this out: I create a figure, add some axes, define data to be plotted as a contourf + contour on top and then add some patches to hide some regions of my plot. The patches hide the contourf correctly, as expected, but not the contour lines... Could someone telle me whether I'm doing

Re: [Matplotlib-users] Problem with hitlist(evt) - Possible solution

2009-08-25 Thread Romi Agar
The solution I came up with without delving into the code is to add the following two lines to lines.py:286, so that self._transformed_path gets assigned a value if it is None before it is accessed: if self._transformed_path is None: self._transform_path() --

Re: [Matplotlib-users] showing current value on boxplot

2009-08-25 Thread Ravi A.
Worked like a charm. Thank you very much! I really appreciate the sample code and teaching by example. Jouni K. Seppänen wrote: > > "Ravi A." writes: > >> I am using boxplot and i wanted to mark current value or any special >> value >> on the box plot. How do i achieve this? Something like be

Re: [Matplotlib-users] Custom ticklabels on colorbar

2009-08-25 Thread Daniel Platz
Jae-Joon Lee wrote: > On Fri, Aug 21, 2009 at 10:01 AM, Scott > Sinclair wrote: >>> I just realized that I did not give the correct plot object when creating >>> the colorbar. Now it works perfectly to pass arguments by set_xticklabels(). >>> >>> However, another question just arose. To format the

Re: [Matplotlib-users] showing current value on boxplot

2009-08-25 Thread Jouni K . Seppänen
"Ravi A." writes: > I am using boxplot and i wanted to mark current value or any special value > on the box plot. How do i achieve this? Something like below. Just "plot" the special value, with hold=True if you have set the hold default to false. One small issue is that plot autoscales the view