Quentin
0d56576f9c
[Git] Fix conflicts
2020-04-01 11:36:16 +02:00
Émilie Feral
9e822e85e5
[apps/shared] CurveView: implement drawArrow
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
Romain Goyet
a3b1b51f75
[pyton/matplotlib] Support plot
2020-04-01 10:18:08 +02:00
Quentin Guidée
d50511f1be
[Fix] Fix conflicts
2020-03-11 19:12:20 +01:00
Romain Goyet
2bf83c43a8
[apps/shared] Factorize CurveView::label
...
There was a lot of code duplication.
I removed the initialization of xLabel{} and yLabels{} because those are
scratch buffers that shouldn't be accessed before being written to
anyway.
2020-03-11 09:51:33 +01:00
Quentin Guidée
bd6f30fda5
Merge remote-tracking branch 'upstream/master' into omega-hotfix
2020-03-06 16:06:39 +01:00
Neven Sajko
aae5e49c01
Remove useless uses of const for return types
...
An integer or float value can not be assigned to, so there is no point
in qualifying it as const.
2020-03-02 09:48:23 +01:00
Quentin Guidée
ab8f731515
Fixed some conflicts
2020-02-12 17:42:58 +01:00
Émilie Feral
d61336936e
[apps/shared] Create a class Dots to share dots masks between CurveView
...
and RoundCursorView. Use the same dot for illustrations of additional
results in Calculation app and Function app
2020-02-12 15:13:21 +01:00
Émilie Feral
06fa3bba5b
[apps/shared][apps/calculation] CurveView: enable to personalize the
...
maximal glyph length of graduation labels. Shorten them in
ComplexGraphView
2020-02-12 15:13:21 +01:00
Émilie Feral
800adce876
[apps/shared] CurveView: change API; drawLabel can draw a label at a
...
position and the relative position of the label (above, below, to the
left or right of the graduation) can be chosen. 'positionLabel' is a
private method used by 'drawLabelsAndGraduations' and 'drawLabel' to
determine the position of the label knowing the position of the
graudation and its relative position
2020-02-12 15:13:20 +01:00
Émilie Feral
95137909c6
[apps/shared] CurveView: fixes drawLabelsAndGraduations when the 'fixCoordinate' parameter is true.
...
This fixes the graduation drawing of the box view in the statistics app
2020-02-12 15:13:20 +01:00
Émilie Feral
29bab70dcd
[apps/shared] CurveView: add a parameter "color" to drawLabel
2020-02-12 15:13:20 +01:00
Émilie Feral
dfd4811136
[apps/shared] CurveView: change API to expose 'drawLabel' and
...
'drawLabelsAndGraduations'
2020-02-12 15:13:20 +01:00
Émilie Feral
98c6f4ba47
[apps/shared] CurveView: factorize code of drawLine and drawSegment
2020-02-12 15:13:20 +01:00
Émilie Feral
818067e03b
[apps/shared] CurveView: add a parameter to drawSegment to draw dashed
...
segment
2020-02-12 15:13:20 +01:00
Émilie Feral
b47ded4074
[apps/calculation] Add a parameter in Shared::CurveView to choose the
...
curve thickness
2020-02-12 15:13:20 +01:00
Émilie Feral
bf07b5ab76
[apps/shared] CurveView: fix typo
2020-02-12 15:13:20 +01:00
Émilie Feral
f7942207f5
[apps/shared][apps/calculation] Create a methods
...
Shared::CurveView::drawAxisLabel and use it in ComplexGraphView
2020-02-12 15:13:18 +01:00
Émilie Feral
9c3dd84c42
[apps/shared] CurveView: factorize code of drawLabels and drawLabel
2020-02-12 15:13:18 +01:00
Émilie Feral
0beceede5f
[apps/shared][apps/calculation] Create CurveView::drawLabel and use it
...
in complex_graph_view
2020-02-12 15:13:18 +01:00
Léa Saviot
9f018eb9d9
[escher/view] setFrame and layoutSubviews can be forced
2020-02-12 15:13:15 +01:00
Quentin Guidée
3b592c847e
New dark theme & KDColorWhite -> Palette::BackgroundHard
2019-11-26 23:04:03 +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
Léa Saviot
e67160b878
[apps/graph] Faster cursor scrolling on device
...
This commit is quite dirty but works well
2019-09-09 16:56:32 +02:00
Léa Saviot
24d1594255
[apps] Draw curves according to their definition domain
2019-08-29 11:07:22 +02:00
Léa Saviot
c71ef7ff79
[apps/graph] Evaluation methods renaming
2019-08-29 11:07:22 +02:00
Léa Saviot
28a721e96e
[apps] Start fixing apps as cursor has new member variable
2019-08-29 11:07:22 +02:00
Ruben Dashyan
73a7098d80
[apps/shared/curve_view] drawCurve gets tStart, tEnd, tStep as parameters
2019-08-29 11:07:22 +02:00
Ruben Dashyan
0f7aebb045
[apps/shared/curve_view] New boolean parameter controls whether drawCurve draws straight lines early
2019-08-29 11:07:22 +02:00
Ruben Dashyan
f46692f9b4
[apps/shared/curve_view] WIP: jointDots takes t and s float parameters
2019-08-29 11:07:22 +02:00
Ruben Dashyan
ae2e282b4a
[apps/shared/curve_view] drawCurve takes x|yEvaluation parameters
2019-08-29 11:07:22 +02:00
Ruben Dashyan
fbee2d81e4
[apps/*/curve_view] Use drawCartesianCurve specifically for drawing Cartesian curves
2019-08-29 11:07:22 +02:00
Léa Saviot
0840ca7a1e
[apps/poincare] Move NormalDistribution to Poincare
2019-08-23 13:47:52 +02:00
Ruben Dashyan
9ab55e6a04
[apps/shared/curve_view] drawCurve does not call straightJoinDots anymore
...
Remove the "bool continuously" parameter of the method drawCurve that allowed
to bypass the call to jointDots and call straightJoinDots directly
instead.
2019-07-30 14:15:08 +02:00
Ruben Dashyan
585b77c38f
[apps/shared/curve_view] Clarify coordinates' conventions
2019-07-30 14:15:08 +02:00
Ruben Dashyan
292493ba36
[apps/*curve_view] Substitute resolution by pixelWidth
2019-07-30 14:15:08 +02:00
Ruben Dashyan
c80baae1e9
[apps/*/curve_view] Remove samplingRatio()
...
The resolution() method is useful to get a horizontal step equivalent to
the width of a pixel. A higher sampling ratio (or resolution) had been
introduced in the following commit.
[apps] In curve view, avoid white vertical lines in integral curves due to pixel rounding
2019-07-30 14:15:08 +02:00
Ruben Dashyan
c22754fa63
[apps/shared/curve_view] Make curveViewRange() method const
2019-07-30 14:15:08 +02:00
Léa Saviot
4d1114ef63
[apps/curve_view] Increase numberOfSignificant digits when needed
...
Labels might be rounded to the same value (for example, in Probability,
draw a normal law with mu = 100000 and sigma = 0.1), in which case we
need to display extremal labels only, with increased number of
significant digits.
2019-01-10 11:42:05 +01:00
Léa Saviot
718160b964
[apps] Draw grid lines in bold and light colors in curve_view
2019-01-10 11:42:05 +01:00
Léa Saviot
5d7a7c7371
[apps/curve_view] Make drawGridLines private
2019-01-10 11:42:05 +01:00
Léa Saviot
69105572ef
[apps] Change axes drawing order in curve views
2019-01-10 11:42:05 +01:00
Léa Saviot
335264e944
[apps] Typo: drawAxes is now drawAxis
2019-01-10 11:42:05 +01:00
Léa Saviot
1b0b9a5c42
[apps/probability] Color the background behind graph labels
2019-01-10 11:42:04 +01:00
Léa Saviot
2cb921d501
[apps] Clean comment
2019-01-10 11:42:04 +01:00
Léa Saviot
155688540f
[apps/curve_view] Clean grid unit algorithm
2019-01-10 11:42:04 +01:00
Léa Saviot
4353d80b26
[apps/probability] Increase Normal law values (draw centered reduced)
2019-01-10 11:42:04 +01:00
Léa Saviot
fd34e83a56
[apps] In curve views, display floating labels when axes non visible
2019-01-10 11:42:02 +01:00