analysis.lami: Fix timestamp label not showing on Y axis
[deliverable/tracecompass.git] / 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.032665 seconds and 5 git commands to generate.