lava / matplotlib-cpp

Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib
MIT License
4.28k stars 1.12k forks source link

Added 'set_aspect' and set_aspect_equal function #257

Closed pnarvor closed 3 years ago

pnarvor commented 3 years ago

Added a "set_aspect(Numeric ratio)" and "set_aspect_equal()" function.

Nothing too fancy. Respectively calls :

matplotlib.pyplot.gca().set_aspect(ratio)

and

matplotlib.pyplot.gca().set_aspect('equal')

I like the simplicity of your wrapper. Keep up the good work :)

lava commented 3 years ago

Thanks for contributing!