Skip to content

Commit fda674d

Browse files
committed
add note on keywords bug
1 parent 47f10ae commit fda674d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

examples/legend.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,19 @@ void bbox() {
2626
plt::show();
2727
}
2828

29-
void keywords() {
30-
plt::figure();
31-
plt::plot({1, 2, 3}, {{"label", "a line"}});
32-
plt::plot({1, 3, 5}, {{"label", "also a line"}});
33-
plt::legend("best", {{"borderpad", "0.2"}});
34-
plt::show();
35-
}
29+
// currently not working: only strings can be provided in the keyword arguments
30+
// void keywords() {
31+
// plt::figure();
32+
// plt::plot({1, 2, 3}, {{"label", "a line"}});
33+
// plt::plot({1, 3, 5}, {{"label", "also a line"}});
34+
// plt::legend("best", {{"borderpad", "0.2"}});
35+
// plt::show();
36+
// }
3637

3738
int main() {
3839
basic();
3940
loc();
4041
bbox();
41-
keywords();
42+
// keywords();
4243
return 0;
4344
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy