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

2009-11-22 Thread Christoph Gohlke
Try installing the Microsoft Visual C++ 2008 Redistributable Package (x86) . This is usually installed during the installation of Python in the "Install For All Users" mode. Christoph --

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

2009-11-22 Thread Dilip Warrier
Hi, all. I am unable to import matplotlib.pylab. When I run the following command: python -c "import matplotlib.pylab" the application crashes with a windows error message. Running with the -v option shows that the application crashes at the following stage: import matplotlib.transforms >From

[Matplotlib-users] `fig.subplots_adjust` does not behave as advertized

2009-11-22 Thread Dr. Phillip M. Feldman
The basemap demo `cubed_sphere.py` contains the following line of code: fig.subplots_adjust(bottom=0, left=0, right=1, top=0, wspace=0, hspace=0) >From the documentation, it would appear that `wspace=0` should remove all horizontal space between the subplots. But, this isn't what happens. (

[Matplotlib-users] separate sub-forum for basemap?

2009-11-22 Thread Dr. Phillip M. Feldman
It seems as though there are enough basemap-related posts that it might be worth creating a separate basemap-specific sub-forum of the matplotlib forum. -- View this message in context: http://old.nabble.com/separate-sub-forum-for-basemap--tp26470932p26470932.html Sent from the matplotlib - user

[Matplotlib-users] bug in run_all.py

2009-11-22 Thread Dr. Phillip M. Feldman
The script run_all.py in the basemap examples does not work when Python has been installed to "C:\Program Files\Python25". It appears that this problem involves the space in the path. -- View this message in context: http://old.nabble.com/bug-in-run_all.py-tp26470905p26470905.html Sent from the

Re: [Matplotlib-users] set figure position

2009-11-22 Thread Christopher Barker
Laurent Dufrechou wrote: > You can define exactly the size and position of your plot like this: > > fig = Figure() > axe = fig.add_axes([pos_x,pos_y,size_x,size_y]) I believe the OP was asking how to position the entire figure Window (or frame in wx parlance) on the screen, rather than the axis

Re: [Matplotlib-users] set figure position

2009-11-22 Thread Laurent Dufrechou
Hi marie, You can define exactly the size and position of your plot like this: fig = Figure() axe = fig.add_axes([pos_x,pos_y,size_x,size_y]) axe.plot(x, y, 'b') where pos_x,pos_y is a number (0mailto:marie.delafonta...@yahoo.com] Envoyé : dimanche 22 novembre 2009 18:05 À : matplotlib-users@li

Re: [Matplotlib-users] quiver without any scaling

2009-11-22 Thread Xavier Gnata
Hi, RTFM...indeed it works. However, the axis do not scale accordingly: quiver([1],[1],[2],[2], angles='xy', scale_units='xy', scale=1) on a TkAgg backend produce a plot with: In [11]: axis() Out[11]: (0.94006, 1.0601, 0.94006, 1.0601) The d

Re: [Matplotlib-users] quiver without any scaling

2009-11-22 Thread Damon McDougall
Hi Xavier, You can pass some handy keyword arguments to fix that. Use the following: quiver([1],[1],[1.2],[1.2], angles='xy', scale_units='xy', scale=1) Hope that helps :) Regards, -- Damon -- Damon McDougall Mathematics Institute University of Warwick Coventry CV4 7AL

[Matplotlib-users] set figure position

2009-11-22 Thread Marie De La Fontaine
We have recently switched to matplotlib after having done all plotting with pure wxPython for years. There is one problem we cannot solve. With wxPython we are free to set the geometry (position and size) of each Frame anywhere on the screen. We have developed a heuristic solution which packs t

[Matplotlib-users] quiver without any scaling

2009-11-22 Thread Xavier Gnata
Hi, I woud like to draw a vector field using pylab. quivert looks nice but it sould not scale the arrows to fit my use-case. quiver([1],[1],[1.2],[1.2]) does plot a nice arrow but the head of the arrow is not at (1.2,1.2). Is there a way to plot a list of arrows *without* any scaling? Xavier --

Re: [Matplotlib-users] adjusting space between axes label and axes

2009-11-22 Thread per freem
Hi Jae-Joon and others, i switched to using splines, but i still cannot see how to adjust the space between the axis labels and the ticks of the axes. right now the labels are too far away. here is my code: fig = plt.figure() x = np.linspace(0,2*np.pi,100) y = 2*np.sin(x) ax = fig.add_subplot(