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.

such that the required point has x-coordinate equal to that of the first pointand y-coordinate equal to the y-coordinate of the second point. The generalsyntax is(coordinates1|coordinates2)Thus in our example, the point B can be specified asMore on CoordinatesCoordinate gridsChanging sizeAnother type of coordinatesMore special coordinatesChanging the systemSetting parameters(4;50|0,0)(Note that the coordinates of the two reference points are given <strong>with</strong>out enclosingparentheses and a vertical bar | separates these coordinates.) Thusanother way of drawing the above triangle is by\begin{pspicture}(0,-1)(3,4)\SpecialCoor\pspolygon[linecolor=Blue](0,0)(4;50)(4;50|0,0)\end{pspicture}Online L A T E X TutorialPart II – Graphics<strong>PSTric</strong>ksAs an another illustration of this technique, consider the figure below:EDA40 4cmTaking A as (0, 0), we can specify C and D by polar coordinates as (4;40)and (6;40). Using the technique just described, B can be specified as(4;40|0,0) and E as (4;40|6;40). Thus this figure (<strong>with</strong>out the labels,of course) can be produced as shown below:CB2cmE Krishnan, CV Radhakrishnan and AJ Alexconstitute the <strong>graphics</strong> tutorial team.Comments and suggestions may be mailed totutorialteam@tug.org.inc○2002, 2003, 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£ ¡ ¢ ¤ ¥ ¦ © 16/23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!