From 711de5193078144c9ea4ce9cc975437709ab8e7c Mon Sep 17 00:00:00 2001 From: Aneesh Dogra Date: Tue, 04 Dec 2012 10:01:25 +0000 Subject: Fix invalid reference error. 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. --- 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 -- cgit v0.9.1