-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathaxes.h
More file actions
743 lines (636 loc) · 25.6 KB
/
Copy pathaxes.h
File metadata and controls
743 lines (636 loc) · 25.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
/**
* @file axes.h
* @brief corresponding header for matplotlib.axes
**/
#pragma once
#include <tuple>
#include <vector>
#include <matplotlibcpp17/collections.h>
#include <matplotlibcpp17/common.h>
#include <matplotlibcpp17/container.h>
#include <matplotlibcpp17/legend.h>
#include <matplotlibcpp17/quiver.h>
#include <matplotlibcpp17/text.h>
#include <pybind11/pybind11.h>
namespace matplotlibcpp17::axes {
/**
* @brief Return type for hist()
**/
using HistType = std::tuple<std::vector<double>, std::vector<double>,
container::BarContainer>;
/**
* @brief A wrapper class for matplotlib.axes.Axes
**/
struct DECL_STRUCT_ATTR Axes : public BaseWrapper {
public:
Axes(const pybind11::object &axes) {
self = axes;
load_attrs();
}
Axes(pybind11::object &&axes) {
self = std::move(axes);
load_attrs();
}
// add_artist
ObjectWrapper add_artist(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// add_collection
ObjectWrapper add_collection(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// add_patch
ObjectWrapper add_patch(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// axhline
ObjectWrapper axhline(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// axvline
ObjectWrapper axvline(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// bar
container::BarContainer bar(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// bar_label
ObjectWrapper bar_label(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// barh
container::BarContainer barh(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// cla
ObjectWrapper cla(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// contour
ObjectWrapper contour(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// contourf
ObjectWrapper contourf(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// errorbar
ObjectWrapper errorbar(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// fill
ObjectWrapper fill(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// fill_between
ObjectWrapper fill_between(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// fill_betweenx
ObjectWrapper fill_betweenx(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// get_lines
ObjectWrapper get_lines(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// get_xaxis_transform
ObjectWrapper
get_xaxis_transform(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// get_xlim
std::tuple<double, double> get_xlim();
// get_xticklabels
std::vector<text::Text> get_xticklabels();
// grid
ObjectWrapper grid(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// hist
HistType hist(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// hist2d
ObjectWrapper hist2d(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// imshow
ObjectWrapper imshow(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// invert_yaxis
ObjectWrapper invert_yaxis(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// legend
legend::Legend legend(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// pcolormesh
collections::QuadMesh
pcolormesh(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// plot
ObjectWrapper plot(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// plot_surface
ObjectWrapper plot_surface(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// plot_wireframe
ObjectWrapper plot_wireframe(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// quiver
quiver::Quiver quiver(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// quiverkey
quiver::QuiverKey quiverkey(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// scatter
collections::PathCollection
scatter(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set
ObjectWrapper set(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_adjustable
ObjectWrapper set_adjustable(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_aspect
ObjectWrapper set_aspect(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_title
ObjectWrapper set_title(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_xlabel
ObjectWrapper set_xlabel(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_xlim
ObjectWrapper set_xlim(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_xscale
ObjectWrapper set_xscale(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_xticks
ObjectWrapper set_xticks(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_xticklabels
ObjectWrapper
set_xticklabels(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_ylabel
ObjectWrapper set_ylabel(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_ylim
ObjectWrapper set_ylim(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_yscale
ObjectWrapper set_yscale(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_yticks
ObjectWrapper set_yticks(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_zlabel
ObjectWrapper set_zlabel(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// set_zlim
ObjectWrapper set_zlim(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// text
ObjectWrapper text(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// tick_params
ObjectWrapper tick_params(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
// twinx
Axes twinx(const pybind11::tuple &args = pybind11::tuple(),
const pybind11::dict &kwargs = pybind11::dict());
private:
void load_attrs() {
// NOTE: only when called with projection='3d', `plot_surface`,
// `plot_wireframe`, `set_zlabel` prop exists.
try {
LOAD_FUNC_ATTR(plot_surface, self);
LOAD_FUNC_ATTR(plot_wireframe, self);
LOAD_FUNC_ATTR(set_zlabel, self);
LOAD_FUNC_ATTR(set_zlim, self);
INFO_MSG("Loaded Axes3D");
projection_3d = true;
} catch (...) {
projection_3d = false;
}
LOAD_FUNC_ATTR(add_artist, self);
LOAD_FUNC_ATTR(add_collection, self);
LOAD_FUNC_ATTR(add_patch, self);
LOAD_FUNC_ATTR(axhline, self);
LOAD_FUNC_ATTR(axvline, self);
LOAD_FUNC_ATTR(bar, self);
#if MATPLOTLIB_MINOR_VER_GTE_4
LOAD_FUNC_ATTR(bar_label, self);
#else
WARN_MSG("Not loading bar_label because matplotlib version is < 3.4.0");
#endif
LOAD_FUNC_ATTR(barh, self);
LOAD_FUNC_ATTR(cla, self);
LOAD_FUNC_ATTR(contour, self);
LOAD_FUNC_ATTR(contourf, self);
LOAD_FUNC_ATTR(errorbar, self);
LOAD_FUNC_ATTR(fill, self);
LOAD_FUNC_ATTR(fill_between, self);
LOAD_FUNC_ATTR(fill_betweenx, self);
LOAD_FUNC_ATTR(get_lines, self);
LOAD_FUNC_ATTR(get_xaxis_transform, self);
LOAD_FUNC_ATTR(get_xlim, self);
LOAD_FUNC_ATTR(get_xticklabels, self);
LOAD_FUNC_ATTR(grid, self);
LOAD_FUNC_ATTR(hist, self);
LOAD_FUNC_ATTR(hist2d, self);
LOAD_FUNC_ATTR(invert_yaxis, self);
LOAD_FUNC_ATTR(imshow, self);
LOAD_FUNC_ATTR(legend, self);
LOAD_FUNC_ATTR(pcolormesh, self);
LOAD_FUNC_ATTR(plot, self);
LOAD_FUNC_ATTR(quiver, self);
LOAD_FUNC_ATTR(quiverkey, self);
LOAD_FUNC_ATTR(scatter, self);
LOAD_FUNC_ATTR(set, self);
LOAD_FUNC_ATTR(set_adjustable, self);
LOAD_FUNC_ATTR(set_aspect, self);
LOAD_FUNC_ATTR(set_title, self);
LOAD_FUNC_ATTR(set_xlabel, self);
LOAD_FUNC_ATTR(set_xlim, self);
LOAD_FUNC_ATTR(set_xscale, self);
LOAD_FUNC_ATTR(set_xticks, self);
LOAD_FUNC_ATTR(set_xticklabels, self);
LOAD_FUNC_ATTR(set_ylabel, self);
LOAD_FUNC_ATTR(set_ylim, self);
LOAD_FUNC_ATTR(set_yscale, self);
LOAD_FUNC_ATTR(set_yticks, self);
LOAD_FUNC_ATTR(text, self);
LOAD_FUNC_ATTR(tick_params, self);
LOAD_FUNC_ATTR(twinx, self);
}
pybind11::object add_artist_attr;
pybind11::object add_collection_attr;
pybind11::object add_patch_attr;
pybind11::object axhline_attr;
pybind11::object axvline_attr;
pybind11::object bar_attr;
pybind11::object bar_label_attr;
pybind11::object barh_attr;
pybind11::object cla_attr;
pybind11::object contour_attr;
pybind11::object contourf_attr;
pybind11::object errorbar_attr;
pybind11::object fill_attr;
pybind11::object fill_between_attr;
pybind11::object fill_betweenx_attr;
pybind11::object get_lines_attr;
pybind11::object get_xaxis_transform_attr;
pybind11::object get_xlim_attr;
pybind11::object get_xticklabels_attr;
pybind11::object grid_attr;
pybind11::object hist_attr;
pybind11::object hist2d_attr;
pybind11::object invert_yaxis_attr;
pybind11::object imshow_attr;
pybind11::object legend_attr;
pybind11::object pcolormesh_attr;
pybind11::object plot_attr;
pybind11::object plot_surface_attr;
pybind11::object plot_wireframe_attr;
pybind11::object quiver_attr;
pybind11::object quiverkey_attr;
pybind11::object scatter_attr;
pybind11::object set_attr;
pybind11::object set_adjustable_attr;
pybind11::object set_aspect_attr;
pybind11::object set_title_attr;
pybind11::object set_xlabel_attr;
pybind11::object set_xlim_attr;
pybind11::object set_xscale_attr;
pybind11::object set_xticks_attr;
pybind11::object set_xticklabels_attr;
pybind11::object set_ylabel_attr;
pybind11::object set_ylim_attr;
pybind11::object set_yscale_attr;
pybind11::object set_yticks_attr;
pybind11::object set_zlabel_attr;
pybind11::object set_zlim_attr;
pybind11::object text_attr;
pybind11::object tick_params_attr;
pybind11::object twinx_attr;
// 3d
bool projection_3d;
};
// add_artist
inline ObjectWrapper Axes::add_artist(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = add_artist_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// add_collection
inline ObjectWrapper Axes::add_collection(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = add_collection_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// add_patch
inline ObjectWrapper Axes::add_patch(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = add_patch_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// axhline
inline ObjectWrapper Axes::axhline(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = axhline_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// axvline
inline ObjectWrapper Axes::axvline(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = axvline_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// bar
inline container::BarContainer Axes::bar(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object obj = bar_attr(*args, **kwargs);
return container::BarContainer(obj);
}
// bar_label
inline ObjectWrapper Axes::bar_label(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
#if MATPLOTLIB_MINOR_VER_GTE_4
pybind11::object ret = bar_label_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
#else
ERROR_MSG(
"Call to bar_label is invalid because matplotlib version is < 3.4.0");
std::exit(0);
#endif
}
// barh
inline container::BarContainer Axes::barh(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object obj = barh_attr(*args, **kwargs);
return container::BarContainer(obj);
}
// cla
inline ObjectWrapper Axes::cla(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = cla_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// contour
inline ObjectWrapper Axes::contour(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = contour_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// contourf
inline ObjectWrapper Axes::contourf(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = contourf_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// errorbar
inline ObjectWrapper Axes::errorbar(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
if (projection_3d) {
#if MATPLOTLIB_MINOR_VER_GTE_4
pybind11::object obj = errorbar_attr(*args, **kwargs);
return obj;
#else
ERROR_MSG("Call to errorbar with projection='3d' is invalid because "
"matplotlib version is < 3.4.0");
std::exit(0);
#endif
} else {
pybind11::object ret = errorbar_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
}
// fill
inline ObjectWrapper Axes::fill(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = fill_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// fill_between
inline ObjectWrapper Axes::fill_between(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = fill_between_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// fill_betweenx
inline ObjectWrapper Axes::fill_betweenx(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = fill_betweenx_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// get_lines
inline ObjectWrapper Axes::get_lines(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = get_lines_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// get_xaxis_transform
inline ObjectWrapper Axes::get_xaxis_transform(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = get_xaxis_transform_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// get_xlim
inline std::tuple<double, double> Axes::get_xlim() {
pybind11::list ret = get_xlim_attr();
double x1 = ret[0].cast<double>();
double x2 = ret[1].cast<double>();
return {x1, x2};
}
// get_xticklabels
inline std::vector<text::Text> Axes::get_xticklabels() {
pybind11::list ret = get_xticklabels_attr();
std::vector<text::Text> texts;
for (pybind11::size_t i = 0; i < ret.size(); ++i) {
texts.push_back(text::Text(ret[i]));
}
return texts;
}
// grid
inline ObjectWrapper Axes::grid(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = grid_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// hist
inline std::tuple<std::vector<double>, std::vector<double>,
container::BarContainer>
Axes::hist(const pybind11::tuple &args, const pybind11::dict &kwargs) {
pybind11::list ret = hist_attr(*args, **kwargs);
// parse N, bins, patches
pybind11::list N_obj = ret[0], bins_obj = ret[1];
pybind11::object patches_obj = ret[2];
std::vector<double> N, bins;
for (auto it = N_obj.begin(); it != N_obj.end(); it++) {
N.push_back(it->cast<double>());
}
for (auto it = bins_obj.begin(); it != bins_obj.end(); it++) {
bins.push_back(it->cast<double>());
}
return {N, bins, container::BarContainer(patches_obj)};
}
// hist2d
inline ObjectWrapper Axes::hist2d(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = hist2d_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// invert_yaxis
inline ObjectWrapper Axes::invert_yaxis(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = invert_yaxis_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// imshow
inline ObjectWrapper Axes::imshow(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = imshow_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// legend
inline legend::Legend Axes::legend(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object obj = legend_attr(*args, **kwargs);
return legend::Legend(obj);
}
// pcolormesh
inline collections::QuadMesh Axes::pcolormesh(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = pcolormesh_attr(*args, **kwargs);
return collections::QuadMesh(ret);
}
// plot
inline ObjectWrapper Axes::plot(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = plot_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// plot_surface
inline ObjectWrapper Axes::plot_surface(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = plot_surface_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// plot_wireframe
inline ObjectWrapper Axes::plot_wireframe(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = plot_wireframe_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// quiver
inline quiver::Quiver Axes::quiver(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object obj = quiver_attr(*args, **kwargs);
return quiver::Quiver(obj);
}
// quiverkey
inline quiver::QuiverKey Axes::quiverkey(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object obj = quiverkey_attr(*args, **kwargs);
return quiver::QuiverKey(obj);
}
// scatter
inline collections::PathCollection Axes::scatter(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object obj = scatter_attr(*args, **kwargs);
return collections::PathCollection(obj);
}
// set
inline ObjectWrapper Axes::set(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_adjustable
inline ObjectWrapper Axes::set_adjustable(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_adjustable_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_aspect
inline ObjectWrapper Axes::set_aspect(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_aspect_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_title
inline ObjectWrapper Axes::set_title(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_title_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_xlabel
inline ObjectWrapper Axes::set_xlabel(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_xlabel_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_xlim
inline ObjectWrapper Axes::set_xlim(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_xlim_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_xscale
inline ObjectWrapper Axes::set_xscale(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_xscale_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_xticks
inline ObjectWrapper Axes::set_xticks(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_xticks_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_xticklabels
inline ObjectWrapper Axes::set_xticklabels(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_xticklabels_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_ylabel
inline ObjectWrapper Axes::set_ylabel(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_ylabel_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_ylim
inline ObjectWrapper Axes::set_ylim(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_ylim_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_yscale
inline ObjectWrapper Axes::set_yscale(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_yscale_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_yticks
inline ObjectWrapper Axes::set_yticks(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_yticks_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_zlabel
inline ObjectWrapper Axes::set_zlabel(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_zlabel_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// set_zlim
inline ObjectWrapper Axes::set_zlim(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = set_zlim_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// text
inline ObjectWrapper Axes::text(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = text_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// tick_params
inline ObjectWrapper Axes::tick_params(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = tick_params_attr(*args, **kwargs);
return ObjectWrapper(std::move(ret));
}
// twinx
inline Axes Axes::twinx(const pybind11::tuple &args,
const pybind11::dict &kwargs) {
pybind11::object ret = twinx_attr(*args, **kwargs);
return Axes(ret);
}
} // namespace matplotlibcpp17::axes