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.

8.1. Simple customizationIf a certain <strong>graphics</strong> object in <strong>PSTric</strong>ks is repeatedly used <strong>with</strong> some customparameter settings, we can save the tedium in typing in these values bysaving it under a new name. (This also comes in handy to make changes ina consistent manner, if we happen to change our mind later).8.1.1. New objectsYou may have noticed that many of our examples contain a colored grid likethe one below:\begin{pspicture}(-2,-2)(2,2)\psgrid[gridcolor=Apricot,%gridlabelcolor=Mahogany,%subgridcolor=Apricot]\psplot[plotstyle=curve,%linecolor=Blue]%{-1.5}{1.5}{x 3 exp x sub}\end{pspicture}-2 -1 0 1 2Since the same grid is used in all the examples, it’d be nice if we can avoid thetedium of typing all the parameter settings again and again; and its wherethe command \newpsobject comes in handy. Thus by defining\newpsobject{colgrid}%{psgrid}%{gridcolor=Apricot,%gridlabelcolor=Mahogany,%subgridcolor=Apricot}210-1-2Custom GraphicsSimple customizationHigher level customizationOnline L A TEX TutorialPart II – Graphics<strong>PSTric</strong>ksE 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 3/23

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

Saved successfully!

Ooh no, something went wrong!