@@ -509,8 +509,8 @@ function autoShiftMonthBins(binStart, data, dtick, dataMin, calendar) {
509
509
// ----------------------------------------------------
510
510
511
511
// ensure we have tick0, dtick, and tick rounding calculated
512
- axes . prepTicks = function ( ax ) {
513
- var rng = Lib . simpleMap ( ax . range , ax . r2l ) ;
512
+ axes . prepTicks = function ( ax , opts ) {
513
+ var rng = Lib . simpleMap ( ax . range , ax . r2l , undefined , undefined , opts ) ;
514
514
515
515
// calculate max number of (auto) ticks to display based on plot size
516
516
if ( ax . tickmode === 'auto' || ! ax . dtick ) {
@@ -563,16 +563,16 @@ axes.prepTicks = function(ax) {
563
563
// if ticks are set to automatic, determine the right values (tick0,dtick)
564
564
// in any case, set tickround to # of digits to round tick labels to,
565
565
// or codes to this effect for log and date scales
566
- axes . calcTicks = function calcTicks ( ax ) {
567
- axes . prepTicks ( ax ) ;
568
- var rng = Lib . simpleMap ( ax . range , ax . r2l ) ;
566
+ axes . calcTicks = function calcTicks ( ax , opts ) {
567
+ axes . prepTicks ( ax , opts ) ;
568
+ var rng = Lib . simpleMap ( ax . range , ax . r2l , undefined , undefined , opts ) ;
569
569
570
570
// now that we've figured out the auto values for formatting
571
571
// in case we're missing some ticktext, we can break out for array ticks
572
572
if ( ax . tickmode === 'array' ) return arrayTicks ( ax ) ;
573
573
574
574
// find the first tick
575
- ax . _tmin = axes . tickFirst ( ax ) ;
575
+ ax . _tmin = axes . tickFirst ( ax , opts ) ;
576
576
577
577
// add a tiny bit so we get ticks which may have rounded out
578
578
var exRng = expandRange ( rng ) ;
@@ -962,9 +962,9 @@ axes.tickIncrement = function(x, dtick, axrev, calendar) {
962
962
} ;
963
963
964
964
// calculate the first tick on an axis
965
- axes . tickFirst = function ( ax ) {
965
+ axes . tickFirst = function ( ax , opts ) {
966
966
var r2l = ax . r2l || Number ;
967
- var rng = Lib . simpleMap ( ax . range , r2l ) ;
967
+ var rng = Lib . simpleMap ( ax . range , r2l , undefined , undefined , opts ) ;
968
968
var axrev = rng [ 1 ] < rng [ 0 ] ;
969
969
var sRound = axrev ? Math . floor : Math . ceil ;
970
970
// add a tiny extra bit to make sure we get ticks
0 commit comments