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.

5.6. Setting parametersInstead of setting the parameters origin and \swapaxes locally for eachobject for which we need such effects, we can set them globally <strong>with</strong> the\psset command. This is true for the other <strong>graphics</strong> parameters such aslinewidth, linecolor, linestyle and so on, which we have discussedearlier. The general syntax isMore on CoordinatesCoordinate gridsChanging sizeAnother type of coordinatesMore special coordinatesChanging the systemSetting parameters\psset{parameter1=value1,parameter2=value2,...}The example below illustrates this:\psset{linecolor=Blue,unit=1.5}\begin{pspicture}(-1,0)(1,4)\parabola(1,1)(0,0)\parabola(-1,-1)(0,0)\psset{swapaxes=true}\parabola(1,1)(0,0)\parabola(-1,-1)(0,0)\psset{origin={0,2},linecolor=Red}\parabola(1,1)(0,0)\parabola(-1,-1)(0,0)\psset{swapaxes=false}\parabola(1,1)(0,0)\parabola(-1,-1)(0,0)\end{pspicture}Online 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£ ¡ ¢ ¤ ¥ ¦ © 21/23

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

Saved successfully!

Ooh no, something went wrong!