Hi Pål,

you can turn off matplotlibs autoscaling by e.g.

import matplotlib.pyplot as plt

ax = plt.subplot(111, autoscale_on=False, xlim=(..., ...), ylim=(..., ...))

or 

ax.set_autoscale_on(False)


Kind regards 
Matthias

On Tuesday 10 November 2009 01:50:47 Paul Northug wrote:
> Greetings,
> I would much like to plot single point in existing figure. If the
> point is outside of current axes limit, I would like the axes not to
> resize.
>
> Is there an easy way? Currently, to add a point x,y, I
> scatter([x],[y]) then xlim and ylim to make sure the axes did not
> rescale.
>
> Pål


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to