12.07.2015 Views

graphics with PSTric..

graphics with PSTric..

graphics with PSTric..

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1.6. Simple CurvesCircles, ellipses, circular arcs and so on can be easily drawn in <strong>PSTric</strong>ks, usingpreset commands. Let’s start <strong>with</strong> circles. The command is \pscircle(what else?) and we’ve to specify the coordinates of the center and thelength of the radius. Recall that the default unit is centimeter, so that toproduce a circle of radius 0.5 cm centered at (2,1), we writeGraphics <strong>with</strong> <strong>PSTric</strong>ksGetting the pointsDrawing DotsSimple LinesEnds of LinesBent Lines and PolygonsSimple Curves\pscircle(2,1){0.5}Since a circle is only a curved “line”, various line parameters discussedearlier can also be used. There is also a starred version \pscircle* whichgives a “solid” circle. See the example below:\begin{center}\begin{pspicture}(-1,-1)(3,8)\pscircle*(1,0.25){0.25}\pscircle[linewidth=0.33]%(1,1){0.5}\pscircle[linewidth=0.25]%(1,2.25){0.75}\pscircle(1,4){1}\pscircle[linestyle=dotted]%(1,6.25){1.25}\end{pspicture}\end{center}Online L A T E X TutorialPart II – Graphicsc○2002, The Indian T E X Users GroupThis document is generated by PDFT E X <strong>with</strong>hyperref, pstricks, pdftricks and pdfscreenpackages in an intel PC running GNU/LINUXand is released under LPPLThe Indian T E X Users GroupFloor iii, sjp Buildings, Cotton HillsTrivandrum 695014, indiahttp://www.tug.org.in

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!