I would like to change default formatting of numbers in tick's labels in a
colorbar. For example, the numbers 500, 1000, 1500 and 2000 are shown in
scientific format by default as 0.5, 1.0,1.5 and 2.0 with multiplication
factor 10^3. Is it possible to show numbers as normal integers?
Thank you,
Toller
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to change default formatting of numbers in tick's labels in a
colorbar. For example, the numbers 500, 1000, 1500 and 2000 are shown in
scientific format by default as 0.5, 1.0,1.5 and 2.0 with multiplication
factor 10^3. Is it possible to show numbers as normal integers?
Thank you,
Toller
Yes, you can. For v.1.* just use function SetCTT("%g") -- see http://mathgl.s
ourceforge.net/mathgl_en/mathgl_en_19.html#Ticks . For v.2 you can use similarly:
gr->SetTickTempl('c','%g').