alandefreitas / matplotplusplus

Matplot++: A C++ Graphics Library for Data Visualization 📊🗾
https://alandefreitas.github.io/matplotplusplus/
MIT License
4.11k stars 313 forks source link

Fix large numbers and add timestamp support #273

Closed TheGreatRambler closed 1 year ago

TheGreatRambler commented 2 years ago

Fixes using large number for ticks and adds support for rendering timestamps in, for example, xticks

TheGreatRambler commented 2 years ago

Just a note, what seem like formatting issues are actually the result of your own .clang-format file, for example some lines were changed because you have an 80 character column limit and you probably haven't touched these files since you added the column limit

TheGreatRambler commented 2 years ago

Okay so the dumb terminal should be removed entirely (though you do explicitly support the dumb terminal so this is sorta a bugfix), and ss.precision is probably not required (though ss << std::fixed is absolutely required to support large numbers)

TheGreatRambler commented 2 years ago

I should mention this explicitely as well, the issue I was referring to was large numbers being converted to scientific notation by default, which is somewhat annoying especially in the y axis

alandefreitas commented 1 year ago

TheGreatRambler commented 1 year ago

Glad it was useful! Got a bit preoccupied on other code, because of the font issue I shelved this project