alandefreitas / matplotplusplus

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

Fix quiver scaling to respect user input #280

Closed acxz closed 2 years ago

acxz commented 2 years ago

This changes the scaling logic for quiver/quiver3 which respects the user input direction by making sure the scaling factor is the same for all directional vectors, u,v,w.

Coincidentally, fixes #279 as now the magnitude of the input direction is used to normalize instead of the max of the specific directional vector and the max of all cartesianal directions are used instead of axes specific.

alandefreitas commented 2 years ago

Nice!