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.

Custom Graphics\begin{pspicture}(0,-1)(4,4.5)\pscustom[style=mystyle]{%\pscurve(0.5,2)(1,1.75)(1.5,2)(2,2.5)%(2.5,2.75)(3,2.6)(3.5,2.25)\scale{0.75 0.5}\pscurve[liftpen=1]%(3.5,2.25)(3,2.6) (2.5,2.75)%(2,2.5)(1.5,2)(1,1.75)(0.5,2)\closepath}\end{pspicture}00 1 2 3 41 2 3 4If both axes are to be scaled by the same factor, we need only specify thisnumber only once <strong>with</strong>in the \scale command.The command \rotate (surprise!) rotates the axes by the angle specifiedin degrees, as in the example below:43243121Simple customizationHigher level customizationOnline L A TEX TutorialPart II – Graphics<strong>PSTric</strong>ks\begin{pspicture}(-2,-1)(4,5)\pscustom[style=mystyle]{%\pscurve(0.5,2)(1,1.75)(1.5,2)(2,2.5)%(2.5,2.75)(3,2.6)(3.5,2.25)\rotate{15}\pscurve[liftpen=1]%(3.5,2.25)(3,2.6) (2.5,2.75)%(2,2.5)(1.5,2)(1,1.75)(0.5,2)\closepath}\end{pspicture}432100 1 2 3 40 1 2 3 4The coordinate axes can be interchanged <strong>with</strong> the \swapaxes command.43210E Krishnan, CV Radhakrishnan and AJ Alexconstitute the <strong>graphics</strong> tutorial team. Commentsand suggestions may be mailed totutorialteam@tug.org.inc○2004, The Indian TEX Users GroupThis document is generated by PDFTEX <strong>with</strong>hyperref, pstricks, pdftricks and pdfscreenpackages in an intel PC running GNU/LINUXand is released under LPPLThe Indian TEX Users GroupFloor III, SJP Buildings, Cotton HillsTrivandrum 695014, INDIAhttp://www.tug.org.in 22/23

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

Saved successfully!

Ooh no, something went wrong!