| Author |
Comment/Response |
Mark Benjamin
|
04/26/99 09:54am
When I try to plot a graph using ListPlot, the Axes Orgin mathematica chooses is not 0,0. Therefore I place AxesOrigin->{0,0} into the ListPlot command. But when I do this the x axes and y axes will not join up - Below is the following data and commands I use to draw the graph. How can I make the Axes join up?
Thanks for your help,
Regards
Mark Benjamin.
This is the data List used.
In[30]:=
a3={{0,30}, {5,46.1779}, {10,60.8158}, {15,74.0609}, {20,86.0456}, {25,
96.8898}, {30,106.702}, {35,115.58}, {40,123.614}, {45,130.883}, {50,
137.46}, {55,143.412}, {60,148.797}, {65,153.67}, {70,158.079}, {75,
162.068}, {80,165.678}, {85,168.944}, {90,171.889}, {95,174.573}, {100,
176.993}}
Out[30]=
{{0,30},{5,46.1779},{10,60.8158},{15,74.0609},{20,86.0456},{25,96.8898},{30,
106.702},{35,115.58},{40,123.614},{45,130.883},{50,137.46},{55,143.412},{
60,148.797},{65,153.67},{70,158.079},{75,162.068},{80,165.678},{85,
168.944},{90,171.889},{95,174.573},{100,176.993}}
xaxes and yaxes are lists used with Ticks->{xaxes,yaxes} in the ListPlot Command to planc my own specified ticks on the graph.
In[79]:=
xaxes=Table[x+5,{x, -5, 100, 5}]
Out[79]=
{0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100,105}
In[81]:=
yaxes=Table[x+10,{x, -10, 190, 10}]
Out[81]=
{0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200}
This is the command I use to Plot a3 with a larger point size, labels on the axes, specified origin, and specified tick locations.
In[93]:=
ListPlot[a3, PlotStyle->{PointSize[0.02]}, AxesLabel->{''Time'',''Mass''},
AxesOrigin->{0,0}, Ticks ->{xaxes,yaxes}]
URL: , |
|