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:55:50 (GMT)
committer Gary Martin <gary@garycmartin.com>2013-01-11 21:55:50 (GMT)
commit3239dc117cb918f889e9a69ec56598bde1bc649e (patch)
tree5a548ff1e05b39b975bcc812c35912eceff290da
parentfa0bf8ee2d79bd7ae73410a4de8d051221a02e52 (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