MathGroup Archive 2006

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

Search the Archive

Re: Plot Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67741] Re: Plot Question
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Thu, 6 Jul 2006 06:52:44 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 7/5/06 at 4:18 AM, bbhole at gmail.com (Bharat Bhole) wrote:

>I have a 2-D Plot in which I want to restrict the display of y-axis
>from 8-16, and of x-axis from 0-9. I achieve this using

>plot=Plot[function[x],{x,1,8}, PlotRange ->{{0,9},{8,16}},
>AxesOrigin->{0,8}].

>Then I want to label the x and y-axes and this is where I am having
>trouble. I want the x-axis label to appear just below the x-axis
>(and not at the end of the axis, as option AxesLabel gives). So I
>use the Text command and define

>labelX = Text["name-xaxis", {5,7}]

>Then I use,

>Show[ plot , labelX ]

>This, however, does not show name-xaxis, which I suppose is because
>it is out of PlotRange specified in Plot command. If I modify the
>PlotRange in the Show[ ] command to say

>Show[plot,labelX, PlotRange->{{0,9},{6,16}}]

>then it shows the  name-xaxis, however, it also extends the y-axis
>line to y=5. How can I both, get the name to display and at the same
>time have the y-axis start at value 8.

There are a couple of ways to achieve what you want. The most obvious way is to change the coordinates for the label so that they are within the specified plot range. The alternative would be to use something like David Park's DrawGraphics package to draw a custom x and y-axis. 
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: random inside module
  • Next by Date: RE: Beginner--Simplest question: How to control some values in Input dialog box
  • Previous by thread: Plot Question
  • Next by thread: RE: Plot Question