Commit Graph

21 Commits

Author SHA1 Message Date
Romain Goyet
644c44e069 Misc cleanups 2020-04-14 09:31:02 -04:00
Romain Goyet
950862f8d0 Use std::min and std::max 2020-04-14 09:31:02 -04:00
Romain Goyet
56f4b275a5 [python] Turn a warning into a error when appropriate 2020-04-14 01:17:25 -07:00
É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
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