MathGroup Archive 2000

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

Search the Archive

Re: ListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25028] Re: [mg25011] ListPlot
  • From: BobHanlon at aol.com
  • Date: Fri, 1 Sep 2000 21:57:34 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 9/1/2000 1:26:50 AM, brett1228 at aol.com writes:

>Could someone tell me how to change the frameticks so they're in pi instead
>of numbers?
>
>I want the X-axis, instead of going 1 2 3 4 5 to go in terms of Pi/2
>

xmin = 0; xmax = 4Pi;
xTickMajor = Pi;
xTickMinor = xTickMajor/4;

Plot[Sin[x], {x, xmin, xmax}, 
    Axes -> False, 
    Frame -> True, 
    FrameTicks -> {
        Join[
          Table[{x, x, 
              {0.00625, 0.00625},
              {GrayLevel[0.], AbsoluteThickness[0.25]}}, 
            {x, xmin, xmax, xTickMajor}], 
          Table[{x, "", 
              {0.00375, 0.},
              {GrayLevel[0.], AbsoluteThickness[0.125]}}, 
            {x, xmin, xmax, xTickMinor}]], 
        Automatic, 
        Join[
          Table[{x, "", 
              {0.00625, 0.00625},
              {GrayLevel[0.], AbsoluteThickness[0.25]}}, 
            {x, xmin, xmax, xTickMajor}], 
          Table[{x, "", 
              {0.00375, 0.},
              {GrayLevel[0.], AbsoluteThickness[0.125]}}, 
            {x, xmin, xmax, xTickMinor}]], 
        Automatic}];


Bob Hanlon


  • Prev by Date: Simple integral wrong
  • Next by Date: Re: functions, packages, and contexts
  • Previous by thread: Re: ListPlot
  • Next by thread: Pre-Algebra / Algebra Add-ons