Skip to content

Commit a40344e

Browse files
authored
fix: "pngcairo" should use size option (#371)
1 parent 156001b commit a40344e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/matplot/backend/gnuplot.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,9 +399,9 @@ namespace matplot::backend {
399399
// This includes only the size option with {width, height} and not
400400
// the size option for cropping or scaling
401401
SV_CONSTEXPR std::string_view whitelist[] = {
402-
"qt", "aqua", "caca", "canvas", "eepic",
403-
"emf", "gif", "jpeg", "pbm", "png",
404-
"sixelgd", "tkcanvas", "windows", "wxt", "svg"};
402+
"qt", "aqua", "caca", "canvas", "eepic", "emf",
403+
"gif", "jpeg", "pbm", "png", "pngcairo", "sixelgd",
404+
"tkcanvas", "windows", "wxt", "svg"};
405405
return std::find(std::begin(whitelist), std::end(whitelist), t) !=
406406
std::end(whitelist);
407407
}

0 commit comments

Comments
 (0)