Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAneesh Dogra <lionaneesh@gmail.com>2012-12-04 10:01:25 (GMT)
committer Aneesh Dogra <lionaneesh@gmail.com>2012-12-04 10:01:25 (GMT)
commit711de5193078144c9ea4ce9cc975437709ab8e7c (patch)
treef46598517617f4e638e1f8853fdf094907d4b629
parentddbca70e1867ec66cf6af68d985675ac867e0b78 (diff)
Fix invalid reference error.HEADmaster
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