2
$\begingroup$

I am trying to make a plot of two separate lists of points that have already been created. The lists are named c and d. Here is the current code:

Show[ListPlot[c, Filling -> Axis], ListPlot[d, Filling -> Axis], PlotRange -> All]

When I use this code, I get the following plot

enter image description here

This plot is fine, but I am interested in moving the y-axis to the left side like a plot typically has. Does anyone know how to do this?

$\endgroup$
  • 3
    $\begingroup$ AxesOrigin -> {2700, 0}? $\endgroup$ – kglr Feb 6 '18 at 1:30
  • $\begingroup$ Thanks so much for your help! That worked like a charm (although the axis needs to be at closer to 2625). $\endgroup$ – BirdsRule123 Feb 6 '18 at 1:35
  • 1
    $\begingroup$ You may also like Frame->True, Axes->False $\endgroup$ – OkkesDulgerci Feb 6 '18 at 1:42
1
$\begingroup$
c = Transpose[{RandomInteger[{2600, 3000}, 10], RandomReal[.5, 10]}];
d = Transpose[{RandomInteger[{3000, 3250}, 10], RandomReal[.5, 10]}];

Show[ListPlot[c, Filling -> Axis], ListPlot[d, Filling -> Axis], 
 PlotRange -> All, Frame -> {{True, False}, {True, False}}, Axes -> False]

enter image description here

Show[ListPlot[c, Filling -> Axis], ListPlot[d, Filling -> Axis], 
 PlotRange -> All, AxesOrigin -> {2600, 0}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.