File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
use crate :: coord:: Shift ;
2
2
use crate :: drawing:: { DrawingArea , IntoDrawingArea } ;
3
- use plotters_svg:: SVGBackend ;
4
3
use plotters_backend:: DrawingBackend ;
5
4
use plotters_bitmap:: BitMapBackend ;
5
+ use plotters_svg:: SVGBackend ;
6
6
7
7
/// The wrapper for the generated SVG
8
8
pub struct SVGWrapper ( String , String ) ;
@@ -71,7 +71,6 @@ pub fn evcxr_figure<
71
71
// }
72
72
// }
73
73
74
-
75
74
/// Start drawing an evcxr figure
76
75
#[ cfg( all( feature = "evcxr" , feature = "bitmap_backend" ) ) ]
77
76
pub fn evcxr_bitmap_figure <
@@ -88,8 +87,9 @@ pub fn evcxr_bitmap_figure<
88
87
let mut buffer = "" . to_string ( ) ;
89
88
{
90
89
let mut svg_root = SVGBackend :: with_string ( & mut buffer, size) ;
91
- svg_root. blit_bitmap ( ( 0 , 0 ) , size, & buf) . expect ( "Failure converting to SVG" ) ;
90
+ svg_root
91
+ . blit_bitmap ( ( 0 , 0 ) , size, & buf)
92
+ . expect ( "Failure converting to SVG" ) ;
92
93
}
93
94
SVGWrapper ( buffer. clone ( ) , "" . to_string ( ) )
94
95
}
95
-
You can’t perform that action at this time.
0 commit comments