Émilie Feral
154625a945
[python] Fix warning: comparisons between signed and unsigned integers
2020-04-07 09:51:39 +02:00
Émilie Feral
c58456a058
[python] matplotlib: add comment WIP
2020-04-06 12:30:52 +02:00
Émilie Feral
b7392dbd95
[python] matplotlib: clean implementation (by using
...
mp_obj_float_binary_op)
2020-04-06 12:30:52 +02:00
Émilie Feral
190802aa23
[python] Remove unused duplicate file
2020-04-06 12:30:52 +02:00
Romain Goyet
84f6b179de
[build] rule_for now takes both "local" and "global" parameters
...
Previous the build would fail on macOS if you had an epsilon.elf file in
at the root of the project. Indeed, the %.elf -> %.bin rule would get
triggered, but this rule should only operate on generated (intermediate)
elf file.
2020-04-06 10:12:54 +02:00
Romain Goyet
a840e7fb05
[liba] Define SEEK_CUR
...
For some reason it was defined in Python and raised re-def errors
2020-04-06 09:51:04 +02:00
Émilie Feral
40986ebb99
[python] Change math module test to be true on all platforms
2020-04-01 16:39:59 +02:00
Émilie Feral
8a5af352bf
[python] Fix warning: signed/unsigned int comparison
2020-04-01 16:39:59 +02:00
Émilie Feral
cdff61f64b
[python] Add tests for each module
2020-04-01 16:39:59 +02:00
Émilie Feral
ec5803f06f
[python] Test: fix printText
2020-04-01 16:39:59 +02:00
Émilie Feral
d0a77bda2b
[python] Improve test API
2020-04-01 16:39:59 +02:00
Émilie Feral
ffb8f8f953
[python] Test: add all template scripts
2020-04-01 16:39:59 +02:00
Émilie Feral
11dc259566
[python] test: add a function to run single command test
2020-04-01 16:39:59 +02:00
Émilie Feral
d7804ad5d1
[python] Tidy matplotlib tests
2020-04-01 16:39:59 +02:00
Émilie Feral
2738d30684
[python] test: check wether script execution lead to a Python error
2020-04-01 16:39:59 +02:00
Émilie Feral
2f171eb2fd
[python] Add matplotlib test WIP
2020-04-01 16:39:59 +02:00
Émilie Feral
244b97e89b
[python] matplotlib: handle case plot([],[])
2020-04-01 10:18:09 +02:00
Émilie Feral
e5660635d6
[python] matplotlib: handle case hist([])
2020-04-01 10:18:09 +02:00
Émilie Feral
3987167419
[python] matplotlib: add comment
2020-04-01 10:18:09 +02:00
Émilie Feral
28224bd75e
[python] matplotlib: fix hist implementation
...
This fixes the following crash: input 'hist([1,2,100],[1,2]) on a Python
console with matplotlib.pyplot imported
2020-04-01 10:18:09 +02:00
Émilie Feral
bc1eae17d7
[python] matplotlib: change text() relative position to be similar to
...
python3
2020-04-01 10:18:09 +02:00
Émilie Feral
7c612f35a8
[python] matplotlib: change Store::Rectangle structure to (left, right,
...
top, bottom) and avoid rounding error when converting flaot rect to
pixel
2020-04-01 10:18:09 +02:00
Émilie Feral
d468f5e130
[python] WIP matplotlib: avoid empty pixel line between bars and axis
...
line
2020-04-01 10:18:09 +02:00
Émilie Feral
84bc46ca8c
[python] matplotlib: PlotView: improve rect drawing (use round instead
...
of truncating pixelFloat
2020-04-01 10:18:09 +02:00
Émilie Feral
b3b6565410
[python] modpyplot: show() does nothing when the store is empty
2020-04-01 10:18:09 +02:00
Émilie Feral
ce33faad11
[python] matplotlib: PlotView: rectangle are always visible despite the
...
pixel width
2020-04-01 10:18:09 +02:00
Émilie Feral
51eabf08e1
[python] matplotlib: fix PlotStore::initRange for an only dot
2020-04-01 10:18:09 +02:00
Émilie Feral
2c82460470
[python] matplotlib: add a comment to PlotView
2020-04-01 10:18:09 +02:00
Émilie Feral
b290bed409
[python] matplotlib: fix typo in ErrorValue
2020-04-01 10:18:09 +02:00
Émilie Feral
574eacb69c
[python] matplotlib: flush heap memory when any error is raised
2020-04-01 10:18:09 +02:00
Émilie Feral
61e7ec52e6
[python] matplotlib: make pyplot a submodule of matplotlib
2020-04-01 10:18:09 +02:00
Émilie Feral
7d5568ff1a
[python] WIP: change change pyplot name: pyplot --> matplotlib.pyplot
2020-04-01 10:18:09 +02:00
Émilie Feral
1c4f43c665
[python] matplotlib: handle empty range histogram
2020-04-01 10:18:09 +02:00
Émilie Feral
1c714a6ee6
[python] matplotlib: PlotStore checks for type before accepting a new object
...
This fixes the crash: when a non-float value is added through the
tupple, the next float extraction will fail
2020-04-01 10:18:09 +02:00
Émilie Feral
6d10e9fdc2
[python] matplotlib: improve and fix arguments checking
2020-04-01 10:18:09 +02:00
Émilie Feral
bf7c3b1aab
[python] matplotlib: implement "plot(y)'
2020-04-01 10:18:09 +02:00
Émilie Feral
dc58b9692f
[python] matplotlib: imporve 'hist'
2020-04-01 10:18:09 +02:00
Émilie Feral
1895b83251
[python] Remove useless code
2020-04-01 10:18:09 +02:00
Émilie Feral
f97f56c021
[python] matplotlib: improve 'bar' arguments acceptation
2020-04-01 10:18:09 +02:00
Émilie Feral
18d59d923a
[python] matplotlib: fix automatic range initialization
2020-04-01 10:18:09 +02:00
Émilie Feral
9a240bb0b4
[python] matplotlib: improve 'grid'
2020-04-01 10:18:09 +02:00
Émilie Feral
1b768ba34a
[python] modpyplot: improve 'axis' arguments acceptance
2020-04-01 10:18:09 +02:00
Émilie Feral
81170610eb
[python] Matplotlib: init store range depending on 'auto' parameter
2020-04-01 10:18:09 +02:00
Émilie Feral
8aa1930f80
[python] Matplotlib: handle 'auto' range computation
2020-04-01 10:18:09 +02:00
Émilie Feral
fb3f6ab6f3
[apps/code][python] ConsoleController doesn't keep any pointer/boolean to know
...
if the sandbox/matplotlib view controller is displayed. Its state won't be
always right; instead, use the StackViewController depth.
This fixes the following bug: when popping the sandbox/matplotlib view
controller, the first responder token was not given to the console
controller!
2020-04-01 10:18:09 +02:00
Émilie Feral
15e5f7a285
[python] Matplotlib: reload labels in PlotController::viewWillAppear
2020-04-01 10:18:09 +02:00
Émilie Feral
7e73afc654
[python] Matplotlib: flush the plot store when the controller is popped
2020-04-01 10:18:09 +02:00
Émilie Feral
24cd5079d4
[python] matplotlib: fix modpyplot_gc_collect
2020-04-01 10:18:08 +02:00
Émilie Feral
886fc98350
[escher] Palette: factorize data color iteration
2020-04-01 10:18:08 +02:00
Émilie Feral
c4847b22cc
Coding style
2020-04-01 10:18:08 +02:00