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

Logarithm plot #291

Closed maurokenny closed 2 years ago

maurokenny commented 3 years ago

Hello,

What is the correct way to change the x and y axes to logarithm?

Thanks,

38 commented 2 years ago

Hi sorry for the delay,

Please check the example https://github.com/plotters-rs/plotters/blob/93e65c43661e69dfbaa6f6b8893b53fadf4ca896/plotters/examples/tick_control.rs#L38

Use range.log_scale will change the plot to logarithm.

Closing the issue and feel free to reopen it or ask any further question.