Sfoglia il codice sorgente

- 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 anni fa
parent
commit
6bf38eb00e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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)