0
$\begingroup$

I want to express numbers on the y-axis using scientific notation for the plot given below.

Plot[-(1/ (m^4)), {m, -0.5, 0.5}, PlotStyle -> {Black, Dashed, Thick}, LabelStyle -> Directive[FontFamily -> "Arial", Black, FontSize -> 10], AxesLabel -> {Style["x", 20], Style["y", 20]}]

I have read the previous post Scientific notation for the axes of a Plot, in which it is discussed a correlated doubt. However, the point that is not clear is how to adjust the parameter values for my case of study, as well as, what should be the best values to consider.

Thanks in advance.

$\endgroup$
0
$\begingroup$

The syntax in use in that other question is:

{#, ScientificForm@#} & /@ Range[min_value, max_value, increment]

where min_value is the lower bound of the axis, max_value is the upper bound, and increment is the spacing between successive labeled tick marks. In your case, a setting of min_value of -40000, max_value of 0, and increment of 10000 gives reasonable results.

$\endgroup$
1
  • $\begingroup$ Thanks for commenting @Michael Seifert! $\endgroup$ Aug 25 at 18:06

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.