xlim, ylim

It seems that xlim/ylim only set outside bounds. (Don’t plot less than min, or more than max.) Is there any way to specify a plot range even if there’s no data there? Like, if my graph plots [5,6,7,8], [5,7,3,6] could I specify that my plot should display x and y from 0 to 10?

~jonathon anderson

it is straight forward:

plot([5,6,7,8],[5,7,3,6])
xlim(0,10)
ylim(0,10)

···

On Sunday 28 January 2007 10:07:26 pm Jonathon Anderson wrote:

It seems that xlim/ylim only set outside bounds. (Don't plot less than min,
or more than max.) Is there any way to specify a plot range even if there's
no data there? Like, if my graph plots [5,6,7,8], [5,7,3,6] could I specify
that my plot should display x and y from 0 to 10?