MathGroup Archive 2004

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

Search the Archive

Re: one question about draw graph in frame

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49041] Re: one question about draw graph in frame
  • From: "Michel, Hans J.I." <HMiche at LSUHSC.EDU>
  • Date: Tue, 29 Jun 2004 04:50:24 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Daohua:

The help files provide this example for FrameTicks

Plot[Sin[x], {x, 0, 2 Pi}, Frame -> True, FrameTicks -> {{0, Pi/2, Pi, (3
Pi)/2, 2 Pi}, {-1, 0, 1}}];

The ticks are just a list each must be iterated. But if you can fund a
function that Evaluates to a list such as the following:

Plot[Sin[x], {x, 0, 2 Pi}, Frame -> True, FrameTicks -> {Range[0, 2 Pi,
Pi/2], Range[-1, 1, 1]}];

will produce the same Plot.

In your example

If you find a function(s) that can return a list {0, .5, .7, 1}, and {0, .5,

1}. Then you are set. Or define them globally and use that global definition
in your Plot.

Hans Michel



  • Prev by Date: Re: Union - simple question
  • Next by Date: Re: Union - simple question
  • Previous by thread: one question about draw graph in frame
  • Next by thread: Re: one question about draw graph in frame