Commit Graph

57 Commits

Author SHA1 Message Date
Arthur Camouseigt
06dc97152c [matplotlib/modpyplot.cpp] Added support for keyword argument c, a shortcut for color
Change-Id: I89227a73fca6fd50ae190107fc23c3c7acadc6db
(cherry picked from commit bc642c2d8d105ed609cf8b4d86800879645afd7e)
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
41da4f2bd5 [matplotlib/modpyplot] Adding keyword argument support for arrow function
Arrow function can now take into account the following keywords arguements :
- head_width
- color

Change-Id: I205dcd5776d53a4efcbf1e6da4edf29d8e399cab
2020-06-04 14:50:09 +02:00
Joachim LF
e76abcf67e [Python] universal colors 2020-04-30 14:12:32 +02: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
É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
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
70335b7a47 [python] matplotlib port: draft version of arrow method 2020-04-01 10:18:08 +02:00
Émilie Feral
7d60c6554e [python] matplotlib port: first version of hist method 2020-04-01 10:18:08 +02:00
Émilie Feral
0ae81374d9 [python] matplotlib port: implement bar method 2020-04-01 10:18:08 +02:00
Romain Goyet
a062c570d5 [python/matplotlib] Add grid control 2020-04-01 10:18:08 +02:00
Romain Goyet
a3b1b51f75 [pyton/matplotlib] Support plot 2020-04-01 10:18:08 +02:00
Romain Goyet
a6773ad73b [python/matplotlib] Add Text, simplify Dots 2020-04-01 10:18:08 +02:00
Romain Goyet
6a796f5f7c [python] Add an "axis" function to the matplotlib module 2020-04-01 10:18:08 +02:00
Romain Goyet
c99bed6922 [python] Stub a matplotlib module 2020-04-01 10:18:08 +02:00
Émilie Feral
de74aa7e59 [python] Enable PYSTACK for emscripten platform: this "fixes" bug
probably due to gc_collect (we suspect that transpiled C does not have
access to javascript variables preventing it from collecting all
required roots and leading to deleting objects prematuraly). Enabling
PyStack reduces the use of the heap and fixes the bug.
2020-02-12 15:13:24 +01:00
Ruben Dashyan
389fbbca3a [python/port] Support for unicode strings 2020-01-06 15:15:19 +01:00
Romain Goyet
7607c4cba4 [python/modion] Use constants to identify keys 2019-11-19 10:08:16 +01:00
Romain Goyet
9d66b23848 [python] Add an ion module 2019-11-19 10:08:16 +01:00
Léa Saviot
c421cf709d [python] Generated moduledefs.h file 2019-08-21 11:13:13 +02:00
Léa Saviot
ff833536dd [python] Clean and update port/genhdr/qstrdefs.in.h 2019-08-21 10:58:26 +02:00
Léa Saviot
0975ba0f10 [python] Upgrade to micropython 1.11 2019-08-21 10:58:12 +02:00
Romain Goyet
926b96cafb [python/kandinsky] Expose the fill_rect method
Which allows for *much* faster graphics
2019-04-26 17:44:27 +02:00
Léa Saviot
3bd3e64e36 [python/turtle] Order the qstr 2018-12-11 14:42:04 +01:00
Léa Saviot
3249ccb695 [python/turtle] "back()" shortcut for "backwards()" 2018-12-10 14:31:44 +01:00
Léa Saviot
c8a5972243 [python/turtle] Turtle::circle(radius, angle) 2018-12-07 10:51:14 +01:00
Léa Saviot
cc3beb6014 [python/turtle] Turtle::reset() method 2018-12-06 17:26:43 +01:00
Romain Goyet
efaa87d36c Merge branch 'master' into python_turtle 2018-11-16 09:46:11 +01:00
Romain Goyet
1142fd00a2 [python] Use a custom modtime implementation
It only exposes "monotonic" and "sleep" functions, which are the
only part of CPython's time we can actually do at the moment.
2018-11-15 14:18:01 +01:00
Damien Nicolet
24630011b1 [code] keep only CPython equivalent functions in utime module 2018-11-10 00:00:03 +01:00
Damien Nicolet
79bfc7f112 [code] time module 2018-11-09 01:30:22 +01:00
Jean-Baptiste Boric
c89a369a08 [python] Add getters for turtle module 2018-10-30 18:26:13 +01:00
Jean-Baptiste Boric
fcf7cc33cf [python] Implement turtle.position() 2018-10-30 18:10:25 +01:00
Jean-Baptiste Boric
0a05b94b4d [python] Turtle module improvements 2018-10-28 14:16:00 +01:00
Jean-Baptiste Boric
464c1a5c95 [python] Initial turtle module 2018-10-27 14:24:36 +02:00
Romain Goyet
b3b29c214c [python] Don's sort QSTRs before processing them
The order matters because of the codepoint2name routine
2018-06-26 14:18:55 +02:00
Romain Goyet
53fbd2367f [python] Switch MICROPY_QSTR_BYTES_IN_HASH to 2 (default) 2018-06-26 14:18:55 +02:00
Romain Goyet
217d0ccc10 [python] Enable builtins reversed 2018-06-08 17:26:37 +02:00
Romain Goyet
5008f40a66 [python] Enable builtins filter 2018-06-08 17:26:37 +02:00
Romain Goyet
e1b3e107da [python] Enable builtins frozenset 2018-06-08 17:26:37 +02:00
Romain Goyet
8acf50b50c [python] Enable builtins enumerate 2018-06-08 17:26:37 +02:00
Romain Goyet
b67388a9a9 [python] Enable builtins set 2018-06-08 17:26:37 +02:00
Romain Goyet
73250e727a [python] Update to MicroPython 1.9.4 2018-06-04 16:10:14 +02:00
Romain Goyet
55e4c955f4 Upgrade to MicroPython 1.9.3 2018-04-09 14:43:15 +02:00
Romain Goyet
651d5715e4 [python] Adding mp_hal_input 2018-02-01 14:10:26 +01:00
Émilie Feral
5c23003e50 [apps] Python: Refining random module 2018-01-16 13:19:27 +01:00
MaxBzh
4011290e7a Add Urandom module in Python 2018-01-05 14:28:25 +01:00
Léa Saviot
f7766080c3 [python] Fixed the list[:] function. 2017-12-12 09:42:30 +01:00
Léa Saviot
2a0bc95097 [python] Fix min/max functions. 2017-12-12 09:42:10 +01:00