On 3/11/21 8:45 AM, Aryan Goyal wrote:
Hey there,
I'd like to contribute to the Project name- *Improve the plotting
module.* As I have a good piece of knowledge in matplotlib, Python,
HTML, CSS Javascript.
Thank You
Aryan Goyal
--
You received this message because you are subscribed to the Google
Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to sympy+unsubscr...@googlegroups.com
<mailto:sympy+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/5bb06850-d838-4558-b73e-32fa479b0022n%40googlegroups.com
<https://groups.google.com/d/msgid/sympy/5bb06850-d838-4558-b73e-32fa479b0022n%40googlegroups.com?utm_medium=email&utm_source=footer>.
There is a very good advanced free plotting program, Asymptote (look at
the gallery in the link) which is LaTeX aware -
https://asymptote.sourceforge.io/
The problem is it has it's own programming language with no good Python
wrapper (on github there is a primative one). Take a look at the link
and see what you think.
Here is an example -
https://asymptote.sourceforge.io/gallery/3Dwebgl/Klein.html
Here is the example code (you can rotate it and zoom with the mouse) -
import graph3;
size(469pt);
currentprojection=
perspective(camera=(25.0851928432063,-30.3337528952473,19.3728775115443),
up=Z,
target=(-0.590622314050054,0.692357205025578,-0.627122488455679),
zoom=1,autoadjust=false);
triple f(pair t) {
real u=t.x;
real v=t.y;
real r=2-cos(u);
real x=3*cos(u)*(1+sin(u))+r*cos(v)*(u < pi ? cos(u) : -1);
real y=8*sin(u)+(u < pi ? r*sin(u)*cos(v) : 0);
real z=r*sin(v);
return (x,y,z);
}
surface s=surface(f,(0,0),(2pi,2pi),8,8,Spline);
draw(s,lightolive+white,"bottle",render(merge=true));
string lo="$\displaystyle u\in[0,\pi]: \cases{x=3\cos u(1+\sin u)+(2-\cos
u)\cos u\cos v,\cr
y=8\sin u+(2-\cos u)\sin u\cos v,\cr
z=(2-\cos u)\sin v.\cr}$";
string hi="$\displaystyle u\in[\pi,2\pi]:\\\cases{x=3\cos u(1+\sin u)-(2-\cos
u)\cos v,\cr
y=8\sin u,\cr
z=(2-\cos u)\sin v.\cr}$";
real h=0.0125;
begingroup3("parametrization");
draw(surface(xscale(-0.38)*yscale(-0.18)*lo,s,0,1.7,h,bottom=false),
"[0,pi]");
draw(surface(xscale(0.26)*yscale(0.1)*rotate(90)*hi,s,4.9,1.4,h,bottom=false),
"[pi,2pi]");
endgroup3();
begingroup3("boundary");
draw(s.uequals(0),blue+dashed);
draw(s.uequals(pi),blue+dashed);
endgroup3();
add(new void(frame f, transform3 t, picture pic, projection P) {
draw(f,invert(box(min(f,P),max(f,P)),P),"frame");
});
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/7b3b5ae3-a137-3554-d1dc-f2cdb81f3f89%40gmail.com.