Mathematica: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
iwu
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<source lang="nb">
== Plotting ==
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}]
 
Tick marks and GridLines
 
<source lang="mma">
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}]
</source>
</source>


:[[File:ClipCapIt-170919-190259.PNG]]
:[[File:ClipCapIt-170919-190259.PNG]]

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}]