Skip to content

Commit

Permalink
fix: "pngcairo" should use size option (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
ino-josh authored Sep 18, 2023
1 parent 156001b commit a40344e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/matplot/backend/gnuplot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,9 @@ namespace matplot::backend {
// This includes only the size option with {width, height} and not
// the size option for cropping or scaling
SV_CONSTEXPR std::string_view whitelist[] = {
"qt", "aqua", "caca", "canvas", "eepic",
"emf", "gif", "jpeg", "pbm", "png",
"sixelgd", "tkcanvas", "windows", "wxt", "svg"};
"qt", "aqua", "caca", "canvas", "eepic", "emf",
"gif", "jpeg", "pbm", "png", "pngcairo", "sixelgd",
"tkcanvas", "windows", "wxt", "svg"};
return std::find(std::begin(whitelist), std::end(whitelist), t) !=
std::end(whitelist);
}
Expand Down

0 comments on commit a40344e

Please sign in to comment.