Skip to content

Commit 62ee0d3

Browse files
authored
Merge pull request #19 from soblin/develop
Develop
2 parents dc423d4 + c2dd704 commit 62ee0d3

34 files changed

+13
-186
lines changed

gallery/artist_animation/animate_decay.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/animation/animate_decay.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85
#include <matplotlibcpp17/animation.h>
96

107
#include <vector>
11-
#include <algorithm>
12-
#include <string>
138

14-
namespace py = pybind11;
15-
using namespace py::literals;
169
using namespace std;
1710
using namespace matplotlibcpp17;
1811
using matplotlibcpp17::animation::ArtistAnimation;

gallery/artist_animation/cla_pause.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
#include <pybind11/embed.h>
2-
#include <pybind11/stl.h>
3-
41
#include <matplotlibcpp17/pyplot.h>
52

63
#include <vector>
7-
#include <algorithm>
8-
#include <string>
94

10-
namespace py = pybind11;
11-
using namespace py::literals;
125
using namespace std;
136
using namespace matplotlibcpp17;
147

gallery/artist_animation/random_walk.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// example from https://matplotlib.org/stable/gallery/animation/random_walk.html
22

3-
#include <pybind11/embed.h>
4-
#include <pybind11/stl.h>
5-
63
#include <matplotlibcpp17/pyplot.h>
74
#include <matplotlibcpp17/animation.h>
85

@@ -12,8 +9,6 @@
129

1310
#include <vector>
1411

15-
namespace py = pybind11;
16-
using namespace py::literals;
1712
using namespace std;
1813
using namespace matplotlibcpp17;
1914
using matplotlibcpp17::animation::ArtistAnimation;

gallery/images_contours_and_fields/quiver_demo.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/images_contours_and_fields/quiver_demo.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85
#include <matplotlibcpp17/quiver.h>
96

@@ -13,8 +10,6 @@
1310
#include <vector>
1411
#include <string>
1512

16-
namespace py = pybind11;
17-
using namespace py::literals;
1813
using namespace std;
1914
using namespace matplotlibcpp17;
2015

gallery/lines_bars_and_markers/bar_label_demo.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/lines_bars_and_markers/bar_label_demo.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85

96
#include <algorithm>
107
#include <vector>
118
#include <iomanip>
12-
#include <iostream>
13-
14-
namespace py = pybind11;
15-
using namespace py::literals;
169

1710
using namespace std;
18-
1911
using namespace matplotlibcpp17;
2012

