Émilie Feral
|
4bca330f0d
|
[python] Coding style
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
0811221943
|
[python] Clean port ColorParser
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
7c24f2fc28
|
[python] Coding style
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
ba15415847
|
[python] modturtle: avoid unexpected cast
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
686a1493e5
|
[python] Coding style
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
e7df25d558
|
[python] Kandinsky module: color accepts "#FF0000", "red" kinds of
arguments
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
af0cdbcc1b
|
Coding style
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
1b0b9e48f5
|
[python] ColorParser: add a TODO
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
8f5fa50f22
|
[python] Color: avoid magic number 255, clean code of ColorParser and
Turtle::colormode
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
c920df1f76
|
[python] Change enum class name: ColorModes --> ColorMode
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
995cc04533
|
[python] Use of mp_obj_is_str instead of MP_OBJ_IS_STR for more
consistency
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
a564efcaa5
|
[python] Fix bug in ParseColor
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
3d1b3f9a0b
|
[python] Factorize implementation of pencode (Turtle module)
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
f5e8d4d9bb
|
[python] Avoid modifying micropython external source, use parsenum.h methods directly
|
2020-04-30 14:12:32 +02:00 |
|
Joachim LF
|
e76abcf67e
|
[Python] universal colors
|
2020-04-30 14:12:32 +02:00 |
|
Émilie Feral
|
61399d07eb
|
[python] Turtle: use std::fabs std::copysign when possible
|
2020-04-16 09:44:37 +02:00 |
|
Joachim LF
|
c15bb3d893
|
Negative diameter circle turtle support
|
2020-04-15 06:15:28 -07:00 |
|
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 |
|
Romain Goyet
|
8a43b17df9
|
[python] Reorder QSTRs to match an implicit assertion in uPy
In py/scope.c, an assertion is made that some qstrs should be "low".
Let's make sure it is indeed the case.
Note: https://github.com/micropython/micropython/pull/5903
|
2020-04-14 01:17:25 -07:00 |
|
Neven Sajko
|
dd6a729f65
|
Better usage of some floating point constants
|
2020-04-09 13:58:56 +02:00 |
|
Émilie Feral
|
7df8c2935a
|
[python] upgrade to micropython 1.12
|
2020-04-07 11:28:32 +02:00 |
|
Émilie Feral
|
010fb1894f
|
[python] Remove mpversion useless header
|
2020-04-07 11:28:32 +02: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
|
190802aa23
|
[python] Remove unused duplicate file
|
2020-04-06 12:30:52 +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
|
2738d30684
|
[python] test: check wether script execution lead to a Python error
|
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 |
|