Skip to content

Commit

Permalink
[matplotplusplus] Applies patch to fix label limit
Browse files Browse the repository at this point in the history
  • Loading branch information
liamnwhite1 committed Apr 29, 2024
1 parent 6df7b12 commit bb907c7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions ports/matplotplusplus/003-change-label-limit.patch
Original file line number Diff line number Diff line change
@@ -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();
2 changes: 1 addition & 1 deletion ports/matplotplusplus/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bb907c7

Please sign in to comment.