Преглед изворни кода

- 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.

Marius Stanciu пре 7 година
родитељ
комит
6bf38eb00e
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      PlotCanvas.py

+ 2 - 0
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)