0
$\begingroup$
rp = 2*10^3;
ro = 1.88*10^8;
h[p_] := p (rp/ro)^2;
listh = Table[{p, h[p]}, {p, 1, 100000}];
ListLogPlot[listh, PlotTheme -> "Detailed", LabelStyle -> Black, FrameStyle -> {Black, 10},PlotRange -> All]

This code plots the graph seen below enter image description here I just wanted to change the frameticks in the horizontal axis like 2x10^4, 4x10^4, 6x10^4, 8x10^4, 1x10^5. How is this possible?

$\endgroup$
0
$\begingroup$

Try this:

[`rp = 2*10^3;
ro = 1.88*10^8;
h[p_] := p (rp/ro)^2;
listh = Table[{p, h[p]}, {p, 1, 100000}];
ListLogPlot[listh, PlotTheme -> "Detailed", LabelStyle -> Black, 
 FrameStyle -> {Black, 10}, PlotRange -> All, 
 FrameTicks -> {{Automatic, 
    None}, {{{20000, 
      Style["2×\!\(\*SuperscriptBox[\(10\), \(4\)]\)", 12, 
       Black]}, {40000, 
      Style["4×\!\(\*SuperscriptBox[\(10\), \(4\)]\)", 12, 
       Black]}, {60000, 
      Style["6×\!\(\*SuperscriptBox[\(10\), \(4\)]\)", 12, 
       Black]}, {80000, 
      Style["8×\!\(\*SuperscriptBox[\(10\), \(4\)]\)", 12, 
       Black]}}, None}}]`]

enter image description here

Have fun!

$\endgroup$
  • $\begingroup$ Thank you very much. $\endgroup$ – Haliki Feb 12 at 7:57

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.