8000 add subplot to build list · Cryoris/matplotlib-cpp@f1f39a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit f1f39a5

Browse files
committed
add subplot to build list
1 parent 55d8977 commit f1f39a5

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

Makefile

Lines changed: 12 additions & 5 deletions
< 8000 colgroup>
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
# 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
36

47
# 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
69

710
# Link your python version
8-
linkings = -lpython2.7
11+
linkings = -lpython3.7
912

1013
# Compiler definitions
1114
definitions = -std=c++11
1215

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
1417

1518
minimal: examples/minimal.cpp matplotlibcpp.h
1619
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}
1721

1822
basic: examples/basic.cpp matplotlibcpp.h
1923
cd examples && g++ basic.cpp ${includes} ${linkings} -o basic ${definitions}
@@ -39,6 +43,9 @@ bar: examples/bar.cpp matplotlibcpp.h
3943
surface: examples/surface.cpp matplotlibcpp.h
4044
cd examples && g++ surface.cpp ${includes} ${linkings} -o surface ${definitions}
4145

46+
subplot: examples/subplot.cpp matplotlibcpp.h
47+
cd examples && g++ subplot.cpp ${includes} ${linkings} -o subplot ${definitions}
48+
4249
fill_inbetween: examples/fill_inbetween.cpp matplotlibcpp.h
4350
cd examples && g++ fill_inbetween.cpp ${includes} ${linkings} -o fill_inbetween ${definitions}
4451

@@ -49,4 +56,4 @@ update: examples/update.cpp matplotlibcpp.h
4956
cd examples && g++ update.cpp ${includes} ${linkings} -o update ${definitions}
5057

5158
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

Comments
 (0)
0