Arthur Camouseigt
4b88521e14
[matplotlib/modpyplot.cpp] Removing c keyword from some functions to match pyplot spec
...
Change-Id: I53fa8c9edc8bcfdfb9c36797b41a1c36494e2c74
(cherry picked from commit 42b245ed97d6fa3394316888489660f4f76f0a78)
2020-06-04 14:50:10 +02:00
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
d6e32594b8
[test/matplotlib.cpp][modpyplot.cpp] Changed matplotlib tests
...
Modified the tests for pyplot module and added error raisers to module functions
Change-Id: I164feafaf562f16d646841c1f9dfbbe32e6a763b
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
68e3208799
[matplotlib/modpyplot.cpp] Removed function previously used for setting colors
...
Change-Id: I76bb489d5a5b78162873f68c5e3cca8cebb77aba
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
c39b432dd6
[matplotlib/modpyplot.cpp] Adding keyword arguments support for plot function
...
plot function can now take into account the following keywords arguments :
- color
Change-Id: I29b82ba25fa68ec4d8e1797112f133440dee22a0
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
b26d448573
[matplotlib/modpyplot.cpp] Adding keyword arguments support for scatter function
...
scatter function can now take into account the following keywords arguments :
- color
Change-Id: Iaea5a7a46d25e3efe2214368334ce859900d6ae6
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
5daaa2c050
[matplotlib/modpyplot.cpp] Adding keyword arguments support for hist function
...
hist function can now take into account the following keyword arguments :
- color
Change-Id: I69eca6555d892db958d2bd002f438a40908b2d9d
2020-06-04 14:50:10 +02:00
Arthur Camouseigt
0e3684e137
[matplotlib/modpyplot.cpp] Adding keyword arguments support for bar function
...
bar function can now take into account the following keywords arguments :
- color
Change-Id: Iefa68cff59986d89c37cfecd7e3750f03c33ca59
2020-06-04 14:50:09 +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
Arthur Camouseigt
68ff71f72a
[matplotlib/modpyplot.cpp] Modified the way to add mp_float
...
To prevent crashes caused by failed casts from char to float, removed optimization.
Change-Id: Ia91aafa007538b6c05f7aace5e5962989d313c98
2020-06-04 14:50:09 +02:00
Arthur
13d0bcf676
[matplotlib] Modified isEmpty method for showing axis
...
Added a condition for being considered empty.
Allows axis("on") or axis((0,1,2,3)) to display something with show()
This behavior is the same as the python module
Change-Id: If5f3b07c280ee9ead2bc23d23cbbb4f01da7eae5
2020-06-04 14:50:09 +02:00
Émilie Feral
0f8f82b94b
[python] matplotlib: Add a parameter to to arrow to set the arrow width
2020-06-04 14:50:09 +02:00
Émilie Feral
e2c06cbb44
[python] matplotlib: add color argument to plot, scatter, hist, bar and
...
arrow
2020-06-04 14:50:08 +02:00
Émilie Feral
a22990943b
[python] matplotlib: missing static keyword
2020-06-04 14:50:08 +02: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
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
b3b6565410
[python] modpyplot: show() does nothing when the store is empty
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