Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

Re: axes in ListPlot

  • To: mathgroup at
  • Subject: [mg19615] Re: [mg19591] axes in ListPlot
  • From: "David Park" <djmp at>
  • Date: Sat, 4 Sep 1999 21:09:18 -0400
  • Sender: owner-wri-mathgroup at

Hung-Jen Wang wrote:

>     I have a list like this:
>  aa = {10, 15, 21, 13}
>.  If I use
>     ListPlot[aa, PlotJoined->True]
>to plot the list, it looks fine.  However, if I want to force the origin to
>be {0,0} by using
>     ListPlot[aa, PlotJoined->True, AxesOrigin->{0,0}]
>, then the axes appear broken.  I mean, for instance, only the part of y
>axis between 10 and 21 shows up in the graph.  Is there any way to make the
>graph looks "normal"?  I am using Mathematica 3.0.  Thanks in advance.
>H.J. Wang

You only need to add a PlotRange option.

ListPlot[aa, PlotJoined -> True, AxesOrigin -> {0, 0}, 
    PlotRange -> {{0, 4}, {0, 22}}];

David Park
djmp at

  • Prev by Date: Re: axes in ListPlot
  • Next by Date: right Kronecker product
  • Previous by thread: Re: axes in ListPlot
  • Next by thread: Re: Multiple sum with iterators that cannot equal