analysis.lami: Fix timestamp label not showing on Y axis
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 4 May 2016 20:49:20 +0000 (16:49 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 19 May 2016 22:41:48 +0000 (18:41 -0400)
The fix is the same as the custom label since it is the same
problem. Put tick angle to 1.

Bug: 493941

Change-Id: I8b302a24474d47dd3c899d0e05e452cec5663cba
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Reviewed-on: https://git.eclipse.org/r/72245
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
analysis/org.eclipse.tracecompass.analysis.lami.ui/src/org/eclipse/tracecompass/internal/provisional/analysis/lami/ui/viewers/LamiScatterViewer.java

index 5f8b9ecf7aba9301e8f3c145d8c1f7db8a03f4d5..20ba7b3b8932af29817ca02644d2e6145fc1ccff 100644 (file)
@@ -259,25 +259,25 @@ public class LamiScatterViewer extends LamiXYChartViewer {
             yTick.setFormat(new LamiLabelFormat(checkNotNull(yMap)));
             updateTickMark(checkNotNull(yMap), yTick, getChart().getPlotArea().getSize().y);
 
-            /*
-             * SWTChart workaround: SWTChart fiddles with tick mark visibility
-             * based on the fact that it can parse the label to double or not.
-             *
-             * If the label happens to be a double, it checks for the presence
-             * of that value in its own tick labels to decide if it should add
-             * it or not. If it happens that the parsed value is already present
-             * in its map, the tick gets a visibility of false.
-             *
-             * The X axis does not have this problem since SWTCHART checks on
-             * label angle, and if it is != 0 simply does no logic regarding
-             * visibility. So simply set a label angle of 1 to the axis.
-             */
-            yTick.setTickLabelAngle(1);
-
             /* Remove horizontal grid line */
             getChart().getAxisSet().getYAxis(0).getGrid().setStyle(LineStyle.NONE);
         }
 
+        /*
+         * SWTChart workaround: SWTChart fiddles with tick mark visibility based
+         * on the fact that it can parse the label to double or not.
+         *
+         * If the label happens to be a double, it checks for the presence of
+         * that value in its own tick labels to decide if it should add it or
+         * not. If it happens that the parsed value is already present in its
+         * map, the tick gets a visibility of false.
+         *
+         * The X axis does not have this problem since SWTCHART checks on label
+         * angle, and if it is != 0 simply does no logic regarding visibility.
+         * So simply set a label angle of 1 to the axis.
+         */
+        yTick.setTickLabelAngle(1);
+
         setLineSeriesColor();
 
         /* Put log scale if necessary */
This page took 0.026682 seconds and 5 git commands to generate.