@@ -44,11 +44,11 @@ pub fn draw_x_axis(a: &axis::Axis, face_width: f64) -> node::element::Group {
4444 }
4545
4646 let label = node:: element:: Text :: new ( )
47- . set ( "x" , face_width/ 2. )
48- . set ( "y" , 30 )
49- . set ( "text-anchor" , "middle" )
50- . set ( "font-size" , 12 )
51- . add ( node:: Text :: new ( a. get_label ( ) ) ) ;
47+ . set ( "x" , face_width / 2. )
48+ . set ( "y" , 30 )
49+ . set ( "text-anchor" , "middle" )
50+ . set ( "font-size" , 12 )
51+ . add ( node:: Text :: new ( a. get_label ( ) ) ) ;
5252
5353 node:: element:: Group :: new ( )
5454 . add ( ticks)
@@ -91,12 +91,13 @@ pub fn draw_y_axis(a: &axis::Axis, face_height: f64) -> node::element::Group {
9191 }
9292
9393 let label = node:: element:: Text :: new ( )
94- . set ( "x" , -30 )
95- . set ( "y" , -( face_height/2. ) )
96- . set ( "text-anchor" , "middle" )
97- . set ( "font-size" , 12 )
98- . set ( "transform" , format ! ( "rotate(-90 {} {})" , -30 , -( face_height/2. ) ) )
99- . add ( node:: Text :: new ( a. get_label ( ) ) ) ;
94+ . set ( "x" , -30 )
95+ . set ( "y" , -( face_height / 2. ) )
96+ . set ( "text-anchor" , "middle" )
97+ . set ( "font-size" , 12 )
98+ . set ( "transform" ,
99+ format ! ( "rotate(-90 {} {})" , -30 , -( face_height / 2. ) ) )
100+ . add ( node:: Text :: new ( a. get_label ( ) ) ) ;
100101
101102 node:: element:: Group :: new ( )
102103 . add ( ticks)
@@ -136,10 +137,10 @@ pub fn draw_face_points(s: &scatter::Scatter,
136137 }
137138 scatter:: Marker :: Cross => {
138139 let path = node:: element:: path:: Data :: new ( )
139- . move_to ( ( x_pos- radius, y_pos- radius) )
140- . line_by ( ( radius* 2. , radius* 2. ) )
141- . move_by ( ( -radius* 2. , 0 ) )
142- . line_by ( ( radius* 2. , -radius* 2. ) )
140+ . move_to ( ( x_pos - radius, y_pos - radius) )
141+ . line_by ( ( radius * 2. , radius * 2. ) )
142+ . move_by ( ( -radius * 2. , 0 ) )
143+ . line_by ( ( radius * 2. , -radius * 2. ) )
143144 . close ( ) ;
144145 group. append ( node:: element:: Path :: new ( )
145146 . set ( "fill" , "none" )
0 commit comments