Thanks to visit codestin.com
Credit goes to github.com

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

+9-8
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)