加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Stata绘图:绘制一颗红心-姑娘的生日礼物

(2020-11-03 10:09:18)
分类: Stata绘图
drop _all
range t 0 2*_pi 1000

gen x=16*sin(t)^3

gen y=13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t)

egen x_min=min(x)

egen x_max=max(x)

egen y_min=min(y)

egen y_max=max(y)

gen a=(x-x_min)/(x_max-x_min)

gen b=(y-y_min)/(y_max-y_min)

line b a

gr_edit yaxis1.draw_view.setstyle, style(no)

gr_edit xaxis1.draw_view.setstyle, style(no)

gr_edit plotregion1.AddTextBox added_text editor .605 .33

gr_edit plotregion1.added_text_new = 1

gr_edit plotregion1.added_text_rec = 1

gr_edit plotregion1.added_text[1].style.editstyle angle(default)
size(medsmall) color(red) horizontal(left) vertical(middle)
margin(zero) linegap(zero) drawbox(no) boxmargin(zero)
fillcolor(bluishgray) linestyle( width(thin) color(black)
pattern(solid)) box_alignment(east) editcopy

gr_edit plotregion1.added_text[1].style.editstyle size(large)
editcopy

gr_edit plotregion1.added_text[1].text = {}

gr_edit plotregion1.added_text[1].text.Arrpush
亲爱的,生日快乐!

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有