12.07.2015 Views

graphics with PSTric..

graphics with PSTric..

graphics with PSTric..

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

“filled up” polygon. For example\begin{center}\begin{pspicture}(0,0)(5,3)\pspolygon*(1,1)(2,2)(5,2)(4,1)\end{pspicture}\end{center}Graphics <strong>with</strong> <strong>PSTric</strong>ksGetting the pointsDrawing DotsSimple LinesEnds of LinesBent Lines and PolygonsSimple CurvesgivesFor drawing rectangles, there’s a simpler command \psframe in whichwe need only specify the bottom-left and top-right coordinates. There’s alsoa \psframe* command for a filled-up version. For example,\begin{center}\begin{pspicture}(0,0)(6,4)\psframe(1,1)(3,3)\psframe*(1,1)(2,2)\psframe*(2,2)(3,3)\end{pspicture}\end{center}Online L A T E X TutorialPart II – GraphicsgivesThe corners of a frame can also be rounded. The parameter to set isframearc. If we set framearc=number, then the radius of the rounded cornersis half the number times the width or height of the frame, whicheverc○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!