2113
int main1() {

gallery/lines_bars_and_markers/errorbar_limits_simple.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
// example
22
// https://matplotlib.org/stable/gallery/lines_bars_and_markers/errorbar_limits_simple.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85

96
#include <xtensor/xbuilder.hpp>
107
#include <xtensor/xmath.hpp>
118

129
#include <vector>
1310

14-
namespace py = pybind11;
15-
using namespace py::literals;
1611
using namespace std;
1712
using namespace matplotlibcpp17;
1813

gallery/lines_bars_and_markers/errorbar_subsample.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/lines_bars_and_markers/errorbar_subsample.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85

96
#include <xtensor/xbuilder.hpp>
107
#include <xtensor/xmath.hpp>
118

129
#include <vector>
1310

14-
namespace py = pybind11;
15-
using namespace py::literals;
1611
using namespace std;
1712
using namespace matplotlibcpp17;
1813

gallery/lines_bars_and_markers/fill.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/lines_bars_and_markers/fill.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85

96
#include <xtensor/xarray.hpp>
107

118
#include <vector>
129

13-
namespace py = pybind11;
14-
using namespace py::literals;
1510
using namespace std;
1611
using namespace matplotlibcpp17;
1712

gallery/lines_bars_and_markers/fill_between_demo.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/lines_bars_and_markers/fill_between_demo.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85

96
#include <xtensor/xbuilder.hpp>
107
#include <xtensor/xarray.hpp>
118
#include <xtensor/xio.hpp>
129

1310
#include <vector>
14-
#include <iostream>
15-
#include <iterator>
1611
#include <algorithm>
1712

18-
namespace py = pybind11;
19-
using namespace py::literals;
2013
using namespace std;
2114
using namespace matplotlibcpp17;
2215

gallery/lines_bars_and_markers/fill_betweenx_demo.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/lines_bars_and_markers/fill_betweenx_demo.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85

96
#include <xtensor/xbuilder.hpp>
107
#include <xtensor/xarray.hpp>
118

129
#include <vector>
1310

14-
namespace py = pybind11;
15-
using namespace py::literals;
1611
using namespace std;
1712
using namespace matplotlibcpp17;
1813

gallery/lines_bars_and_markers/scatter_hist.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/lines_bars_and_markers/scatter_hist.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85

96
#include <xtensor/xrandom.hpp>
@@ -12,8 +9,6 @@
129
#include <vector>
1310
#include <algorithm>
1411

15-
namespace py = pybind11;
16-
using namespace py::literals;
1712
using namespace std;
1813
using namespace matplotlibcpp17;
1914

gallery/lines_bars_and_markers/scatter_symbol.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/lines_bars_and_markers/scatter_symbol.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85

9-
#include <algorithm>
106
#include <vector>
117
#include <string>
128

13-
namespace py = pybind11;
14-
using namespace py::literals;
15-
169
template <typename T> std::vector<T> arange(T start, T end, T h) {
1710
int N = static_cast<int>((end - start) / h);
1811
std::vector<T> xs(N);

gallery/lines_bars_and_markers/scatter_with_legend.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/lines_bars_and_markers/scatter_with_legend.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85

96
#include <xtensor/xrandom.hpp>
107
#include <xtensor/xview.hpp>
118

129
#include <vector>
1310

14-
namespace py = pybind11;
15-
using namespace py::literals;
1611
using namespace std;
1712
using namespace matplotlibcpp17;
1813

gallery/lines_bars_and_markers/simple_plot.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/lines_bars_and_markers/simple_plot.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
74
#include <matplotlibcpp17/pyplot.h>
85

96
#include <xtensor/xbuilder.hpp>
107
#include <xtensor/xmath.hpp>
118

129
#include <vector>
1310

14-
namespace py = pybind11;
15-
using namespace py::literals;
1611
using namespace std;
1712
using namespace matplotlibcpp17;
1813

gallery/mplot3d/contour3d.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
// example https://matplotlib.org/stable/gallery/mplot3d/contour3d.html
22

3-
#include <pybind11/embed.h>
4-
#include <pybind11/stl.h>
5-
63
#include <matplotlibcpp17/pyplot.h>
74

85
#include <xtensor/xbuilder.hpp>
96
#include <xtensor/xmath.hpp>
10-
#include <xtensor/xio.hpp>
11-
#include <xtensor/xadapt.hpp>
127

138
#include <vector>
149

15-
namespace py = pybind11;
16-
using namespace py::literals;
1710
using namespace std;
1811
using namespace matplotlibcpp17;
1912

gallery/mplot3d/errorbar3d.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// example from https://matplotlib.org/stable/gallery/mplot3d/errorbar3d.html
22

3-
#include <pybind11/embed.h>
4-
#include <pybind11/stl.h>
5-
63
#include <matplotlibcpp17/pyplot.h>
74

85
#include <xtensor/xbuilder.hpp>
@@ -11,8 +8,6 @@
118
#include <vector>
129
#include <algorithm>
1310

14-
namespace py = pybind11;
15-
using namespace py::literals;
1611
using namespace std;
1712
using namespace matplotlibcpp17;
1813

gallery/mplot3d/lines3d.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
// example from https://matplotlib.org/stable/gallery/mplot3d/lines3d.html
22

3-
#include <pybind11/embed.h>
4-
#include <pybind11/stl.h>
5-
63
#include <matplotlibcpp17/pyplot.h>
74

85
#include <xtensor/xbuilder.hpp>
96
#include <xtensor/xmath.hpp>
107

118
#include <vector>
129

13-
namespace py = pybind11;
14-
using namespace py::literals;
1510
using namespace std;
1611
using namespace matplotlibcpp17;
1712

gallery/mplot3d/lorenz_attractor.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/mplot3d/lorenz_attractor.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
64
#include <matplotlibcpp17/pyplot.h>
7-
#include <algorithm>
5+
86
#include <vector>
9-
#include <tuple>
107

11-
namespace py = pybind11;
12-
using namespace py::literals;
138
using namespace std;
149
using namespace matplotlibcpp17;
1510

gallery/mplot3d/subplot3d.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// example https://matplotlib.org/stable/gallery/mplot3d/subplot3d.html
22

3-
#include <pybind11/embed.h>
4-
#include <pybind11/stl.h>
5-
#include <pybind11/numpy.h>
6-
73
#include <matplotlibcpp17/pyplot.h>
84
#include <matplotlibcpp17/cm.h>
95

@@ -12,8 +8,6 @@
128

139
#include <vector>
1410

15-
namespace py = pybind11;
16-
using namespace py::literals;
1711
using namespace std;
1812
using namespace matplotlibcpp17;
1913

gallery/mplot3d/surface3d.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// example from https://matplotlib.org/stable/gallery/mplot3d/surface3d.html
22

3-
#include <pybind11/embed.h>
4-
#include <pybind11/stl.h>
5-
#include <pybind11/numpy.h>
6-
73
#include <matplotlibcpp17/pyplot.h>
84
#include <matplotlibcpp17/cm.h>
95

@@ -12,8 +8,6 @@
128

139
#include <vector>
1410

15-
namespace py = pybind11;
16-
using namespace py::literals;
1711
using namespace std;
1812
using namespace matplotlibcpp17;
1913

gallery/shapes_and_collections/patch_collection.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
// example from
22
// https://matplotlib.org/stable/gallery/shapes_and_collections/patch_collection.html
33

4-
#include <pybind11/embed.h>
5-
#include <pybind11/stl.h>
6-
#include <pybind11/numpy.h>
7-
84
#include <matplotlibcpp17/pyplot.h>
95
#include <matplotlibcpp17/patches.h>
106

117
#include <xtensor/xrandom.hpp>
128

139
#include <vector>
1410

15-
namespace py = pybind11;
16-
using namespace py::literals;
1711
using namespace std;
1812
using namespace matplotlibcpp17::patches;
1913
using namespace matplotlibcpp17;

0 commit comments

Comments
 (0)