We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fe3c377 + 7994b12 commit 7f8b12dCopy full SHA for 7f8b12d
plotters/src/evcxr.rs
@@ -1,9 +1,11 @@
1
use crate::coord::Shift;
2
use crate::drawing::{DrawingArea, IntoDrawingArea};
3
use plotters_backend::DrawingBackend;
4
-use plotters_bitmap::BitMapBackend;
5
use plotters_svg::SVGBackend;
6
+#[cfg(feature = "evcxr_bitmap")]
7
+use plotters_bitmap::BitMapBackend;
8
+
9
/// The wrapper for the generated SVG
10
pub struct SVGWrapper(String, String);
11
@@ -44,7 +46,7 @@ pub fn evcxr_figure<
44
46
}
45
47
48
/// Start drawing an evcxr figure
-#[cfg(all(feature = "evcxr_bitmap"))]
49
50
pub fn evcxr_bitmap_figure<
51
Draw: FnOnce(DrawingArea<BitMapBackend, Shift>) -> Result<(), Box<dyn std::error::Error>>,
52
>(
0 commit comments