'problems plotting tan() with SymPy

I'm trying to plot various trig functions with sympy. This works fine with sine, cosine, etc., but tan() displays wierd results. Furthermore, if I rerun just the plot() function, then I get a different result each time.

from sympy import symbols
from sympy.functions.elementary.trigonometric import tan
from sympy.plotting.plot import plot

x = symbols('x')
eqn = tan(x)
plot(eqn, (x, -10, 10))


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source