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 14:45:20 (GMT)
committer Aneesh Dogra <lionaneesh@gmail.com>2012-12-04 14:45:20 (GMT)
commit33ad10b665292641c83b021dd4c126a42a6c4aa0 (patch)
tree800bb8183e379c045b1aee6cc04b82fb330a66f6
parent6039659ec69dd182b27a001502ae1ef2ab376eab (diff)
Remove unnecessary backslashes.
-rw-r--r--plotlib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plotlib.py b/plotlib.py
index 74a4d17..a21bd16 100644
--- a/plotlib.py
+++ b/plotlib.py
@@ -177,7 +177,7 @@ class CustomPlot(_PlotBase):
def vals_to_rcoords(self, pair):
"""Convert values to fractional coordinates"""
- ret = (0.1 + (pair[0] - self.minx) / (self.maxx - self.minx) * 0.8, \
+ ret = (0.1 + (pair[0] - self.minx) / (self.maxx - self.minx) * 0.8,
0.9 - (pair[1] - self.miny) / (self.maxy - self.miny) * 0.8)
return ret
@@ -219,7 +219,7 @@ class CustomPlot(_PlotBase):
plot_index = interval
while plot_index <= len(val) - interval:
self.add_text((0.11 + F * abs(x_coords[plot_index] - min_x) / \
- abs(max_x - min_x), 0.93), \
+ abs(max_x - min_x), 0.93),
format_float(x_coords[plot_index]))
plot_index += interval
self.add_text((0.11 + F * 1, 0.93), format_float(max_x))
@@ -239,7 +239,7 @@ class CustomPlot(_PlotBase):
plot_value = min_y + interval
while plot_value <= max_y - interval:
self.add_text((-(0.91 - F * abs(plot_value - min_y) / \
- abs(max_y - min_y)), 0.10), \
+ abs(max_y - min_y)), 0.10),
format_float(plot_value), rotate=-90)
plot_value += interval
self.add_text((-(0.89 - F), 0.10), format_float(max_y), rotate=-90)