Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2013-01-11 21:59:16 (GMT)
committer Gary Martin <gary@garycmartin.com>2013-01-11 21:59:16 (GMT)
commit602ca87a9c3987448a25e4a47611f97070cf6c20 (patch)
tree7fcc59ea27be0e350dd94d5fd252a802394dbf9c
parent20750e9e82530e639826eb1ba8c844d1913f394d (diff)
Fix invalid reference error SL#4297 (Aneesh Dogra)
An invalid reference error ("x_space referenced before assignment") occurs in the plotting function when a N..N range is provided. (N denotes any number) like 1..1, 2..2 etc.
-rw-r--r--plotlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plotlib.py b/plotlib.py
index d6527b9..4d54395 100644
--- a/plotlib.py
+++ b/plotlib.py
@@ -154,7 +154,7 @@ class CustomPlot(_PlotBase):
self.maxy = max(float(y), self.maxy)
if self.minx == self.maxx:
- xYspace = 0.5
+ x_space = 0.5
else:
x_space = 0.02 * (self.maxx - self.minx)
self.minx -= x_space