Commit Graph

65 Commits

Author SHA1 Message Date
Léa Saviot
fd34e83a56 [apps] In curve views, display floating labels when axes non visible 2019-01-10 11:42:02 +01:00
Léa Saviot
fa24a4fd54 [apps] Put the Y labels left of the Y axis 2019-01-10 11:42:02 +01:00
Léa Saviot
6b381957df [apps] Handle cut labels in curves.
Draw all labels even if cut. If only the extrema horizontal labels are
drawn, pick the labels 1 and numberOfLabels-2 if the real extrema labels
will be cut.
2019-01-10 11:42:02 +01:00
Léa Saviot
9ac32cf8fe [apps] Use standard variables in curve view 2019-01-10 11:42:02 +01:00
Léa Saviot
d40b17a45e [apps] In curve view, draw the graduation even if the label is not drawn 2019-01-10 11:42:02 +01:00
Léa Saviot
c14483b0e7 [apps/shared] Clean some code in CurveViewRange 2019-01-10 11:42:02 +01:00
Léa Saviot
8c6ffa6d42 [apps] Fix graph X axis labels that read the same
Scenario: just zoom in in a graph
Fix:
- Do not truncate labels.
- Label size is computed depending on available size and number of
 labels.
- If labels cannot be displayed properly, just display the minimal
and maximal labels!
2019-01-10 11:42:02 +01:00
Léa Saviot
a65bdb1dfc [apps] Increase the Y axis label buffer sizes in curve views 2019-01-10 11:42:02 +01:00
Léa Saviot
36faebab3d [apps] Fix some KDCoordinate to float conversions 2019-01-10 11:42:02 +01:00
Léa Saviot
8de74f4158 [apps] Fix one pixel in CurveView::stampAtLocation 2019-01-10 11:42:02 +01:00
Léa Saviot
cf79795540 [apps] Fix blob left of screen when drawing curves
Try for instance f(x)=cos(x) in Graph
2019-01-10 11:42:02 +01:00
Léa Saviot
37ac12b1da [apps/graph] When changing the window manually, do not pan to cursor 2019-01-10 11:42:02 +01:00
Léa Saviot
99d97ecb45 [apps] Do not recompute stop condition in for loop 2018-12-13 12:20:22 +01:00
Émilie Feral
e56cfa3f94 [shared] Fix the buffer size of curve view labels 2018-11-30 09:40:15 +01:00
Léa Saviot
8088d0b57f Revert "[apps] OK icon in graphs is in the top right corner"
This reverts commit 50c0b0b8a79ce62723c13aeafe36d1afc75ce5a5.
2018-11-23 12:04:07 +01:00
Léa Saviot
ede20db6b9 [apps] OK icon in graphs is in the top right corner
It doesn't move when the banner height changes
2018-11-23 12:04:02 +01:00
Lionel Debroux
1a8c6b6ae9 [poincare, escher, ion, apps] Split the huge umbrella header poincare.h, to reduce build time.
This should be a NFC, but surprisingly, it also reduces size... so what does it change ?
2018-10-23 11:49:09 +02:00
Romain Goyet
f8beae3b86 [kandinsky] Move to KDFont 2018-10-11 16:44:02 +02:00
Émilie Feral
48f890ef93 [poincare] AngleUnit, FormatComplex and PrintFloatMode are now
enumeration of Preferences class
2018-07-30 13:48:04 +02:00
Léa Saviot
4e81684b08 [apps/stats] No need for special handling of the subview banner views
Just put them to nullptr.
2018-06-12 15:50:50 +02:00
Léa Saviot
6e9021ed35 [apps/stats] Fix display one axis only in Box tab
The axis view is now a separate view, so there is no problem of
computing the height of the "axed" box view.
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
ac59105a46 [apps/stats] Display the labels of the bottom histogram only 2018-05-29 15:34:49 +02:00
Léa Saviot
4a89ff4ba5 [apps/statistics] Remove duplicate banner views 2018-05-29 15:34:49 +02:00
Émilie Feral
0ee32e15be [shared] Curve view: Avoid drawing all bars in histograms when bars
overlap each other due to pixel resolution
2018-05-23 10:14:21 +02:00
Émilie Feral
6de71ae145 [poincare] Clean: convertFloatToText should be in PrintFloat instead of
Complex
2018-03-21 15:57:19 +01:00
Émilie Feral
66401fc697 [apps] Shared: Correct CurveView to avoid 1-pixel errors 2018-01-30 18:53:28 +01:00
Émilie Feral
c9b86d0c86 [apps] Shared: the cursor view own its size instead of the curve view 2018-01-30 18:53:28 +01:00
Émilie Feral
8891914716 [apps] Change the thickness of curves in graph views 2018-01-30 18:53:28 +01:00
Émilie Feral
72f3d1a88a [apps] Shared: Change the thickness of grid in Graph views 2018-01-30 18:53:28 +01:00
Émilie Feral
b387769eb4 [apps] Shared: In curve view, correct the dirty tracking when changing
the banner, the cursor or the OK views
2018-01-30 18:19:27 +01:00
Émilie Feral
e8a844d2e4 [apps] Shared: In CurveView::drawCurve: compare pixels coordinate
instead of float to avoid white pixels between the area under the curve
and the cursor
2018-01-30 18:19:27 +01:00
Émilie Feral
f19e31f4cd [apps] Specialize GraphView in Type (Tangent, Default ...) instead of
GraphController
2018-01-30 18:19:27 +01:00
Émilie Feral
ef8f5e07c2 [apps] In CurveView, replace the virtual method evaluateModelWithParameter by a function given as parameter (to be able to call Curve view methods with different implementation of evaluateModelWithParameter) 2018-01-30 18:19:27 +01:00
Jacob Young
da1e66e798 Fix #115 by fixing the math.h and cmath includes. 2017-10-13 18:08:15 +02:00
Émilie Feral
cf91fb6315 [apps/shared] Fix bug in draw histogram. Do not color excessive bar.
Change-Id: Id6de0136d119874cf71ef5e8a54a210394782d81
2017-08-25 16:54:01 +02:00
Émilie Feral
82e212e771 [poincare] Template for double
Change-Id: I7404bd5cefc9ef78a5dbd572c3874a557cded28e
2017-08-16 09:55:29 +02:00
Émilie Feral
1964d61fdc [libaxx] add cmath and use cmath instead of math.h when required
Change-Id: Id839b17d33c69e2e002f370e553ff35246a1bc90
2017-08-16 09:55:29 +02:00
Émilie Feral
2468a6d9c3 [apps/shared] Correct drawHistogram
Change-Id: If2262489b01ab4725a2e3d553b7381c4777807a1
2017-07-28 10:40:05 +02:00
Émilie Feral
4164509ec3 [apps/sequence] Avoid banner blinking in term sum controller
Change-Id: I49adf8e6c006e5e9db9ff681260c92bcf03df12a
2017-06-08 18:30:46 +02:00
Émilie Feral
4edb661109 [apps/shared] In curve view, avoid that the banner blinks as soon as the
range changes

