Commit Graph

232 Commits

Author SHA1 Message Date
É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
Émilie Feral
dc58b9692f [python] matplotlib: imporve 'hist' 2020-04-01 10:18:09 +02:00
Émilie Feral
1895b83251 [python] Remove useless code 2020-04-01 10:18:09 +02:00
Émilie Feral
f97f56c021 [python] matplotlib: improve 'bar' arguments acceptation 2020-04-01 10:18:09 +02:00
Émilie Feral
18d59d923a [python] matplotlib: fix automatic range initialization 2020-04-01 10:18:09 +02:00
Émilie Feral
9a240bb0b4 [python] matplotlib: improve 'grid' 2020-04-01 10:18:09 +02:00
É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
Romain Goyet
131df18b00 [python] A module can now ask to present a view controller 2020-04-01 10:18:08 +02:00
Léa Saviot
383aafcc55 [python/modion] Allow interruption of modion_keyboard_keydown 2020-02-25 15:17:13 +01:00
Léa Saviot
8fe41a8673 [python/modkandinsky] fillRect accepts negative width and height 2020-02-21 16:04:05 +01:00
Léa Saviot
0d8cb0123b [python/port] Fix user interruption char set up
print can be user interrupted, so the interruption char needs to be
set for the whole runCode method
2020-02-20 11:43:31 +01:00
Léa Saviot
6dced2d157 [python/test] Do not use such a big python heap 2020-02-12 15:13:27 +01:00