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.

\begin{pspicture}(-2,-2)(2,2)\pscircle*[linecolor=Lavender](0,0){2}\SpecialCoor\pspolygon*[linecolor=CornflowerBlue]%(2;234)(2;90)(2;306)(2;162)(2;18)\end{pspicture}More on CoordinatesCoordinate gridsChanging sizeAnother type of coordinatesMore special coordinatesChanging the systemSetting parametersBy default, angles in polar coordinates are to be specified in degrees; butthis can be changed by the command\degrees[number]where number is the number of parts into which the circle is divided. Thusfor example, a regular heptagon can be easily drawn (<strong>with</strong>out calculatingthe actual angles), by specifying \degrees[7], as in the example below:Online L A T E X TutorialPart II – Graphics<strong>PSTric</strong>ks\begin{pspicture}(-2,-2)(2,2)\pscircle*[linecolor=Orange](0,0){2}\SpecialCoor\degrees[7]\pspolygon*[linecolor=GreenYellow]%(2;1)(2;2)(2;3)(2;4)(2;5)(2;6)(2;7)\end{pspicture}The command \degrees can be used even <strong>with</strong>out invoking the \SpecialCoor.Thus \degrees[100] is a great help in drawing pie charts, where the datais given in percents, as in the example below:E 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£ ¡ ¢ ¤ ¥ ¦ © 11/23

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

Saved successfully!

Ooh no, something went wrong!