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$
5
$\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$
  • $\begingroup$ Thank you so much. $\endgroup$ – Michaels Jul 5 '17 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$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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