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.

The last command we describe for data plotting is \listplot. Here, wecan give the data as coordinate pairs, separated only by spaces, as an argumentto the command itself as in the example below:\begin{pspicture}(0,0)(5,6)\renewcommand{%\pshlabel}[1]{%\color{Mahogany} #1}\renewcommand{%\psvlabel}[1]{%\color{Mahogany} #1}\psaxes[linecolor=Apricot]%(6,6)\listplot[plotstyle=curve,%showpoints=true,%linecolor=Blue]%{1 11.5 1.22 1.62.5 2.33 3.23.5 44 4.54.5 4.85 55.5 5}\end{pspicture}0 1 2 3 4 5 6Here the data list is first expanded by TEX and then by PostScript. So, we canuse PostScript commands to manipulate the data <strong>with</strong>in this command. Forexample, we can draw the “inverse” graph of the above graph by interchangingthe coordinates of each points using the exch command of PostScript.6543210••••••••• •Plotting TricksFunction plottingAxes of coordinatesData plottingOnline 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○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£ ¡ ¢ ¤ ¥ ¦ © 29/31

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

Saved successfully!

Ooh no, something went wrong!