[chronojump] Jumps cairo XY graphs grid, axis in this order and line width: 1



commit 1a3d2ded50fad511ca1cdc692b9ed41091ed069d
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Jul 29 13:18:00 2020 +0200

    Jumps cairo XY graphs grid, axis in this order and line width: 1

 src/gui/cairo/xy.cs | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/cairo/xy.cs b/src/gui/cairo/xy.cs
index 0df0c252..449bf6e2 100644
--- a/src/gui/cairo/xy.cs
+++ b/src/gui/cairo/xy.cs
@@ -210,7 +210,12 @@ public abstract class CairoXY
 
        protected void paintAxisAndGrid(gridTypes gridType)
        {
-               //1 paint axis
+               g.LineWidth = 1; //to allow to be shown the red arrows on jumpsWeightFVProfile
+
+               //1 paint grid
+               paintGrid (minX, absoluteMaxX, minY, absoluteMaxY, 5, gridType);
+
+               //2 paint axis (to show axis on overlap)
                g.MoveTo(outerMargins, outerMargins);
                g.LineTo(outerMargins, graphHeight - outerMargins);
                g.LineTo(graphWidth - outerMargins, graphHeight - outerMargins);
@@ -218,7 +223,7 @@ public abstract class CairoXY
                printText(2, Convert.ToInt32(outerMargins/2), 0, textHeight, getYAxisLabel(), g, false);
                printText(graphWidth - Convert.ToInt32(outerMargins/2), graphHeight - outerMargins, 0, 
textHeight, getXAxisLabel(), g, false);
 
-               paintGrid (minX, absoluteMaxX, minY, absoluteMaxY, 5, gridType);
+               g.LineWidth = 2;
        }
 
        private string getXAxisLabel()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]