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.

Graphics <strong>with</strong> <strong>PSTric</strong>ksGetting the pointsDrawing DotsSimple LinesEnds of LinesThe line terminators discussed earlier can be used <strong>with</strong> arcs also. If wewant to show the angle between two (thick) intersecting lines using an arc<strong>with</strong> an arrowhead, we’d like to have the tip of the arrow would just touchthe line. For this, we can use the parameters arcsepA and arcsepB. If weset arcsepA=dim, then the first angle in the \psarc command would beadjusted so that the arc would just touch a line of width dim from thecenter of the arc in the direction of this angle. The parameter arcsepBmakes a similar adjustment in the second angle. The parameter arcsepadjusts both the angles. The example below illustrates this.\begin{center}\begin{pspicture}(-2,0)(2,2)\psline[linewidth=2pt]%(2,2)(0,0)(-2,2)\psarc[arcsepB=2pt]{->}%(0,0){1}{45}{135}\end{pspicture}\end{center}Bent Lines and PolygonsSimple CurvesOnline L A T E X TutorialPart II – Graphics210-2 -1 0 1 2To see the difference, try the same code <strong>with</strong>out the setting of arcsepB.An ellipse is a sort of a stretched circle and can be drawn much thec○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!