Skip to content

Commit 313301c

Browse files
committed
change plotsubtitle key to subtitle
1 parent 6701eee commit 313301c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/plots.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ plots.supplyDefaults = function(gd, opts) {
316316
// When editable=false the two behave the same, no title is drawn.
317317
newFullLayout._dfltTitle = {
318318
plot: _(gd, 'Click to enter Plot title'),
319-
plotsubtitle: _(gd, 'Click to enter Plot subtitle'),
319+
subtitle: _(gd, 'Click to enter Plot subtitle'),
320320
x: _(gd, 'Click to enter X axis title'),
321321
y: _(gd, 'Click to enter Y axis title'),
322322
colorbar: _(gd, 'Click to enter Colorscale title'),
@@ -1495,7 +1495,7 @@ plots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {
14951495
coerce('title.y');
14961496
coerce('title.yanchor');
14971497

1498-
coerce('title.subtitle.text', layoutOut._dfltTitle.plotsubtitle);
1498+
coerce('title.subtitle.text', layoutOut._dfltTitle.subtitle);
14991499
Lib.coerceFont(coerce, 'title.subtitle.font', font, {
15001500
overrideDflt: {
15011501
size: Math.round(layoutOut.title.font.size * 0.7)

0 commit comments

Comments
 (0)