KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당

새로 생겨난 따근따근한 패키지 tzplot으로 해보세요. 간단하게 그릴 수 있습니다.

\documentclass{article}

\usepackage{tzplot}

\begin{document}

\begin{tikzpicture}
\tzhelplines(-1,-1)(9,7)
\tzaxes[-](8,6)
\tzaxisy[-]<8>{0}{6}
\tzaxisx[-,red]<2.5>{0}{8}
\tzticksy(-3pt:2pt)
  {.5/$d_1$,1/$1-d_1-2d_2$,2.5/$d_2$,3.5/$d_1+d_2$,5.5/$1-d_1-d_2$}
\tzticksy*<8>(-2pt:3pt){1,2.5,3.5}
\tzticksx{0/$d_1$,8/$d_1+d_2$}
\tzticksx<-.5>{4/$x_d$}
\tzcdot(0,0.5)(3pt) \tzcdot(8,3.5)(3pt)
\tzline[blue](0,0.5)(8,3.5)
\tzcdot(0,5.5)(3pt) \tzcdot(8,1)(3pt)
\tzline[green](0,5.5)(8,1)
\end{tikzpicture}

\end{document}

s.png

 

KTUG 한국 텍 사용자 그룹