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
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
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
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 (0n1) and 0,0 is bottom left
size_x, size_x is a number (0n1)
1 is full figure size.
Ex: axe =
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
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
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 -
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.
Try installing the Microsoft Visual C++ 2008 Redistributable Package (x86)
http://www.microsoft.com/downloadS/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BFdisplaylang=en.
This is usually installed during the installation of Python in the
Install For All Users mode.
Christoph