- 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.
This commit is contained in:
Marius Stanciu
2018-06-02 17:32:12 +03:00
parent d4310a979c
commit 6bf38eb00e

View File

@@ -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)