MathGroup Archive 2004

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

Search the Archive

Re: How do i make the plots show all of the axes?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50607] Re: How do i make the plots show all of the axes?
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Sun, 12 Sep 2004 04:42:21 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 9/11/04 at 6:44 AM, konrad at viltersten.com (Konrad Den Ende)
wrote:

>Many times, as i try to plot functions, i need to explicitly tell
>Mathematica to put the AxisOrigin to origo, where they belong. That
>is easily done BUT: 1) Sometimes the axes won't meat. They seem to
>be a little to short. How do i stop it?

This happens whenever the default PlotRange doesn't include the point you specified as the AxesOrigin. The solution is to adjust the PlotRange to include the origin

> 2) Is there a way of
>setting a standard parameters so that e.g. AxisOrigin always is at
>{0,0}, or the color of plots is {red, blue, yellow}. without me
>having to request it every single times?

Yes, use SetOptions[Plot, AxesOrigin->{0,0}] at the start of a session or put it in your init.m filie. That will cause the origin to default to {0,0}. But while this will take care of setting the origin, it will not adjust the plot range to include the origin.

Also, causing the origin to be a fixed point will result in less than optimum plots at time. For example contrast

Plot[(x - 5)^2 + 5, {x, 4, 6}, AxesOrigin -> {0, 0}, 
       PlotRange -> {{0, 6}, {0, 6}}]; 

with

Plot[(x - 5)^2 + 5, {x, 4, 6}]

While the first meets your requirements, I think the second is a much more effective plot.
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: DSolve Question
  • Next by Date: Re: How do i make the plots show all of the axes?
  • Previous by thread: How do i make the plots show all of the axes?
  • Next by thread: Re: How do i make the plots show all of the axes?