Skip to content

Commit bca20fb

Browse files
rmburgandrei-ng
authored andcommitted
Update docs
1 parent b2af8c4 commit bca20fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/book/src/recipes/scientific_charts/contour_plots.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ fn customizing_size_and_range_of_a_contour_plots_contours(show: bool) {
113113
let trace = Contour::new_z(z)
114114
.color_scale(ColorScale::Palette(ColorScalePalette::Jet))
115115
.auto_contour(false)
116-
.contours(Contours::new().start(0.0).end(8.0).size(2));
116+
.contours(Contours::new().start(0.0).end(8.0).size(2.0));
117117

118118
let layout = Layout::new().title(Title::with_text("Customizing Size and Range of Contours"));
119119
let mut plot = Plot::new();
@@ -136,7 +136,7 @@ fn customizing_size_and_range_of_a_contour_plots_contours(show: bool) {
136136
if (document.getElementById("customizing_size_and_range_of_a_contour_plots_contours")) {
137137
var d3 = Plotly.d3;
138138
var image_element= d3.select('#image-export');
139-
var trace_0 = {"type":"contour","z":[[10.0,10.625,12.5,15.625,20.0],[5.625,6.25,8.125,11.25,15.625],[2.5,3.125,5.0,8.125,12.5],[0.625,1.25,3.125,6.25,10.625],[0.0,0.625,2.5,5.625,10.0]],"colorscale":"Jet","autocontour":false,"contours":{"start":0.0,"end":8.0,"size":2}};
139+
var trace_0 = {"type":"contour","z":[[10.0,10.625,12.5,15.625,20.0],[5.625,6.25,8.125,11.25,15.625],[2.5,3.125,5.0,8.125,12.5],[0.625,1.25,3.125,6.25,10.625],[0.0,0.625,2.5,5.625,10.0]],"colorscale":"Jet","autocontour":false,"contours":{"start":0.0,"end":8.0,"size":2.0}};
140140
var data = [trace_0];
141141
var layout = {"title":{"text":"Customizing Size and Range of Contours"}};
142142
Plotly.newPlot('customizing_size_and_range_of_a_contour_plots_contours', data, layout, {"responsive": true});

0 commit comments

Comments
 (0)