From 6bf38eb00e0281464e7f53aeaf09045fe62ed7cc Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sat, 2 Jun 2018 17:32:12 +0300 Subject: [PATCH] - added infinite lines on X and Y axis centered in origin, (0,0) coords It add a visual marker and it helps in judging the position of the plotted object in relation to the origin. --- PlotCanvas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PlotCanvas.py b/PlotCanvas.py index 94469d2b..ae882cfb 100644 --- a/PlotCanvas.py +++ b/PlotCanvas.py @@ -138,6 +138,8 @@ class PlotCanvas(QtCore.QObject): self.axes = self.figure.add_axes([0.05, 0.05, 0.9, 0.9], label="base", alpha=0.0) self.axes.set_aspect(1) self.axes.grid(True) + self.axes.axhline(color='Black') + self.axes.axvline(color='Black') # The canvas is the top level container (FigureCanvasQTAgg) self.canvas = FigureCanvas(self.figure)