- From: "chu-ching huang" <address@hidden>
- To: address@hidden
- Subject: Re: [TeXmacs] Show directive in the TeXmacs Sage Interface
- Date: Wed, 16 Sep 2009 07:00:16 +0800
Hi Offray:
>
Thanks cch for your quick answer. The procedure is not working. This
>
is my TeXmacs code inside the Sage Session:
>
>
x1,y1 = 3,4;
>
x2,y2 = 7,9;
>
x3,y3 = 9,2;
>
A = (x1,0);
>
B = (x2,0);
>
C = (x3,0);
>
P1 = [x1,y1];
>
P2 = (x2,y2);
>
P3 = (x3,y3);
>
g = Graphics();
>
puntos = [A,B,C,P1,P2,P3];
>
g += point(puntos);
>
triangulo = [P1,P2,P3];
>
g += polygon(triangulo);
>
g.ps_out()
Before print out the picture, you have to save it. Then the code is:
>
x1,y1 = 3,4;
>
...
>
g += polygon(triangulo);
>
g.save("test.eps")
>
ps_out("test")
Best regards,
cch
Archive powered by MHonArc 2.6.19.