MathGroup Archive 1994

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

Search the Archive

displaying data

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: displaying data
  • From: rar at mail.physics.utah.edu (Rudolf A. Roemer)
  • Date: Tue, 25 Jan 1994 17:47:03 -0700

Dear MMAgroup:

I would like to display data by using the Frame->True option of Show[].
The data may be given in terms of two different scales, i.e., let's
say frequency in Hertz for the y-axis on the left side and wavelength in
Angstroem on the y-axis on the right side.

As I gathered from pp 422 of the MMA bible, this can be done by

FrameTicks->{ {lower x-axis},{left y-axis},{upper x-axis},{right y-axis}}

The following example should about do it. Note that the lower x-axis and
the left y-axis are as they should be. Also, the tick marks for the upper
x-axis and the right y-axis are correct. However, NO tick mark labels appear
in the plot. Even explicitly specifying a string to label the tick marks
does not work.

So what to do?

        -Rudo

Here's the example:

Show[
 Plot[Sin[x], {x,0,2 Pi}],
 Frame->True,
 FrameTicks->
 { {0,Pi/2,Pi,3 Pi/2, 2 Pi},
   {-1,-1/2,0,1/2,1},
   {0,1.57,3.14,4.71,6.28},
   {-.75,-.25,.25,.75}
 }
]


###########################################################################
# Rudolf A. Roemer (RAR)         Room:   306 James Fletcher Building      #
# Department of Physics          Email:  rar at mail.physics.utah.edu        #
# University of Utah             FAX:    USA (801) 581 4801               #
# Salt Lake City, Utah 84112     Phone:  USA (801) 581 6424               #
# USA                                    USA (801) 461 4450 (home)        #
###########################################################################







  • Prev by Date: Re: subscribe
  • Next by Date: Ticks and GridLines
  • Previous by thread: Re: subscribe
  • Next by thread: Ticks and GridLines