|
From: John H. <jdh...@ac...> - 2005-02-28 16:46:29
|
>>>>> "oliver" == oliver tomic <oli...@ma...> writes:
oliver> Hi folks,
oliver> this might be a trivial question, but I could not figure
oliver> it out from the documentation or the examples.
oliver> I have a plot where the x-scale ranges from 0 to 20. When
oliver> I plot a line it automatically starts at x=0. I would like
oliver> the line to start at x=1. Is there a way to how I can do
oliver> that?
If I understand your question correctly, you want to set the xlim to
range from 1-20 even if your data range from 0-20
>>> plot(x,y)
>>> xlim(1,20)
http://matplotlib.sf.net/matplotlib.pylab.html#-xlim
http://matplotlib.sf.net/matplotlib.pylab.html#-axis
JDH
|