diff options
author | Gary Martin <gary@garycmartin.com> | 2013-01-11 21:59:16 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2013-01-11 21:59:16 (GMT) |
commit | 602ca87a9c3987448a25e4a47611f97070cf6c20 (patch) | |
tree | 7fcc59ea27be0e350dd94d5fd252a802394dbf9c | |
parent | 20750e9e82530e639826eb1ba8c844d1913f394d (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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |