File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
examples/scientific_charts/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ fn customizing_size_and_range_of_a_contour_plots_contours() {
66
66
let trace = Contour :: new_z ( z)
67
67
. color_scale ( ColorScale :: Palette ( ColorScalePalette :: Jet ) )
68
68
. auto_contour ( false )
69
- . contours ( Contours :: new ( ) . start ( 0.0 ) . end ( 8.0 ) . size ( 2 ) ) ;
69
+ . contours ( Contours :: new ( ) . start ( 0.0 ) . end ( 8.0 ) . size ( 2.0 ) ) ;
70
70
71
71
let layout = Layout :: new ( ) . title ( "Customizing Size and Range of Contours" ) ;
72
72
let mut plot = Plot :: new ( ) ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ pub struct Contours {
53
53
r#type : Option < ContoursType > ,
54
54
start : Option < f64 > ,
55
55
end : Option < f64 > ,
56
- size : Option < usize > ,
56
+ size : Option < f64 > ,
57
57
coloring : Option < Coloring > ,
58
58
#[ serde( rename = "showlines" ) ]
59
59
show_lines : Option < bool > ,
@@ -522,7 +522,7 @@ mod tests {
522
522
. type_ ( ContoursType :: Levels )
523
523
. start ( 0.0 )
524
524
. end ( 10.0 )
525
- . size ( 5 )
525
+ . size ( 5.0 )
526
526
. coloring ( Coloring :: HeatMap )
527
527
. show_lines ( true )
528
528
. show_labels ( false )
@@ -535,7 +535,7 @@ mod tests {
535
535
"type" : "levels" ,
536
536
"start" : 0.0 ,
537
537
"end" : 10.0 ,
538
- "size" : 5 ,
538
+ "size" : 5.0 ,
539
539
"coloring" : "heatmap" ,
540
540
"showlines" : true ,
541
541
"showlabels" : false ,
You can’t perform that action at this time.
0 commit comments