Hi Xavier,
I'm sorry. As I don't know a great deal about the nuts and bolts of matplotlib,
I don't think I'm well enough equipped to answer your question. Perhaps someone
else on this list can help out?
Regards,
-- Damon
--
Damon McDougall
Mathematics Institute
Univers
Hi,
Well when you plot, imshow or whatever is matplotlib related, the axes
do scale *automatically*.
Why should it be different with quiver?
I do reproduce your error with axis('tight')
Xavier
> Hi Xavier (cc list),
>
> It may be a bug, however I do not know what the default behaviour 'should
Hi Xavier (cc list),
It may be a bug, however I do not know what the default behaviour 'should' be.
You could do:
lims = [-4, 4, -4, 4]
axis(lims)
after calling quiver to see the whole arrow. I did notice that calling
axis('tight')
threw the following error
/Users/Damon/python/lib/matplotlib
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
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
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
--