Menu

How to format ticks labels in colorbar?

Help
2012-01-17
2012-10-16
  • Nobody/Anonymous

    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

     
  • Alexey Balakin

    Alexey Balakin - 2012-01-25

    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').

     

Log in to post a comment.