Émilie Feral
22dc20530f
[apps/shared] CurveView: jointDots does stamp the first dot and the
...
closest dot to an undefined dot. It avoids recursing when both dots are
undefined.
2019-09-18 10:44:30 +02:00
Ruben Dashyan
7f8cc4d147
[apps/shared/curve_view] Fix drawCurve on boundaries
2019-09-17 18:17:09 +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
67964ca383
[apps/curve_view] Fix the drawing
...
Scenario: exponential distribution, lambda = 1.23E-38
2019-09-09 11:25:20 +02:00
Émilie Feral
2ca8290813
[apps/shared] CurveView: number of pixels per label cannot be negative
2019-09-06 16:12:06 +02:00
Ruben Dashyan
f579010340
[apps/shared/curve_view] Correct parameter's value near domain boundaries
2019-09-05 17:36:00 +02:00
Ruben Dashyan
e2543fcef4
[apps/shared/curve_view] drawCurve computes parameter t more precisely
2019-09-05 17:36:00 +02:00
Léa Saviot
62793f41e0
[apps/curve_view] Fix drawing t limit
...
rho = 4 was not drawn properly (last quarted missing because t == tEnd)
2019-09-02 11:23:50 +02:00
Léa Saviot
850170e33b
[apps/shared] computeYRange clips tMin..tMax to xMin..xMax if possible
2019-08-30 10:18:39 +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
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
965ad60583
[apps/shared/curve_view] WIP: Call x|yEvaluation with parameter t
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
Émilie Feral
af31ba6137
[apps/shared] CurveView::computeLabels: fix confusion between size and
...
length
2019-08-19 17:13:50 +02:00
Léa Saviot
7b8f827f5a
[poincare/print_float] No float truncation over numberOfSignDigits
2019-08-09 18:05:57 +02:00
Léa Saviot
b0b10f184e
[poincare/print_float] convertFloatToText -> ConvertFloatToText
2019-08-08 17:22:06 +02:00
Ruben Dashyan
bc750ef2da
[apps/shared/curve_view] Clean clipping of the line segment for straightJoinDots
2019-07-30 14:15:08 +02:00
Ruben Dashyan
79dbdaa98c
[apps/shared/curve_view] stampAtLocation: clarify stampRect and shiftedMask
2019-07-30 14:15:08 +02:00
Ruben Dashyan
75a273be2a
[apps/shared/curve_view] Gather calls to stampAtLocation in jointDots
2019-07-30 14:15:08 +02:00
Ruben Dashyan
6f5b551104
[apps/shared/curve_view] Gather NAN detections in jointDots
2019-07-30 14:15:08 +02:00
Ruben Dashyan
0d82e40b1c
[apps/shared/curve_view] Clean straightJoinDots
2019-07-30 14:15:08 +02:00
Ruben Dashyan
b4099180a3
[apps/shared/curve_view] Correctly check whether successive dots are joined
2019-07-30 14:15:08 +02:00
Ruben Dashyan
327547dd37
[apps/shared/curve_view] Do not evaluate several times in drawCurve
2019-07-30 14:15:08 +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
ab0bfe2039
[apps/shared/curve_view] Inline pixelLength
2019-07-30 14:15:08 +02:00
Ruben Dashyan
95be59fdc6
[apps/shared/curve_view] Fix label position rounding error
2019-07-30 14:15:08 +02:00
Ruben Dashyan
702a222dbc
[apps/shared/curve_view] Simplify drawGridLines' for loop parameter
2019-07-30 14:15:08 +02:00
Ruben Dashyan
ce75a99d93
[apps/shared/curve_view] Simplify drawGridLines' for loop bounds
2019-07-30 14:15:08 +02:00
Ruben Dashyan
985876f115
[apps/shared/curve_view] Simplify drawDot
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
7cbc489052
[apps/shared/curve_view] Use drawSegment to color area under curve
2019-07-30 14:15:08 +02:00
Ruben Dashyan
f5c3cb74e2
[apps/shared/curve_view] Fix rounding error in drawSegment
2019-07-30 14:15:08 +02:00
Ruben Dashyan
f4b7967a58
[apps/shared/curve_view] step in drawHistogram depends on x-range's width
...
instead of the width of the rect that is being drawn.
2019-07-30 14:15:08 +02:00
Léa Saviot
496d346049
Remove max/min inline from KDCoordinate header
2019-05-03 15:53:19 +02:00
Léa Saviot
48bf209f48
[apps/curve_view] Fix zero label position
...
For instance, in Probability app, draw a standard normal law. The zero
was top left of the screen...
2019-01-21 14:23:26 +01:00
Léa Saviot
e2ac56abc6
[apps/curve_view] Fix grid lines not drawn due to pixel to float error
2019-01-10 11:42:05 +01:00
Léa Saviot
9639469761
[apps/curve_view] Fix drawGridLines that drew the opposite axis
2019-01-10 11:42:05 +01: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
460b49010c
[apps/curve_view] Do not draw the 0 label if the axis is floating
...
The 0 is represented by the other axis
2019-01-10 11:42:05 +01:00
Léa Saviot
37117ed7e7
[apps/curve_view] Do not draw extremal Y label if it overlaps X labels
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