Re: [Matplotlib-users] quiver without any scaling

2009-11-24 Thread Damon McDougall
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

Re: [Matplotlib-users] quiver without any scaling

2009-11-23 Thread Damon McDougall
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

Re: [Matplotlib-users] quiver without any scaling

2009-11-23 Thread Xavier Gnata
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'

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

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