1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>2.1.3 Examples</TITLE>
<META NAME="description" CONTENT="2.1.3 Examples">
<META NAME="keywords" CONTENT="tutorial">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="tutorial.css">
<LINK REL="next" HREF="node54.html">
<LINK REL="previous" HREF="node52.html">
<LINK REL="up" HREF="node50.html">
<LINK REL="next" HREF="node54.html">
</HEAD>
<BODY bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html1171"
HREF="node54.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html1165"
HREF="node50.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html1159"
HREF="node52.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html1167"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html1169"
HREF="node79.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html1172"
HREF="node54.html">2.1.4 Exercises</A>
<B> Up:</B> <A NAME="tex2html1166"
HREF="node50.html">2.1 General Information</A>
<B> Previous:</B> <A NAME="tex2html1160"
HREF="node52.html">2.1.2 Specifying fill attributes</A>
  <B> <A NAME="tex2html1168"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html1170"
HREF="node79.html">Index</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION00413000000000000000"></A>
<A NAME="1004"></A>
<BR>
2.1.3 Examples
</H2>
<P>
We will start off using the file <U>data</U> in your directory.
Using the <A NAME="tex2html173"
HREF="http://www.soest.hawaii.edu/gmt"><B>GMT</B></A> utility <A NAME="tex2html174"
HREF="../minmax.html"><I><B>minmax</B></I></A><A NAME="2717"></A> we find the extent of the
data region:
<P>
<PRE>
minmax data
</PRE>
<P>
which returns
<P>
<PRE>
data: N = 7 <1/5> <1/5>
</PRE>
<P>
telling us that the file <U>data</U> has 7 records and gives the
minimum and maximum values for the first two columns. Given our
knowledge of how to set up linear projections with <B>-R</B> and <B>-JX</B>,
try the following:
<P>
<OL>
<LI>Plot the data as transparent circles of size 0.3 inches.
<P>
</LI>
<LI>Plot the data as solid white circles instead.
<P>
</LI>
<LI>Plot the data using 0.5" stars, making them red with a thick (width = 1.5p),
dashed pen.
<P>
</LI>
</OL>
<P>
To simply plot the data as a line we choose no symbol and specify a pen thickness instead:
<P>
<PRE>
psxy data -R -JX -P -B -W0.5p >! plot.ps
</PRE>
<A NAME="1018"></A>
<P>
<BR><HR>
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>
|