[apps][python] ExecutionEnvironment handles hide sand display of sandbox

and plot controller the same way
This commit is contained in:
Émilie Feral
2020-03-20 13:38:27 +01:00
parent 51da01aa11
commit 659da1dff8
8 changed files with 81 additions and 71 deletions

View File

@@ -28,7 +28,7 @@ static size_t extract_and_validate_plot_input(mp_obj_t x, mp_obj_t y, mp_obj_t *
mp_obj_t modpyplot___init__() {
static Matplotlib::PlotStore plotStore;
static Matplotlib::PlotController plotController(&plotStore);
static Matplotlib::PlotController plotController(&plotStore, MicroPython::ExecutionEnvironment::currentExecutionEnvironment());
sPlotStore = &plotStore;
sPlotController = &plotController;
sPlotStore->flush();