Comment #17 on issue 1916 by xiaopch: Plotting fails: Window initialization failed: Unable to share contexts
http://code.google.com/p/sympy/issues/detail?id=1916

#!/usr/bin/env python
"""Plotting example

Demonstrates simple plotting.
"""

from sympy import Symbol, cos, sin, Plot, log, tan
from sympy.abc import x, y
import os
os.environ['PYGLET_SHADOW_WINDOW']="0"


def main():
    fun1 = cos(x)*sin(y)
    fun2 = sin(x)*sin(y)
    fun3 = cos(y) + log(tan(y/2)) + 0.2*x

    Plot(fun1, fun2, fun3, [x, -0.00, 12.4, 40], [y, 0.1, 2, 40])

if __name__ == "__main__":
    main()
    raw_input()

##The code works on windows xp with sympy-0.6.7

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

Reply via email to