Status: Valid
Owner: ----
CC: [email protected]
Labels: Type-Defect Priority-Medium Plotting

New issue 3494 by [email protected]: plot_implicit fails for y - cos(pi/x)
http://code.google.com/p/sympy/issues/detail?id=3494

In [4]: plot_implicit(y - cos(pi/x), (x, 0, 1))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-239391b74ecd> in <module>()
----> 1 plot_implicit(y - cos(pi/x), (x, 0, 1))

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/plotting/plot_implicit.pyc in plot_implicit(expr, *args, **kwargs)
    352     p = Plot(series_argument, **kwargs)
    353     if show:
--> 354         p.show()
    355     return p

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/plotting/plot.pyc in show(self)
    193             self._backend.close()
    194         self._backend = self.backend(self)
--> 195         self._backend.show()
    196
    197     def save(self, path):

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/plotting/plot.pyc in show(self)
    941
    942     def show(self):
--> 943         self.process_series()
944 #TODO after fixing https://github.com/ipython/ipython/issues/1255 945 # you can uncomment the next line and remove the pyplot.show() call

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/plotting/plot.pyc in process_series(self)
    854                 self.ax.spines['left'].set_smart_bounds(False)
    855                 self.ax.spines['bottom'].set_smart_bounds(False)
--> 856                 points = s.get_raster()
    857                 if len(points) == 2:
    858                     #interval math plotting

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/plotting/plot_implicit.pyc in get_raster(self)
     75         yinterval = interval(self.start_y, self.end_y)
     76         try:
---> 77             temp = func(xinterval, yinterval)
     78         except AttributeError:
     79             if self.use_interval_math:

<string> in <lambda>(x, y)

TypeError: unsupported operand type(s) for /: 'Pi' and 'interval'

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to