Mathematica: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
added description
 
Line 3: Line 3:
Tick marks and GridLines
Tick marks and GridLines


<source lang="nb">
<source lang="mma">
Plot[3 Sin[x], {x, -2 Pi, 2 Pi},  
Plot[3 Sin[x], {x, -2 Pi, 2 Pi},  
  Ticks -> {{-2 Pi, -3 Pi/2, -Pi, -Pi/2, Pi, Pi/2, 3 Pi/2, 2 Pi},  
  Ticks -> {{-2 Pi, -3 Pi/2, -Pi, -Pi/2, Pi, Pi/2, 3 Pi/2, 2 Pi},  

Latest revision as of 18:05, 19 September 2017

Plotting

Tick marks and GridLines

Plot[3 Sin[x], {x, -2 Pi, 2 Pi}, 
 Ticks -> {{-2 Pi, -3 Pi/2, -Pi, -Pi/2, Pi, Pi/2, 3 Pi/2, 2 Pi}, 
   Automatic}, 
 GridLines -> {{-2 Pi, -3 Pi/2, -Pi, -Pi/2, Pi, Pi/2, 3 Pi/2, 2 Pi}, 
   Automatic}]