Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

How to draw histogram is specific bin size?

Help
zaki
2012-10-15
2012-10-16
  • zaki
    zaki
    2012-10-15

    gr->Hist(x,z), how to set bin step ?
    Thanks

     
  • Alexey Balakin
    Alexey Balakin
    2012-10-15

    You can use option "value". For example

    gr->Hist(x,z,"value 1000");
    

    will create histogram of 1000 points distributed in x-range.

    Alternatively, you can set value of mglFitPnts variable.

     
  • zaki
    zaki
    2012-10-15

    Thanks abalakin, I just successfully compile Mathgl on win7 vs2010 32, the gnu
    win32 link on the help page is little older that libpng and zilib I tried not
    compatible with win7.