diff --git a/ports/matplotplusplus/003-change-label-limit.patch b/ports/matplotplusplus/003-change-label-limit.patch new file mode 100644 index 00000000000000..d6b83504557a24 --- /dev/null +++ b/ports/matplotplusplus/003-change-label-limit.patch @@ -0,0 +1,22 @@ +diff --git a/source/matplot/axes_objects/matrix.cpp b/source/matplot/axes_objects/matrix.cpp +index c16f159..7310c7c 100644 +--- a/source/matplot/axes_objects/matrix.cpp ++++ b/source/matplot/axes_objects/matrix.cpp +@@ -122,7 +122,7 @@ namespace matplot { + if (always_hide_labels_ || matrices_.size() > 1) { + return false; + } else { +- return matrices_[0].size() < 100 && matrices_[0][0].size() < 100; ++ return matrices_[0].size() < 1000 && matrices_[0][0].size() < 1000; + } + } + +@@ -275,7 +275,7 @@ namespace matplot { + + std::string matrix::image_data_string() { + std::stringstream ss; +- ss.precision(10); ++ ss.precision(1); + ss << std::fixed; + auto [h, w] = size(matrices_[0]); + double x_width_ = x_width(); diff --git a/ports/matplotplusplus/portfile.cmake b/ports/matplotplusplus/portfile.cmake index 8af9f383724baf..e25bdec7a2d885 100644 --- a/ports/matplotplusplus/portfile.cmake +++ b/ports/matplotplusplus/portfile.cmake @@ -13,7 +13,7 @@ vcpkg_from_github( SHA512 8ecb13fa206ff6762dec74c4de0778bf275e1ebf11ec1b48e8c0e544cf2990220e1be2b3bc9c658f06cb6714c9cc103fa81f10c079a32128218ebdaf265514d5 HEAD_REF master PATCHES - fix-dependencies.patch 001-fix-heatmap-labels.patch 002-change-precision.patch + fix-dependencies.patch 001-fix-heatmap-labels.patch 002-change-precision.patch 003-change-label-limit.patch ) vcpkg_check_features(