You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,36 @@ A C++ wrapper of Qt Charts that looks, tastes and smells like [matplotlib](https
5
5
6
6
Madplotlib is a C++ header-only library that provides simple 2D plot capabilities, similar to [matplotlib](https://github.com/matplotlib/matplotlib) for Python. Madplotlib uses Qt Charts behind your back to render cool looking ~~cats~~ graphs that are easy to create with the help of [Eigen](eigen.tuxfamily.org).
7
7
8
+
Here is what it looks like:
9
+
10
+
```cpp
11
+
Eigen::ArrayXf a = Eigen::ArrayXf::LinSpaced(20, 0, 2000);
12
+
Eigen::ArrayXf b = Eigen::ArrayXf::LinSpaced(20, 0, 100);
13
+
Eigen::ArrayXf c = Eigen::ArrayXf::Zero(20);
14
+
15
+
b = b * b;
16
+
c = 1000;
17
+
18
+
Madplotlib plt;
19
+
plt.title("Test 5: Linear vs Exponential vs Flat");
0 commit comments