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.3. Simple LinesLet’s see how we draw lines next. The command is \psline <strong>with</strong> the coordinatesof the points to be joined. For exampleLook at the line segment below\begin{center}\begin{pspicture}(0,0)(3.5,2.5)\psline(2,1)(3,2)\end{pspicture}\end{center}equally slanted to the horizontal and the vertical.Graphics <strong>with</strong> <strong>PSTric</strong>ksGetting the pointsDrawing DotsSimple LinesEnds of LinesBent Lines and PolygonsSimple CurvesgivesLook at the line segment belowOnline L A T E X TutorialPart II – Graphicsequally slanted to the horizontal and the vertical.We can draw dashed or dotted lines using the linestyle parameter.Thus\begin{pspicture}(0,0)(2,1)\psline(0,0)(2,0)\psline[linestyle=dashed](2,0)(1,1)\psline[linestyle=dotted](1,1)(0,0)\end{pspicture}givesc○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!