Hugo Saint-Vignes
5e7d93b331
[apps/statistics] Update and replace comment
2021-01-05 16:43:01 +01:00
Hugo Saint-Vignes
83722342f7
[apps/statistics] Reload CurveView before drawing histogram labels
2021-01-05 16:43:01 +01:00
Hugo Saint-Vignes
81616950f3
[apps/statistics] Fix horizontal alignement for size legend
...
Change-Id: I834444aee7dd547c71254df4658c0db05eb101d7
2020-11-04 15:58:27 +01:00
Léa Saviot
ed753b793b
[apps/statistics] Do not initRangeParameters too often
2020-06-04 14:50:00 +02:00
Léa Saviot
250f4ec3dd
[apps/statistics] Clean code
2020-06-04 14:50:00 +02:00
Romain Goyet
84768472bd
Explicit std::min/max template usage
...
This is unfortunately required in several cases:
- Sometimes when we use either float and double (this should be changed)
- Because KDCoordinate is not an int, so any arithmemtic promotes it to
an int
- Because we mix pointer differences and ints
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
Léa Saviot
22afe4df2d
[apps/statistics] EXE should open the histogram param controller
...
The OK button already does it.
2020-02-25 15:15:03 +01:00
Léa Saviot
6f4a51a56d
[apps/poincare] Use IEEE754::exponentBase10 instead of floor(log10)
2020-02-12 15:13:26 +01:00
Léa Saviot
c9f83f6e7e
[apps/statistics] Fix bar width computation
...
There was a float -> double conversion lack of precision, which resulted
in akward results
Scenario:
Data
V N Then display the histogram: the second bar is [1.9;2[ but
1 1 contains the 2 value
2 1
2020-02-12 15:13:26 +01:00
Léa Saviot
88ab0e686c
[apps] Less operations in willExitResponderChain if exiting app
...
If nextFirstResponder is nullptr, it means we are exiting the app, so
there is no need to relayout, reselect, ...
We did it bbefore because a long time ago, we used to keep all apps side
by side so they had to be thouroughly cleaned when exiting
2020-02-12 15:13:22 +01:00
Émilie Feral
4d593a6149
[poincare] PrintFloat: take into account the distinction between char
...
and glyph length in ConvertFloatToText
2019-09-26 11:26:48 +02:00
Émilie Feral
caa368ba41
[apps/statistics] Fix uninitialized values
2019-09-06 14:51:00 +02:00
Ruben Dashyan
766951b943
[apps/statistics/histogram_controller] Refactor initRangeParameters and initBarParameters
2019-08-29 15:13:41 +02:00
Léa Saviot
0840ca7a1e
[apps/poincare] Move NormalDistribution to Poincare
2019-08-23 13:47:52 +02:00
Ruben Dashyan
62cec10b46
[apps] Clean unnecessary AppsContainer class declarations and header inclusions
2019-07-19 15:06:25 +02:00
Léa Saviot
a886c0fb32
[apps/shared] Share PadWithSpaces method
2019-06-14 09:31:46 -04:00
Léa Saviot
78bdd0e04b
[apps/statistics] Fix banner view
...
Scientific mode, Data:
10 - 1
20 - 5
30 - 4
40 - 3
50 - 1
Display the histogram, there are problems in the banner view
2019-06-13 10:37:47 -04:00
Ruben Dashyan
355e42734d
[apps] Replace BannerView::set(Legend|Message)AtIndex by getters
2019-05-03 15:54:21 +02:00
Ruben Dashyan
07a9116147
[apps/statistics] Remove public MultipleDataView::editableBannerView() getter
...
Instead use existing protected virtual bannerView() getter. The reason
why both existed is that one was const but not the other. A const
variant is needed only exceptionally: in bannerFrame() which is called
by drawRect().
Moreover, bannerView() is virtual and is overridden in its derived
classes using co-variant return types. That fact is important in the
following commit.
2019-05-03 15:54:21 +02:00
Léa Saviot
4c5251f04f
[unicode] Use unicode when dealing with chars - Part 2
2019-05-03 15:53:19 +02:00
Léa Saviot
496d346049
Remove max/min inline from KDCoordinate header
2019-05-03 15:53:19 +02:00
Léa Saviot
f2310a8814
[apps] Change CurveViewRange::computeGridUnit parameters
2019-01-10 11:42:02 +01:00
Émilie Feral
3f88d631af
[statistics] HistogramController: scroll to the selected bar when moving
...
selection vertically
2018-11-23 12:04:09 +01:00
Émilie Feral
698332c355
[escher] InputTextDelegate and LayoutFieldDelegate don't inherit from
...
InputTextDelegate to avoid diamond inheritance
2018-11-23 12:04:03 +01:00
Émilie Feral
737393072e
[statistics] Fix histogram_controller and multiple_data_view_controller
...
life cycle (viewWillAppear, didEnterResponderChain)
This fixes the histogram labels when a serie is added
2018-11-15 12:02:21 +01:00
Léa Saviot
5d92f13c26
Clean strlcpy arguments
2018-10-17 11:22:37 +02:00
Émilie Feral
b8af15f1ab
[poincare] change createLayout signature
...
- CreateLayout depends on the float display mode and the number of
significant digits
- Float display mode does not have a default value anymore
2018-07-18 16:32:50 +02:00
Léa Saviot
3a3522faef
[apps/statistics] Store selected series in snapshot
2018-06-11 13:58:26 +02:00
Léa Saviot
e295dd678e
[apps/stats] Fix drawin and reloading
2018-06-11 13:58:24 +02:00
Léa Saviot
c31527c54e
[apps/stats] Fix histogram horizontal scrolling
2018-06-11 13:58:23 +02:00
Léa Saviot
f4eb4e3476
[apps/stats] Abstract multiple data view and controller
2018-05-29 15:34:49 +02:00
Léa Saviot
7b37f4d0bc
[apps/stats] Remove unnecessary constructor parameter
2018-05-29 15:34:49 +02:00
Léa Saviot
b762471574
[apps/stats] HIstogram::ContentView is MultipleHistogramsView
2018-05-29 15:34:49 +02:00
Léa Saviot
19cc3fd60b
[apps/stats] Connect the OK button in histogram
2018-05-29 15:34:49 +02:00
Léa Saviot
cbe9a95472
[apps/stats] Display OK in histogram
2018-05-29 15:34:49 +02:00
Léa Saviot
ac99767a58
[apps/stats] Remove unneeded parameter
2018-05-29 15:34:49 +02:00
Léa Saviot
82a5b9f982
[apps/stats] Fix histogram bar parameters initialization
2018-05-29 15:34:49 +02:00
Léa Saviot
4f0672ba67
[apps/stats] Better margins for histogram label displaying
2018-05-29 15:34:49 +02:00
Léa Saviot
c3b343a108
[apps/stats] Finer auto range and bar parameters
...
The values are computed so that all bars of all histograms are shown
2018-05-29 15:34:49 +02:00
Léa Saviot
b0076e05cf
[apps/stats] Keep displaying histogram axes label when selecting the tab
2018-05-29 15:34:49 +02:00
Léa Saviot
d928fbed78
[apps/stats] Histograms axis labels follow the selection
2018-05-29 15:34:49 +02:00
Léa Saviot
ac59105a46
[apps/stats] Display the labels of the bottom histogram only
2018-05-29 15:34:49 +02:00
Léa Saviot
db94ba351f
[apps/stats] Hide the banner view if no histogram selected
2018-05-29 15:34:49 +02:00
Léa Saviot
9c1c16c8dd
[apps/stats] Color the histogram
2018-05-29 15:34:49 +02:00
Léa Saviot
8980a7d90a
[apps/stats] Fix histogram display if series 0 is empty
2018-05-29 15:34:49 +02:00
Léa Saviot
645fcdfcd8
[apps/stats] Display the banner view
2018-05-29 15:34:49 +02:00
Léa Saviot
620b432dd1
[apps/stats] Remove Histogram settings button
2018-05-29 15:34:49 +02:00
Léa Saviot
86c2b7a365
[apps/statistics] Fix HistogramController::reloadBannerView and initBarParameters
2018-05-29 15:34:49 +02:00
Léa Saviot
f2a3040565
[apps/statistics] Histogram navigation
2018-05-29 15:34:49 +02:00