KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
"It seems strange to meet computer geeks who're still primarily running Windows... as if they were still cooking on a wood stove or something." - mbp
FrontPageLambdaWhatsUpToDate › IsCho/PSTricks

Plotting Functions with PSTricks


* presented at KTUG 5Áֳ⠱â³ä Çмú´ëȸ (2007³â 1¿ù 27ÀÏ)

smile-ischo.jpg
polynomial-ischo1.jpg


* ÇÔ¼ö¸¦ Ç÷ÔÇϱâ À§ÇÑ ÆÐÅ°Áö ¼Ò°³
  1. pstricks and pst-plot:
  2. pstricks-add:
  3. pst-func:
* °øºÎÇϱâ
  1. pstricks ±âº»±â´É »ç¿ë (Çʼö)
  2. °í±Þ±â´É »ç¿ë (Çʼö)
    • pstricks-add ¸Å´º¾ó ÂüÁ¶
    • \usepackage{pstricks-add}
      • pstricks, pst-plot ÀÚµ¿·ÎµåµÊ.
    • pst-infixplot ÆÐÅ°ÁöÀÇ infix notation »ç¿ë±â´ÉÀº pstricks-add ÆÐÅ°ÁöÀÇ algebraic(¶ÇÇÑ polarplot) ¿É¼Ç¿¡ ¿ÏÀüÈ÷ ¹Ý¿µµÇ¾î ÀÖÀ¸¹Ç·Î, pst-infixplot ÆÐÅ°Áö¸¦ »ç¿ëÇÒ ÇÊ¿ä ¾øÀ½.
      %% À§ ½º¸¶ÀÏÀÇ ¼Ò½º (inspired by ischo's children)
      %% latex -> dvips -> ps2pdf
      \documentclass[dvips]{oblivoir}
      \usepackage{pstricks-add}
      \begin{document}
      \begin{pspicture}[showgrid=false](-1,-1)(3,2)
        %\psaxes[ticks=none]{->}(-.5,-.5)(-1,-1)(2.5,3)
        \psset{linewidth=1.5pt,fillstyle=solid}
        \pscircle[fillcolor=yellow](1,1){1cm}
        \psarc[fillcolor=yellow](1,1){0.75}{193}{347}
        \psplot[algebraic]{1.65}{1.85}{-2/3*x+2}
        \psplot[algebraic]{0.15}{0.35}{2/3*(x+1)}
        \psellipse[fillcolor=black](.6,1.3)(.15,.25)
        \psellipse[fillcolor=black](1.4,1.3)(.15,.25)
        \pscircle[fillcolor=white](.55,1.4){.8mm}
        \pscircle[fillcolor=white](1.35,1.4){.8mm}
      \end{pspicture}
      \end{document}
      
  3. ºÎ°¡±â´É »ç¿ë (Ãßõ)
    • pst-func ¸Å´º¾ó ÂüÁ¶
    • \usepackage{pst-func}
      • pstricks-add ÀÚµ¿·ÎµåµÊ.
    • %% À§ 3Â÷ ÇÔ¼öÀÇ ±×·¡ÇÁÀÇ ¼Ò½º
      \documentclass[dvips]{oblivoir}
      %\usepackage{pstricks-add}
      \usepackage{pst-func}
      \begin{document}
      \psset{unit=1.3}
      \begin{pspicture}(-1.5,-1.3)(3.2,1.8)
        \psaxes[Dy=2,labelFontSize=\tiny](0,0)(-1.5,-1.3)(3.2,2.2)
        \psset{coeff=1 -0.5 -1 0.5,plotpoints=1000,linewidth=1.2pt}
        \psset{dotscale=1.5}
        \psPolynomial[markZeros,linecolor=blue]{-1.3}{2.6}
        \psset{zeroLineStyle=dotted,dotsep=1pt,zeroLineTo=0}
        \psset{coeff=1 -0.5 -1 0.5,markZeros,dotstyle=o}
        \psPolynomial[Derivation=1,linestyle=none]{-0.67}{2}
        \uput[u](3,1.7){$f(x)=1-0.5x-x^2+0.5x^3$}
      \end{pspicture}\psset{unit=1cm}
      \end{document}
      
  4. ±âŸ
    • pst-math: À§ ÆÐÅ°Áö¿¡ ¾ø´Â ¸î°¡Áö Ãß°¡±â´ÉÀÌ ÀÖÀ¸³ª, ´ëºÎºÐÀÇ ±â´ÉÀº À§ÀÇ ÆÐÅ°Áö·Î ±¸ÇöÇÒ ¼ö ÀÖÀ½. °ü½É ÀÖ´Â °æ¿ì¿¡ º¼ ¼ö ÀÖµµ·Ï ¼Ò°³ÇÔ.

^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2007-02-03 01:19:02
Processing time 0.0353 sec