plotting single point

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

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(,[y]) then xlim and ylim to make sure the axes did not
rescale.

Pål