MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

graphics question



Hello everyone, I have a problem with plotting a set of points and I
hope someone can help me.  I first create two sets of x and y values.

In[58]:=
xvals=Table[Random[Integer, {40,100}], {5}]

Out[58]=
{56,66,57,66,90}

In[59]:=
yvals=Table[Random[Integer, {40,100}], {5}]

Out[59]=
{100,85,43,93,70}

Then I create a list of ordered pairs from these values

In[61]:=
points=Transpose [{xvals,yvals}]

Out[61]=
{{56,100},{66,85},{57,43},{66,93},{90,70}}

Now, I would like to plot these, but I want to have the origin at (0,0).
When I plot these points, since they are located quite "far" from the
origin I get a gap in the axes.  

In[62]:=
ListPlot[points, AxesOrigin->{0,0}]

Out[62]=
Graphics

Is there anyway to deal with that?  Thank you for any help you  might
provide.  

Tom



  • Prev by Date: Re: Semi-Log for X-axis
  • Next by Date: Re: a^n*b^n != (a*b)^n
  • Prev by thread: Re: Redirecting output to file
  • Next by thread: Re: graphics question