Skip to content

Commit 7f8b12d

Browse files
authored
Merge pull request #412 from plotters-rs/fix-evcxr
Fix evcxr feature without bitmap
2 parents fe3c377 + 7994b12 commit 7f8b12d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plotters/src/evcxr.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
use crate::coord::Shift;
22
use crate::drawing::{DrawingArea, IntoDrawingArea};
33
use plotters_backend::DrawingBackend;
4-
use plotters_bitmap::BitMapBackend;
54
use plotters_svg::SVGBackend;
65

6+
#[cfg(feature = "evcxr_bitmap")]
7+
use plotters_bitmap::BitMapBackend;
8+
79
/// The wrapper for the generated SVG
810
pub struct SVGWrapper(String, String);
911

@@ -44,7 +46,7 @@ pub fn evcxr_figure<
4446
}
4547

4648
/// Start drawing an evcxr figure
47-
#[cfg(all(feature = "evcxr_bitmap"))]
49+
#[cfg(feature = "evcxr_bitmap")]
4850
pub fn evcxr_bitmap_figure<
4951
Draw: FnOnce(DrawingArea<BitMapBackend, Shift>) -> Result<(), Box<dyn std::error::Error>>,
5052
>(

0 commit comments

Comments
 (0)