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.

\definecolor{PaleApricot}{cmyk}{0,0.12,0.32,0}\begin{pspicture}(-2,-2)(2,2)\degrees[100]\pswedge*[linecolor=PaleApricot](0,0){2}{0}{40.2}\pswedge*[linecolor=Apricot](0,0){2}{40.2}{67.6}\pswedge*[linecolor=Tan](0,0){2}{67.6}{87.9}\pswedge*[linecolor=Mahogany](0,0){2}{87.9}{100}\end{pspicture}Angles can be specified in radians by using the command \radians. It isequivalent to \degrees[6.28319]. (Remember that Ȧ radians = 180 ◦ andthat Ȧ is approximately equal to 3.141592.)Again in \SpecialCoor, angles can be specified in some other ways. Wecan specify a pair of coordinates indicating the direction of the angle asillustrated in the example below. (Note in particular the braces { } surroundingthe coordinate pair.)\begin{pspicture}(0,0)(4,3)\psline[linecolor=Blue](4,1)(0,0)(3,3)\SpecialCoor\psarc[linecolor=Red](0,0){1}{(4,1)}{(3,3)}\end{pspicture}Another way of specifying an angle is to use raw PostScript code whichevaluates a number. The code should be preceded by !. For example, sup-More on CoordinatesCoordinate gridsChanging sizeAnother type of coordinatesMore special coordinatesChanging the systemSetting parametersOnline L A T E X TutorialPart II – Graphics<strong>PSTric</strong>ksE 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£ ¡ ¢ ¤ ¥ ¦ © 12/23

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

Saved successfully!

Ooh no, something went wrong!