2
$\begingroup$

I'm trying to express the numbers on the y-axis in scientific notation for a generic Plot like this reported here:

Plot[x^2, {x, 0, 100}, PlotRange -> All]

Is there an application in mathematica with wich I can do it simply?

$\endgroup$

2 Answers 2

6
$\begingroup$

Something like this?

Plot[x^2, {x, 0, 100}, Ticks -> {{#, ScientificForm@#} & /@ 
    Range[0., 100., 20.], {#, ScientificForm@#} & /@ 
    Range[0., 100^2, 1000.]}, PlotRange -> All]
$\endgroup$
1
  • $\begingroup$ Thank you so much. $\endgroup$
    – Michaels
    Commented Jul 5, 2017 at 14:57
4
$\begingroup$
f = x^2;
n = 100;
p = 5;

With[{m = f /. x :> n},
   Plot[f, {x, 0, n},
      PlotRange -> All,
      Ticks -> {Automatic,Table[{i, ScientificForm@i}, {i, 0., m, m/p}]}]]

enter image description here

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.