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.

Graphics <strong>with</strong> <strong>PSTric</strong>ks\begin{pspicture}(1,2)...\end{pspicture}is equivalent to\begin{pspicture}(0,0)(1,2) ... \end{pspicture}Getting the pointsDrawing DotsSimple LinesEnds of LinesBent Lines and PolygonsSimple CurvesWe can also ‘display’ the picture by\begin{pspicture}(-0.5,-0.5)(2.5,1.5)\psdots(0,0)(2,0)(1,1)\end{pspicture}This producesCan you see why the second coordinate of the ‘box’ is changed to -0.5and 1.5 from its values 0 and 1 in the previous example?The dots we’ve been drawing so far are all circular and black. How aboutsquare and white dots? Change the input of the previous example as follows:Look at these dots\begin{center}\begin{pspicture}(-0.5,-0.5)(2.5,1.5)\psdots[dotstyle=square](0,0)(2,0)(1,1)\end{pspicture}\end{center}forming the vertices of a triangle.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!