KTUG 한국 텍 사용자 그룹

Menu

KTUG :: 마당

Winplot을 이용해봅니다.

사인, 코사인 그래프를 그리고 이를 PicTeX 소스로 내보냅니다. 


extracting_pictex_source_from_Winplot.png


이렇게 얻은 소스 끝에다 \bye를 붙이고 플레인 TeX으로 컴파일하면 되는데, 여기서는 latex 컴파일하도록 조금 바꿨습니다. 


sine_and_cosine_graph_with_Winplot.png


\documentclass{standalone}


\usepackage{pictex} % > tlmgr install pictex in TL2015 scheme-small

% \input prepictex.tex

% \input postpictex.tex


\begin{document}


\beginpicture

\setcoordinatesystem units <0.77670cm,0.77670cm>

\put {\phantom{.}} at -1.72895 -4.84274

\put {\phantom{.}} at -1.72895 4.84277

\put {\phantom{.}} at 8.57105 -4.84274

\put {\phantom{.}} at 8.57105 4.84277

\setlinear

\setshadesymbol <z,z,z,z> ({\fiverm .})

% x axis begin

\putrule from -1.71865 0.00000 to 8.56075 0.00000

\arrow <0.080cm> [0.500,0.900] from 8.53145 0.00000 to 8.54610 0.00000

% x axis end

% x-ticks begin

\putrule from -1.00000 -0.07326 to -1.00000 0.07326

\putrule from 1.00000 -0.07326 to 1.00000 0.07326

\putrule from 2.00000 -0.07326 to 2.00000 0.07326

\putrule from 3.00000 -0.07326 to 3.00000 0.07326

\putrule from 4.00000 -0.07326 to 4.00000 0.07326

\putrule from 5.00000 -0.07326 to 5.00000 0.07326

\putrule from 6.00000 -0.07326 to 6.00000 0.07326

\putrule from 7.00000 -0.07326 to 7.00000 0.07326

\putrule from 8.00000 -0.07326 to 8.00000 0.07326

% x-ticks end

% y axis begin

\putrule from 0.00000 -4.83305 to 0.00000 4.83309

\arrow <0.080cm> [0.500,0.900] from 0.00000 4.80378 to 0.00000 4.81843

% y axis end

% y-ticks begin

\putrule from -0.07326 -4.00000 to 0.07326 -4.00000

\putrule from -0.07326 -3.00000 to 0.07326 -3.00000

\putrule from -0.07326 -2.00000 to 0.07326 -2.00000

\putrule from -0.07326 -1.00000 to 0.07326 -1.00000

\putrule from -0.07326 1.00000 to 0.07326 1.00000

\putrule from -0.07326 2.00000 to 0.07326 2.00000

\putrule from -0.07326 3.00000 to 0.07326 3.00000

\putrule from -0.07326 4.00000 to 0.07326 4.00000

% y-ticks end

\plot 

-1.72895 -0.15749

-1.71434 -0.14305

-1.69973 -0.12857


(중략)


-1.02767 0.51681

-1.01306 0.52927

-0.99845 0.54161

-0.98384 0.55383

-0.00498 0.99999


(중략)


0.00963 0.99995

0.02424 0.99971

8.55644 0.76325

8.57105 0.75373

/

\put {$-1$} [t] at -1.09893 -0.13919

\put {$1$} [t] at 0.95228 -0.13919

\put {$2$} [t] at 1.96323 -0.13919

\put {$3$} [t] at 2.95953 -0.13919

\put {$4$} [t] at 3.95583 -0.13919

\put {$5$} [t] at 4.95213 -0.13919

\put {$6$} [t] at 5.96309 -0.13919

\put {$7$} [t] at 6.95939 -0.13919

\put {$8$} [t] at 7.95569 -0.13919

\put {$-4$} [r] at -0.33706 -3.87565

\put {$-3$} [r] at -0.33706 -2.87926

\put {$-2$} [r] at -0.33706 -1.88287

\put {$-1$} [r] at -0.33706 -0.88648

\put {$1$} [r] at -0.23450 1.12096

\put {$2$} [r] at -0.23450 2.11735

\put {$3$} [r] at -0.23450 3.11374

\put {$4$} [r] at -0.23450 4.11013

\put {$x$} [b] at 8.40989 0.31505

\put {$y$} [lt] at 0.13179 4.81347

\endpicture


\end{document}






KTUG 한국 텍 사용자 그룹