mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python] Stub a matplotlib module
This commit is contained in:
committed by
Émilie Feral
parent
2b73c4c9aa
commit
c99bed6922
17
python/port/mod/matplotlib/modpyplot.cpp
Normal file
17
python/port/mod/matplotlib/modpyplot.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
extern "C" {
|
||||
#include "modpyplot.h"
|
||||
}
|
||||
#include "port.h"
|
||||
#include "plot_controller.h"
|
||||
|
||||
Matplotlib::PlotController sPlotController;
|
||||
|
||||
mp_obj_t modpyplot_plot(mp_obj_t x, mp_obj_t y) {
|
||||
// Ensure x and y are arrays
|
||||
// "Push" x and y on bigger arrays
|
||||
}
|
||||
|
||||
mp_obj_t modpyplot_show() {
|
||||
MicroPython::ExecutionEnvironment * env = MicroPython::ExecutionEnvironment::currentExecutionEnvironment();
|
||||
env->displayViewController(&sPlotController);
|
||||
}
|
||||
Reference in New Issue
Block a user