plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.88k stars 281 forks source link

[BUG] Rotated labels overlap with the chart #551

Open SimonBrandner opened 8 months ago

SimonBrandner commented 8 months ago

Describe the bug

When drawing rotated axis labels (e.g. dates and times), they should not overlap with the chart -- their origin should not be at the center but at the top

image

Version Information

0.3.5

Additional info

See https://github.com/orgs/plotters-rs/discussions/466

Pierstoval commented 3 months ago

I have the same problem. I tried using .pos(Pos::new(HPos::Left, VPos::Top)) alongside the font transform, but it didn't do anything 😕