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.

Plotting Tricks\begin{pspicture}(-2,-2)(2,2)2•\psgrid[gridcolor=Apricot,%gridlabelcolor=Mahogany,%1subgridcolor=Apricot]•\psplot[plotstyle=curve,%0•linecolor=Blue,%•plotpoints=5,%-1showpoints=true]%{-1.5}{1.5}{x 3 exp x sub}-2 •\end{pspicture} -2 -1 0 1 2The curve is not at all an accurate picture of the equation. In general, increasingthe plotpoints increases the accuracy of the curve, but also increases theimaging time.Coming back to the plotstyle parameter, we can also set it to ccurve orecurve which draw a \psccurve (closed curve) or a \psecurve (suppressingthe end-points in the picture). Other values are line and polygon which drawa \psline and a \pspolygon respectively. For example, <strong>with</strong> plotstyle=linethe above graph is as shown below:Function plottingAxes of coordinatesData plottingOnline L A TEX TutorialPart II – Graphics<strong>PSTric</strong>ks\begin{pspicture}(-2,-2)(2,2)\psgrid[gridcolor=Apricot,%gridlabelcolor=Mahogany,%subgridcolor=Apricot]\psplot[plotstyle=line,%linecolor=Blue,%plotpoints=10]%{-1.5}{1.5}{x 3 exp x sub}\end{pspicture}210-1-2-2 -1 0 1 2E Krishnan, CV Radhakrishnan and AJ Alexconstitute the <strong>graphics</strong> tutorial team. Commentsand suggestions may be mailed totutorialteam@tug.org.inc○2002, 2003, 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£ ¡ ¢ ¤ ¥ ¦ © 5/31

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

Saved successfully!

Ooh no, something went wrong!