We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3deedea commit 954b3e5Copy full SHA for 954b3e5
1 file changed
examples/minimal.cpp
@@ -5,8 +5,8 @@ namespace plt = matplotlibcpp;
5
6
int main() {
7
// plot(y) - the x-coordinates are implicitly set to [0,1,...,n)
8
- // plt::plot({1, 2, 3, 4});
9
- std::vector<double> y = {1, 2, 3, 4};
10
- plt::plot(y);
+ // note, that plot({..}, {..}) is not supported due to the ambiguous cast
+ // of {..} to either std::string or std::vector
+ plt::plot({1, 3, 2, 4});
11
plt::savefig("minimal.pdf");
12
}
0 commit comments