1
1
# Put the path to your Python.h here
2
- includes = -I/usr/include/python2.7
2
+ includes = -I /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/include/python3.7m
3
+
4
+ # Numpy include
5
+ includes += -I /usr/local/lib/python3.7/site-packages/numpy/core/include
3
6
4
7
# Add the path to the directory containing libpython*.a here if the linking fails
5
- # includes += -L/usr/share/lib/...
8
+ includes += -L /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib
6
9
7
10
# Link your python version
8
- linkings = -lpython2 .7
11
+ linkings = -lpython3 .7
9
12
10
13
# Compiler definitions
11
14
definitions = -std=c++11
12
15
13
- examples : minimal basic modern animation nonblock xkcd quiver bar surface fill_inbetween fill update
16
+ examples : minimal basic modern animation nonblock xkcd quiver bar surface subplot fill_inbetween fill update
14
17
15
18
minimal : examples/minimal.cpp matplotlibcpp.h
16
19
cd examples && g++ -DWITHOUT_NUMPY minimal.cpp ${includes} ${linking
8000
s} -o minimal ${definitions}
20
+ # cd examples && g++ minimal.cpp ${includes} ${linkings} -o minimal ${definitions}
17
21
18
22
basic : examples/basic.cpp matplotlibcpp.h
19
23
cd examples && g++ basic.cpp ${includes} ${linkings} -o basic ${definitions}
@@ -39,6 +43,9 @@ bar: examples/bar.cpp matplotlibcpp.h
39
43
surface : examples/surface.cpp matplotlibcpp.h
40
44
cd examples && g++ surface.cpp ${includes} ${linkings} -o surface ${definitions}
41
45
46
+ subplot : examples/subplot.cpp matplotlibcpp.h
47
+ cd examples && g++ subplot.cpp ${includes} ${linkings} -o subplot ${definitions}
48
+
42
49
fill_inbetween : examples/fill_inbetween.cpp matplotlibcpp.h
43
50
cd examples && g++ fill_inbetween.cpp ${includes} ${linkings} -o fill_inbetween ${definitions}
44
51
@@ -49,4 +56,4 @@ update: examples/update.cpp matplotlibcpp.h
49
56
cd examples && g++ update.cpp ${includes} ${linkings} -o update ${definitions}
50
57
51
58
clean :
52
- rm -f examples/{minimal,basic,modern,animation,nonblock,xkcd,quiver,bar,surface,fill_inbetween,fill,update}
59
+ rm -f examples/{minimal,basic,modern,animation,nonblock,xkcd,quiver,bar,surface,subplot, fill_inbetween,fill,update}
0 commit comments