博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
LaTeX - tikz画摆线
阅读量:6171 次
发布时间:2019-06-21

本文共 2066 字,大约阅读时间需要 6 分钟。

hot3.png

\documentclass[border=0,tikz]{standalone}\usetikzlibrary{arrows.meta}\usepackage{scalerel} %\scaleobj{1.5}{} 缩放公式大小\begin{document}\begin{tikzpicture}\draw[arrows={-Stealth[length=5pt, inset=4.5pt]}] (-0.55,0) -- (3.75,0)node (xaxis) [below=-0.5mm] {$\scaleobj{0.5}{x}$};\draw[arrows={-Stealth[length=5pt, inset=4.5pt]}] (0,-0.55) -- (0,1.35)node (yaxis) [left=-0.75mm] {$\scaleobj{0.5}{y}$};\draw (-0.12,-0.12) node {$\scaleobj{0.5}{o}$};\draw[color=red,scale=0.25, domain=-1.7:2*4.0, smooth, variable=\t ]plot ( {2*(\t-sin(\t r))}, {2*(1-cos(\t r))} );\draw (1.5,0)--(1.5,1)  coordinate[pos=0.5] (a_c);\draw[line width=0.3pt] (1.48,0.5)--(1.52,0.5);\draw(1.5,0) -- (a_c) node[midway,right=-1mm] {$\scaleobj{0.45}{a}$};\draw(a_c) -- (1.5,1) node[midway,right=-1mm] {$\scaleobj{0.45}{a}$};\draw (0.5,0.5) circle [radius=0.5];\draw (0.5,0)--(0.5,1)  coordinate[pos=0.5] (a_z);\draw[line width=0.3pt] (0.48,0.5)--(0.52,0.5);\draw (0.5,0) -- (a_z) node[midway,right=-1mm] {$\scaleobj{0.45}{a}$};\draw (a_z) -- (0.5,1) node[midway,left=-1mm] {$\scaleobj{0.45}{a}$};\end{tikzpicture}\end{document}

选自 

\documentclass[pstricks,border=15pt,12pt]{standalone}\usepackage{fp}\FPeval\XMin{0-1}\FPeval\XMax{2*pi+1}\usepackage{pst-plot,pst-node}\psset{    algebraic,    linejoin=1,    labels=none,    ticks=none,    dimen=m,    linecolor=lightgray,    linewidth=2\pslinewidth,}\def\x{(t-sin(t))}\def\y{(1-cos(t))}\pstVerb{/I2P {AlgParser cvx exec} bind def}\def\Atom#1{%\begin{pspicture}(\XMin,-1)(\XMax,3)    \psaxes(0,0)(\XMin,-1)(\XMax,3)[$x$,0][$y$,90]    \pnode(!#1 1){C}    \pnode(!#1 /t ED \x I2P \y I2P){P}      \psparametricplot[linecolor=red]{\XMin}{\XMax}{\x|\y}    \pscircle[linecolor=blue](C){1}     % additional accessories    \psline(C|0,0)(C)(P)    \psline[linecolor=green](!#1 0)    \psarcn[linecolor=green,origin={C}](C){1}{-90}{(P)}    \pscircle*[linecolor=red](P){2pt}       \pscircle*[linecolor=blue](C){2pt}\end{pspicture}}\begin{document}    \multido{\n=0.0+0.1}{21}{\Atom{\n\space Pi mul}}\end{document}

enter image description here

转载于:https://my.oschina.net/shaodongtang/blog/2252886

你可能感兴趣的文章
升级迁移前,存储过程统计各个用户下表的数据量,和迁移后的比对
查看>>
sql注入分类
查看>>
初识CSS选择器版本4
查看>>
[Hadoop in China 2011] 朱会灿:探析腾讯Typhoon云计算平台
查看>>
JavaScript之数组学习
查看>>
PHP 设置响应头来解决跨域问题
查看>>
CAS实现SSO单点登录原理
查看>>
博客园美化专用图片链接
查看>>
HDU_1969_二分
查看>>
高等代数葵花宝典—白皮书
查看>>
一种简单的图像修复方法
查看>>
基于DobboX的SOA服务集群搭建
查看>>
C#设计模式之装饰者
查看>>
[noip模拟20170921]模版题
查看>>
获取ip
查看>>
Spring Shell简单应用
查看>>
移动app可开发的意见于分析
查看>>
周总结7
查看>>
类似OutLook布局的开源控件XPanderControls
查看>>
Web前端工程师成长之路——知识汇总
查看>>