Message Boards Message Boards

0
|
8549 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Plot Range not working

Posted 9 years ago

I place the following command into mathematica

Plot[Tan[x], {x, 0, 10}, PlotRange \[RightArrow] Automatic]   

This is ripped straight from the mathematica site and I do not get a graph, instead it keeps telling me

   Plot::nonopt: Options expected (instead of PlotRange\[RightArrow]Automatic)
   beyond position 2 in Plot[Tan[x],{x,0,10},PlotRange\[RightArrow]Automatic]. 
   An option must be a rule or a list of rules. >>

How to fix?

What I want to do is use plot range to change the view of my graph. For example change it from the default setting to say {{1,4},{6,7}}

Any help much appreciated.

POSTED BY: Musashi Koyama

Hi,

the problem is that you used the "RightArrow". What you want to use is \[Rule].

Plot[Tan[x], {x, 0, 10}, PlotRange -> Automatic]

or

  Plot[Tan[x],{x,0,10}, PlotRange \[Rule] Automatic]

should both work. The think is that the typesetting of \[Rule] and \[RightArrow], i.e. how they are displayed, is the same.

Cheers,

Marco

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract