I would like to divide values of FrameTicks by factor of 1000 to show KiloUnits instead of Units. How it is possible to do?
Asked
Active
Viewed 225 times
1 Answers
7
May be marked as a duplicate, but there's an easy way to do this that isn't listed in the marked question:
You have a plot:
Plot[x, {x, 0, 40000}]

To scale the ticks you just need to have the function you use to scale them #/1000& and the inverse of this function 1000 #&
Plot[x, {x, 0, 40000},
Ticks -> {Charting`ScaledTicks[{(1000 # &), (#/1000) &}],
Charting`ScaledTicks[{(1000 # &), (#/1000) &}]}]

Just be careful, these undocumented functions have a manner of breaking - it might not work in the next version when it comes out.
Jason B.
- 68,381
- 3
- 139
- 286