Commit Graph

253 Commits

Author SHA1 Message Date
É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
Émilie Feral
4022cdfa60 [python] Matplotlib: plot_controller inherits from
ZoomAndPanCurveViewController to be able to pan
2020-04-01 10:18:08 +02:00
Émilie Feral
659da1dff8 [apps][python] ExecutionEnvironment handles hide sand display of sandbox
and plot controller the same way
2020-04-01 10:18:08 +02:00
Émilie Feral
b5d3070ef5 [python] matplotlib: improve arrow method, draw arrow edge 2020-04-01 10:18:08 +02:00
Émilie Feral
70335b7a47 [python] matplotlib port: draft version of arrow method 2020-04-01 10:18:08 +02:00
Émilie Feral
aaf71328ba [apps/shared] CurveView: resolve name conflict -
drawHorizontalOrVerticalSegment & drawSegment -
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
c69ec608e8 [python] matplotlib: label are centered around their position 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
Émilie Feral
373a85f2b7 [python] matplotlib port: clean duplicate 2020-04-01 10:18:08 +02:00
Émilie Feral
da1c6090b5 [python] matplotlib port: factorize input validation 2020-04-01 10:18:08 +02:00
Romain Goyet
a0319905d7 [wip] Clean Rect and drawing 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
5ada80d03b [python/matplotlib] Add a Dot iterator 2020-04-01 10:18:08 +02:00
Romain Goyet
6f3d3f62de [python/matplotlib] Validate the plot parameters 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
Quentin Guidée
b26a35a200 Merge remote-tracking branch 'upstream/master' into omega-hotfix 2020-02-25 15:21:24 +01:00
Léa Saviot
383aafcc55 [python/modion] Allow interruption of modion_keyboard_keydown 2020-02-25 15:17:13 +01:00
Quentin Guidée
24907511f5 Fix conflicts 2020-02-23 13:27:10 +01:00
Léa Saviot
8fe41a8673 [python/modkandinsky] fillRect accepts negative width and height 2020-02-21 16:04:05 +01:00
Quentin Guidée
ab8f731515 Fixed some conflicts 2020-02-12 17:42:58 +01:00
Ruben Dashyan
8d3f86c77f [kandinsky/context] getPixel only if in the clipping rect
Fixes the redrawing of RoundCursorView when its frame overlaps the
clipping rect.
2020-02-12 15:13:24 +01:00
Léa Saviot
86bd4be03e [python/port] Fix gc_collect_root on emscripten
Any data access should be aligned.
2020-02-12 15:13:22 +01:00
Léa Saviot
42bdf29ead [python] Fix compilation warnings 2020-02-12 15:13:22 +01:00
Léa Saviot
ac6ce97dea [python/modturtle] Allowinterruption during reset
Scenario:
fro m turtle import *
while 1==1:
  reset()
-> This script cannot be interrupted
2020-02-12 15:13:21 +01:00
Émilie Feral
37061b9cb5 [python] Fix gc_collect to be sure to get unaligned pointers 2020-02-12 15:13:16 +01:00
elicolh
77a3b492fd switching right and up in get_keys() 2020-01-15 18:55:30 +01:00
Damien Nicolet
8583ddafca External application, API v2 2019-12-19 00:31:23 +01:00
Quentin Guidée
6a55305d52 Merge remote-tracking branch 'upstream/master' into omega-dev 2019-12-15 14:18:36 +01:00
Damien Nicolet
472929c028 External API for KhiCAS 2019-12-13 01:02:14 +01:00
Émilie Feral
070d362f15 [python] Improve comment 2019-12-12 14:16:13 +01:00
Quentin Guidée
f24f7b0603 Merge remote-tracking branch 'upstream/master' into omega-dev 2019-12-06 19:34:28 +01:00
Émilie Feral
49aa58446b [python] modkandinsky: fill_rect and draw_string calls might take some
time. As "micropython_port_vm_hook_loop" is not called while we are
executing module code, we add an extra check for user interruption in
module functions.
2019-12-04 11:27:32 +01:00
Émilie Feral
0db66f1784 [python] Turtle: add TODO 2019-12-04 11:27:32 +01:00
Quentin Guidée
cbb2fb2a19 Merge remote-tracking branch 'upstream/master' into omega-dev 2019-11-19 20:13:56 +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
Jean-Baptiste Boric
0971d72cec [python] Implement get_keys in kandinsky 2019-10-11 20:07:51 +02:00
Jean-Baptiste Boric
1d575739bc [python] Implement wait_vblank in kandinsky 2019-10-11 19:50:47 +02:00