Skip to content

Commit e59b18f

Browse files
committed
Warn when title.y is being set to 1
1 parent c014702 commit e59b18f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plot_api/subroutines.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,9 @@ function getDflts(title) {
463463
}
464464

465465
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.")
468+
}
466469
title.y = titleY;
467470
title.yanchor = titleYanchor;
468471
}

0 commit comments

Comments
 (0)