Change-Id: I2dab6d87a51bc283670d2a896ad0f41f5e71c73f
2017-06-08 18:30:46 +02:00
Émilie Feral
c7c37ac7b1 [apps/statistics] Avoid blinking in histogram view
Change-Id: Ia50ef402a381205ded2fc956e7d345853d4654e1
2017-06-08 18:30:46 +02:00
Émilie Feral
99b9b43b55 [apps/regression] Change graph view drawing
Change-Id: I33d8ad0dba5c5dfb7d36cd27c1091703ac71d725
2017-06-02 17:45:06 +02:00
Émilie Feral
8c2284d1ac [apps/shared] Initialize boolean member in curve view
Change-Id: I92b32b5c34f18713057d92f019dbf75d648034fa
2017-05-24 15:32:27 +02:00
Émilie Feral
5092388a3e [apps/shared] Avoid hanging when drawing undefined dots
Change-Id: I7c7d677e487c45528a6b5fb2d0c70d9073ae0f38
2017-05-10 10:37:25 +02:00
Émilie Feral
04a7b6e8a5 [apps/shared] Avoid infinite loop
Change-Id: Ic24fd4bf0d6c207def0ab98384bf73f90eb51068
2017-05-03 14:22:50 +02:00
Émilie Feral
39eb2d2cdf [apps/shared] Fix bug in curve view
Change-Id: I4eae6fdcea52b58f457171f8e43207e2aa4277b8
2017-04-26 14:03:51 +02:00
Émilie Feral
8a9df36a35 [apps/sequence] Cleaner resolution and comments
Change-Id: I3e4919f9f76ede2a81a672f21060adda2b98f1bd
2017-04-18 10:52:29 +02:00
Émilie Feral
fe99f740d1 [apps/sequence][apps/graph] Set different graph resolution in sequence
and in function graph

Change-Id: I498e77122a425c233ba536bdde24b9288b2c4513
2017-04-14 13:46:21 +02:00
Émilie Feral
aa995669cb [apps/shared] In curve view, avoid error when computing label 0
Change-Id: Ibc093a3ac6ad17c0c2b90287f23d05c06d7ed593
2017-04-13 17:06:34 +02:00