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.5. Bent Lines and PolygonsAs in the case of \psdots we can draw multiple lines <strong>with</strong> a single \pslinecommand. For example,\begin{center}\begin{pspicture}(0,0)(5,2)\psline(1,1)(2,2)(3,1)(4,2)(5,1)\end{pspicture}\end{center}Graphics <strong>with</strong> <strong>PSTric</strong>ksGetting the pointsDrawing DotsSimple LinesEnds of LinesBent Lines and PolygonsSimple Curvesgives2100 1 2 3 4 5Note that the coordinate grid is not produced by the code given alongside.The corners in the above picture can be rounded by giving a positivevalue to the linearc parameter which has default value 0 pt. It is actuallythe radius of the arc drawn at the corners. Thus\begin{center}\begin{pspicture}(0,0)(5,2)\psline[linearc=0.25]%(1,1)(2,2)(3,1)(4,2)(5,1)\end{pspicture}\end{center}givesOnline 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!