spedas/gui/display/draw_object/
spd_ui_draw_object__logfixticks.pro
Routines
top source spd_ui_draw_object::logFixTicks
spd_ui_draw_object::logFixTicks, range_in, tickValues=tickValues, tickInterval=tickInterval, minorTickNum=minorTickNum
spd_ui_draw_object method: logFixTicks It is sometimes the case that logarithmic axes end up with 1 or 0 ticks when more were requested. This routine attempts to fix this problem It does this by using a little trick of the change of base formula. Essentially, if ticks are evenly spaced in base-2 log, then they will be evenly spaced in another base. So if the goodTick algorithm couldn't find ticks at 1x10^1,1x10^2,... This algorithm may find ticks at, 5,10,20,40 $LastChangedBy: jimm $ $LastChangedDate: 2014-02-11 10:54:32 -0800 (Tue, 11 Feb 2014) $ $LastChangedRevision: 14326 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/spedas/gui/display/draw_object/spd_ui_draw_object__logfixticks.pro $
Parameters
- range_in
Keywords
- tickValues
- tickInterval
- minorTickNum
File attributes
Modification date: | Thu Feb 13 16:41:36 2014 |
Lines: | 50 |