Skip to content

Commit

Permalink
add titles
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeryStk committed Nov 18, 2024
1 parent a304a39 commit 26cf1bf
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
30 changes: 29 additions & 1 deletion davis_one/davis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,41 @@ id="gd"></div></div>
var data = [%3];
var layout = {
title: {
text:'Title'
},
xaxis: {
title: {
text: 'X'
},
},
yaxis: {
title: {
text: 'Y'
}
},
scene: {
xaxis: {
title: 'X',
},
yaxis: {
title: 'Y',
},
zaxis: {
title: '',
}
}
};
var config = {
editable: true,
showLink: true,
plotlyServerURL: "https://chart-studio.plotly.com"
};
Plotly.newPlot('gd', data, config);
Plotly.newPlot('gd', data, layout, config);
</script>
</body>
Expand Down
30 changes: 29 additions & 1 deletion plotly_maker/html_parts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,41 @@ id="gd"></div></div>
var data = [%3];
var layout = {
title: {
text:'Title'
},
xaxis: {
title: {
text: 'X'
},
},
yaxis: {
title: {
text: 'Y'
}
},
scene: {
xaxis: {
title: 'X',
},
yaxis: {
title: 'Y',
},
zaxis: {
title: '',
}
}
};
var config = {
editable: true,
showLink: true,
plotlyServerURL: "https://chart-studio.plotly.com"
};
Plotly.newPlot('gd', data, config);
Plotly.newPlot('gd', data, layout, config);
</script>
</body>
Expand Down

0 comments on commit 26cf1bf

Please sign in to comment.