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.

Instead of scaling by the same amount horizontally and vertically, we canhave unequal scaling by setting the xunit and yunit separately, as shownbelow:\begin{pspicture}(0,0)(3,2)\pspolygon[linecolor=Blue]%(0,0)(2,0)(1,1)\end{pspicture}\hspace{2cm}\begin{pspicture}(0,0)(3,2)\pspolygon[xunit=1.5cm,%yunit=0.5cm,%linecolor=Red]%(0,0)(2,0)(1,1)\end{pspicture}Note that the xunit and yunit settings do not affect the radius of circles(but they do affect the center) as illustrated below:More on CoordinatesCoordinate gridsChanging sizeAnother type of coordinatesMore special coordinatesChanging the systemSetting parametersOnline L A T E X TutorialPart II – Graphics<strong>PSTric</strong>ks\begin{pspicture}(0,0)(4,2)\psgrid{gridcolor=Apricot,%gridlabelcolor=Mahogany,%subgridcolor=Apricot}\pscircle[linecolor=Blue](1,1){0.5}\pscircle[xunit=1.5cm,%yunit=0.5cm,%linecolor=Red]%(2,2){0.5}\end{pspicture}0 1 2 3 4The radius can also be scaled by setting the “runit” parameter as in the nextexample:210E 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£ ¡ ¢ ¤ ¥ ¦ © 8/23

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

Saved successfully!

Ooh no, something went wrong!