Gip-Gip / egui-plotter

Simple to use utilties for integrating plotter into egui
MIT License
48 stars 22 forks source link

axis labels don't display properly #5

Closed bananaturtlesandwich closed 1 year ago

bananaturtlesandwich commented 1 year ago

Hello! Thank you for the crate, it came around at a great time and is wonderful to work with Unfortunately though I did find an issue with axis labels in that the y-axis label is not rotated and the x isn't there (?) I'll try to have a look myself but I'll put this here if I don't know

bananaturtlesandwich commented 1 year ago

okay I looked at the draw_text implementation and it currently doesn't use rotation and anchor - just fixed anchor over here https://github.com/bananaturtlesandwich/egui-plotter so x axis text is working now but rotation still needs some time since instead have to use TextShape

bananaturtlesandwich commented 1 year ago

Ok looks like rotation plays weirdly with anchor so I'll look at that tomoz

Gip-Gip commented 1 year ago

Will look at it later today, sorry been busy with other life things. Thanks for contributing!

bananaturtlesandwich commented 1 year ago

I have a pr open that fixes it btw if you want to look at that

Gip-Gip commented 1 year ago

I have a pr open that fixes it btw if you want to look at that

looking at it now, thanks again!