We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3e4a82 commit f994996Copy full SHA for f994996
README.md
@@ -13,7 +13,7 @@ Complete minimal example:
13
#include "matplotlibcpp.h"
14
namespace plt = matplotlibcpp;
15
int main() {
16
- plt::plot({1,2,3,4});
+ plt::plot({1,3,2,4});
17
plt::show();
18
}
19
```
examples/basic.cpp
@@ -1,4 +1,5 @@
1
#define _USE_MATH_DEFINES
2
+#include <iostream>
3
#include <cmath>
4
#include "../matplotlibcpp.h"
5
@@ -30,5 +31,7 @@ int main()
30
31
// Enable legend.
32
plt::legend();
33
// save figure
- plt::save("./basic.png");
34
+ const char* filename = "./basic.png";
35
+ std::cout << "Saving result to " << filename << std::endl;;
36
+ plt::save(filename);
37
examples/minimal.png
1.52 KB
0 commit comments