alandefreitas / matplotplusplus

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

Values not showed and chart not centered when saving pie chart as jpg #409

Open BrianDelalex opened 3 months ago

BrianDelalex commented 3 months ago

I'm trying to save a pie chart into a jpg file. Using the code below :

using namespace matplot;
std::vector<double> x = { 1, 3, 0.5, 2.5, 2 };
pie(x);

save("test.jpg");
return 0;

The problems are that in the saved image the values aren't showed and that the chart isn't centered in the image (image linked below). test

Environment Details: