Re: graphics question
- To: mathgroup@smc.vnet.net
- Subject: [mg12352] Re: graphics question
- From: Paul Abbott <paul@physics.uwa.edu.au>
- Date: Sun, 10 May 1998 02:04:34 -0400
- Organization: University of Western Australia
- References: <6itj44$1eo@smc.vnet.net>
Tom wrote: >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). ListPlot[points,PlotRange -> {{0,100},{0,100}}]; Cheers, Paul ____________________________________________________________________ Paul Abbott Phone: +61-8-9380-2734 Department of Physics Fax: +61-8-9380-1014 The University of Western Australia Nedlands WA 6907 mailto:paul@physics.uwa.edu.au AUSTRALIA http://www.pd.uwa.edu.au/~paul God IS a weakly left-handed dice player ____________________________________________________________________