码迷,mamicode.com
首页 > 其他好文 > 详细

Fig723.asy

时间:2015-05-04 01:10:09      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:

技术分享
 1 import settings;
 2 outformat="pdf";
 3 tex="xelatex";
 4 usepackage("amsmath");
 5 usepackage("unicode-math");
 6 texpreamble("\setmainfont{XITS}");
 7 texpreamble("\setmathfont{XITS Math}");
 8 import graph;
 9 import math;
10 
11 size(250);
12 
13 pair o=(0,0),a1=(4.9,2.8),a2=(0.9,2.8),a3=(0.9,0.6),a4=(4.9,0.6),c=(2.9,1.7),c1=(2.9,0),c2=(0,1.7),T=(3.8,1.8);
14 
15 draw(a1--a2--a3--a4--cycle);
16 draw((0,c.y)--c--(c.x,0), dashed);
17 
18 
19 xaxis("$x_1$", 0, 5.8, Arrow);
20 yaxis("$x_2$", 0, 3.5, Arrow);
21 
22 label("$O$",o, SW);
23 label("$a_1$",a1,NE);
24 label("$a_2$",a2,NW);
25 label("$a_3$",a3,SW);
26 label("$a_4$",a4,SE);
27 label("$c$",c,NE);
28 label("$c_1$",c1,S);
29 label("$c_2$",c2,W);
30 label("$2h_1$",(2.9,2.8),N);
31 label("$2h_2$",(4.9,1.7),E);
32 label("$T$",T,E);
2015.5.3

技术分享

技术分享
 1 import settings;
 2 outformat="pdf";
 3 tex="xelatex";
 4 usepackage("amsmath");
 5 usepackage("unicode-math");
 6 texpreamble("\setmainfont{XITS}");
 7 texpreamble("\setmathfont{XITS Math}");
 8 import graph;
 9 import math;
10 
11 size(250);
12 
13 pair o=(0,0),a1=(4.9,3.8),a2=(0.9,3.8),a3=(0.9,1.6),a4=(4.9,1.6),c=(2.9,2.7),c1=(2.9,0),c2=(0,2.7),T=(3.8,2.8);
14 
15 draw(a1--a2--a3--a4--cycle);
16 draw((0,c.y)--c--(c.x,0), dashed);
17 
18 
19 xaxis("$x_1$", 0, 7.5, Arrow);
20 yaxis("$x_2$", 0, 5.2, Arrow);
21 
22 label("$O$",o, SW);
23 label("$a_1$",a1,NE);
24 label("$a_2$",a2,NW);
25 label("$a_3$",a3,SW);
26 label("$a_4$",a4,SE);
27 label("$C$",c,NE);
28 label("$c_1$",c1,S);
29 label("$c_2$",c2,W);
30 label("$2a$",(2.9,3.8),N);
31 label("$2b$",(4.9,2.7),E);
32 label("$T$",T,E);
图 7.3.1(1)

 

技术分享
 1 import settings;
 2 outformat="pdf";
 3 tex="xelatex";
 4 usepackage("amsmath");
 5 usepackage("unicode-math");
 6 texpreamble("\setmainfont{XITS}");
 7 texpreamble("\setmathfont{XITS Math}");
 8 import graph;
 9 import math;
10 
11 size(175);
12 
13 pair o=(0,0),a1=(1,1),a2=(-1,1),a3=(-1,-1),a4=(1,-1);
14 
15 draw(a1--a2--a3--a4--cycle);
16 
17 xaxis("$\hat{x}_1$", -1.2, 1.2, Arrow);
18 yaxis("$\hat{x}_2$", -1.2, 1.2, Arrow);
19 
20 label("$O$",o, SE);
21 label("$\hat{a}_1$",a1,NE);
22 label("$\hat{a}_2$",a2,NW);
23 label("$\hat{a}_3$",a3,SW);
24 label("$\hat{a}_4$",a4,SE);
25 label("$1$",(1,0),NE);
26 label("$1$",(0,1),NE);
27 label("$-1$",(-1,0),NW);
28 label("$-1$",(0,-1),SE);
29 label("$\hat{T}$",(0.5,0.6),S);
图 7.3.1(2)

 

Fig723.asy

标签:

原文地址:http://www.cnblogs.com/wangshixi12/p/4475030.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!