Skip to content

Commit 035fbbb

Browse files
committed
update examples to use title.text
1 parent bff3849 commit 035fbbb

File tree

52 files changed

+265
-122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+265
-122
lines changed

_posts/plotly_js/scientific/carpet-contour/2017-05-16-add_contours.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
}
5151

5252
var layout = {
53-
title: "Cheater plot with 1d input",
53+
title: {
54+
text: "Cheater plot with 1d input"
55+
},
5456
margin: {
5557
t: 40, r: 30, b: 30, l: 30
5658
},

_posts/plotly_js/scientific/carpet-contour/2017-05-16-basic_contourcarpet.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
}
3030

3131
var layout = {
32-
title: "Cheater plot with 1d input",
32+
title: {
33+
text: "Cheater plot with 1d input"
34+
},
3335
margin: {
3436
t: 40, r: 30, b: 30, l: 30
3537
},

_posts/plotly_js/scientific/carpet-contour/2017-05-16-mulitple_contourcarpet.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
'right'
5454
},
5555
len: 0.75,
56-
title: "Pressure coefficient, c<sub>p</sub>"
56+
title: {
57+
text: "Pressure coefficient, c<sub>p</sub>"
58+
},
5759
},
5860
contours: {
5961
start: -1,
@@ -171,7 +173,9 @@
171173
range: [-3.800,3.800],
172174
showgrid: false
173175
},
174-
title: "Flow over a Karman-Trefftz airfoil",
176+
title: {
177+
text: "Flow over a Karman-Trefftz airfoil"
178+
},
175179
hovermode: "closest",
176180
margin: {
177181
r: 60,

_posts/plotly_js/scientific/carpet-scatter/2017-05-16-multiple_scattercarpet.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,22 @@
1919
],
2020
cheaterslope: 1,
2121
aaxis: {
22-
title: "a",
22+
title: {
23+
text: "a"
24+
},
2325
tickmode: "linear",
2426
dtick: 0.05,
2527
minorgridcount: 9
2628
},
2729
baxis: {
28-
title: "b",
30+
title: {
31+
text: "b"
32+
},
2933
tickmode: "linear",
3034
dtick: 0.5,
3135
minorgridcount: 9
3236
}
33-
}
37+
}
3438

3539
var trace2 = {
3640
type: "scattercarpet",
@@ -93,7 +97,9 @@
9397
var data = [trace1,trace2,trace3,trace4,trace5,trace6,trace7]
9498

9599
var layout = {
96-
title: "scattercarpet extrapolation, clipping, and smoothing",
100+
title: {
101+
text: "scattercarpet extrapolation, clipping, and smoothing"
102+
},
97103
hovermode: "closest"
98104
}
99105

_posts/plotly_js/scientific/contour/2015-08-10-basic-contour.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
];
1919

2020
var layout = {
21-
title: 'Basic Contour Plot'
21+
title: {
22+
text: 'Basic Contour Plot'
23+
}
2224
}
2325

2426
Plotly.newPlot('myDiv', data, layout);

_posts/plotly_js/scientific/contour/2015-08-12-color-bar-size-for-contour-plots.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
}];
2525

2626
var layout = {
27-
title: 'Colorbar Size for Contour Plots'
27+
title: {
28+
text: 'Colorbar Size for Contour Plots'
29+
}
2830
};
2931

3032
Plotly.newPlot('myDiv', data, layout);

_posts/plotly_js/scientific/contour/2015-08-12-color-bar-title.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
}];
2727

2828
var layout = {
29-
title: 'Colorbar with a Title'
29+
title: {
30+
text: 'Colorbar with a Title'
31+
}
3032
};
3133

3234
Plotly.newPlot('myDiv', data, layout);

_posts/plotly_js/scientific/contour/2015-08-12-colorscale-for-contour-plot.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
}];
1919

2020
var layout = {
21-
title: 'Colorscale for Contour Plot'
21+
title: {
22+
text: 'Colorscale for Contour Plot'
23+
}
2224
};
2325

2426
Plotly.newPlot('myDiv', data, layout);

_posts/plotly_js/scientific/contour/2015-08-12-connect-gaps-in-matrix-contour.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@
6969
var data = [trace1, trace2, trace3, trace4];
7070

7171
var layout = {
72-
title: 'Connect the Gaps Between Null Values in the Z Matrix',
72+
title: {
73+
text: 'Connect the Gaps Between Null Values in the Z Matrix'
74+
},
7375
xaxis: {domain: [0, 0.45],
7476
anchor: 'y1'},
7577
yaxis: {domain: [0.55, 1],

_posts/plotly_js/scientific/contour/2015-08-12-contour-lines.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
}];
2121

2222
var layout = {
23-
title: 'Contour Lines'
23+
title: {
24+
text: 'Contour Lines'
25+
}
2426
};
2527

2628
Plotly.newPlot('myDiv', data, layout);

0 commit comments

Comments
 (0)