From 33ad10b665292641c83b021dd4c126a42a6c4aa0 Mon Sep 17 00:00:00 2001 From: Aneesh Dogra Date: Tue, 04 Dec 2012 14:45:20 +0000 Subject: Remove unnecessary backslashes. --- 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) -- cgit v0.9.1