1 # This script is for testig SymPy plotting in pure Python environment
5 # In this directory execute:
7 # $ sudo cowbuilder --update
8 # $ sudo cowbuilder --execute test_pure_plotting
10 # This will first update the base system and then execute this script in that
13 # In order for this to work, you need to have the cowbuilder environment setup,
14 # which you can do in this way:
16 # $ sudo apt-get install cowdancer
17 # $ sudo cowbuilder --create --mirror http://ftp.cz.debian.org/debian
20 apt-get -y install mercurial python python-codespeak-lib python-ctypes
21 apt-get -y install libgl1-mesa-dev libglu1-mesa-dev libfreetype6-dev libfontconfig1-dev
23 hg clone http://hg.sympy.org/sympy/
31 cat > plotting.py << EOF
32 from sympy import Symbol, cos, sin, Plot, log, tan
33 from sympy.abc import x, y
34 print Plot(cos(x)*sin(y), sin(x)*sin(y), cos(y)+log(tan(y/2))+0.2*x, [x, -0.00,
35 12.4, 40], [y, 0.1, 2, 40])
38 echo "Was the plot successful? If not, fix it and do 'python plotting.py'."