graphics question
- To: mathgroup@smc.vnet.net
- Subject: [mg12336] graphics question
- From: Tom <toad@planet.eon.net>
- Date: Thu, 7 May 1998 18:52:22 -0400
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