2
$\begingroup$

I am trying to make a plot that has frame ticks on all sides and the y-axis needs to be in scientific notation. I can get it to do one or the other, but not both. Please help!

`ListLogPlot[nmBaseline, Frame -> True, PlotRange -> All, 
 PlotRangePadding -> 0, AxesOrigin -> {200, 0}, Joined -> True, 
 FrameLabel -> {Style["Wavelength, [nm]", 10], 
 Style["Transmission", 15]}, FrameTicks -> All {ScientificForm}, 
 PlotLabel -> "Baseline Transmission Data", ImageSize -> Large]`
$\endgroup$
2
  • $\begingroup$ Welcome to Mathematica S.E. To start: 1) take the introductory tour now, 2) when you see good questions and answers, vote them up by clicking the gray triangles, since the credibility of the system is based on the reputation gained by users sharing their knowledge, 3) consider accepting the answer, if any, that solves your problem, by clicking checkmark sign, 4) give help too, by answering questions in your areas of expertise. $\endgroup$
    – bmf
    Feb 3, 2023 at 3:10
  • $\begingroup$ Next time, please consider adding some fake, random data so that your code is executable. Hope you become a regular here :-) $\endgroup$
    – bmf
    Feb 3, 2023 at 3:11

1 Answer 1

3
$\begingroup$

Something like (as you did not give any data, I take some random data):

nmBaseline = 200 + 100 RandomReal[{-1, 1}, 20];
ListLogPlot[nmBaseline, Frame -> True, PlotRange -> All, 
 PlotRangePadding -> 0, AxesOrigin -> {200, 0}, Joined -> True, 
 FrameLabel -> {Style["Wavelength, [nm]", 10], 
   Style["Transmission", 15]}, 
 PlotLabel -> "Baseline Transmission Data", ImageSize -> Large
 , FrameTicks -> {Automatic, 
   Table[{y, ScientificForm[y, 2]}, {y, 120., 280, 20}]}]

enter image description here

$\endgroup$

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.