Open pbdeuchler opened 1 year ago
Happened upon this bug while using plotters for a project. Would be nice to see it fixed!
If you set the Histogram margin to a small value, e.g. 0
, it works:
chart
.draw_series(
Histogram::vertical(&chart)
.margin(0) // This is the new line that I added
.style(RED.mix(0.5).filled())
.data(data_series),
)
.unwrap();
I think there needs to be an error for when the margin of the rectangle is bigger than its width which can cause some unexpected behavior (e.g. sometimes the rectangle is not drawn)
Describe the bug The SVGBackend with Histograms fails to draw the actual chart content and does so without errors. I believe there's something going on with the types, but i'm not sure.
To Reproduce This reproduces consistently:
Version Information
plotters = "^0.3.1"
rust nightly