diff options
author | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-04 07:33:36 (GMT) |
---|---|---|
committer | Aneesh Dogra <lionaneesh@gmail.com> | 2012-12-04 07:33:36 (GMT) |
commit | a0179315545c30618ad58d1892baaeccb866877a (patch) | |
tree | a3e1607f5da4d4832ed8e9c14d1ae7c833915f0e | |
parent | 556924a22fe9e6031f97aab9bdcf0a948d106f34 (diff) |
We don't need to pass in range to produce_plot.
-rw-r--r-- | plotlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -96,7 +96,7 @@ class _PlotBase: vals = self.evaluate(eqn, var, range, points=points) _logger.debug('vals are %r', vals) - svg = self.produce_plot(vals, xlabel=var, ylabel='f(x)', range=range) + svg = self.produce_plot(vals, xlabel=var, ylabel='f(x)') _logger.debug('SVG Data: %s', svg) self.set_svg(svg) @@ -230,7 +230,7 @@ class CustomPlot(_PlotBase): interval = float(max_y - min_y)/(NOL - 1) self.plot_line((0.11, 0.08), (0.11, 0.89), "black") # if its a constant function we only need to plot one label - if min_y == max_y: + if min_y == max_y: self.add_text((-0.50, 0.10), format_float(min_y), rotate=-90) else: self.add_text((-0.90, 0.10), format_float(min_y), rotate=-90) |