이 책과 같은 그래프를 그리는 데 사용할 수 있는 도구를 보여 주시겠어요? (아래 그림 참조). 죄송합니다. 이 질문을 정확히 어디에 게시할 수 있는지 모르겠습니다.
답변1
여러 가지 플로팅 패키지를 사용할 수 있으며 그 중 일부는 매우 정교합니다.
내 패키지 xpicture
는 수학적 도표를 위해 특별히 설계되었습니다.
다음 코드를 사용해 보세요:
\documentclass{standalone}
\usepackage{xpicture}
\begin{document}
\newlpoly{\p}{-5}{3} % Defines y=-5+3x
\renewcommand{\Pictlabelsep}{0.2}
\setlength{\unitlength}{.75cm}
\begin{Picture}(-1.5,-1.5)(6,6)
\cartesianaxes(-1.5,-1.5)(5.5,5.5)
\xVECTOR(5.5,0)(5.6,0)
\xVECTOR(0,5.5)(0,5.6)
\Put[E](5.5,0){$x$}
\Put[N](0,5.5){$y$}
\pictcolor{cyan}
{\thicklines
\PlotFunction{\p}{1.5}{3.25} % Plots p between x=1.5 and x=3.25
\Put(2,1){\circle*{0.2}}
\Put(3,4){\circle*{0.2}}}
\Polyline(2,1)(3,1)(3,4)
\Put[SE](2,1){$\Delta x=1$}
\Put[E](3,2.5){$\Delta y=3$}
\p{3.1}{\x}{\Dx}
\Put[E](3.1,\x){$\leftarrow$ slope 3}
\end{Picture}
\end{document}