File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3
3
var d3 = require ( '@plotly/d3' ) ;
4
4
var Registry = require ( '../registry' ) ;
5
5
var Plots = require ( '../plots/plots' ) ;
6
+ var Loggers = require ( '../lib/loggers' ) ;
6
7
7
8
var Lib = require ( '../lib' ) ;
8
9
var svgTextUtils = require ( '../lib/svg_text_utils' ) ;
@@ -463,8 +464,8 @@ function getDflts(title) {
463
464
}
464
465
465
466
function setDflts ( title , titleY , titleYanchor ) {
466
- if ( title . yref === 'paper' && title . y !== 0 && title . y !== 1 ) {
467
- console . warn ( 'title.automargin=true so resetting the supplied title.y value to 1.' ) ;
467
+ if ( title . yref === 'paper' && title . y !== 0 && title . y !== 1 && title . y !== 'auto' ) {
468
+ Loggers . warn ( 'title.automargin=true so resetting the supplied title.y value to 1.' ) ;
468
469
}
469
470
title . y = titleY ;
470
471
title . yanchor = titleYanchor ;
You can’t perform that action at this time.
0 commit comments