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 127 128 129 130 131 132 133 134 135 136 137 138
|
<!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>6.10 A geographical bar graph plot</TITLE>
<META NAME="description" CONTENT="6.10 A geographical bar graph plot">
<META NAME="keywords" CONTENT="GMT_Docs">
<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="GMT_Docs.css">
<LINK REL="next" HREF="node84.html">
<LINK REL="previous" HREF="node82.html">
<LINK REL="up" HREF="node73.html">
<LINK REL="next" HREF="node84.html">
</HEAD>
<BODY bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html2192"
HREF="node84.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.gif"></A>
<A NAME="tex2html2186"
HREF="node73.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.gif"></A>
<A NAME="tex2html2180"
HREF="node82.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.gif"></A>
<A NAME="tex2html2188"
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.gif"></A>
<A NAME="tex2html2190"
HREF="node149.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.gif"></A>
<BR>
<B> Next:</B> <A NAME="tex2html2193"
HREF="node84.html">6.11 Making a 3-D</A>
<B> Up:</B> <A NAME="tex2html2187"
HREF="node73.html">6. Cook-book</A>
<B> Previous:</B> <A NAME="tex2html2181"
HREF="node82.html">6.9 Plotting time-series along</A>
  <B> <A NAME="tex2html2189"
HREF="node1.html">Contents</A></B>
  <B> <A NAME="tex2html2191"
HREF="node149.html">Index</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
<H1><A NAME="SECTION0014100000000000000000"></A>
<A NAME="10937"></A>
<BR>
6.10 A geographical bar graph plot
</H1>
<P>
Our next and perhaps silliest example presents a
three-dimensional bargraph plot showing the geographic
distribution of the membership in the American Geophysical
Union (AGU). The input data was taken from the 1991 AGU
member directory and added up to give total members per
continent. We decide to plot a 3-D column centered on
each continent with a height that is proportional to the
logarithm of the membership. A log<IMG
WIDTH="17" HEIGHT="29" ALIGN="MIDDLE" BORDER="0"
SRC="img9.gif"
ALT="$_{10}$">-scale is
used since the memberships vary by almost 3 orders of
magnitude. We choose a plain linear projection for the
basemap and add the columns and text on top. Our script reads:
<P>
<P>
<BR>
<P>
<BR CLEAR="ALL">
<HR>
<BR>
<PRE>
pscoast -R-180/180/-90/90 -JX8i/5id -Dc -G0 -E200/40 -K -U"Example 10 in Cookbook" >! example_10.ps
psxyz agu.d -R-180/180/-90/90/1/100000 -JX -JZ2.5il -So0.3ib1 -G140 -W0.5p -O -K -E200/40 \
-B60g60/30g30/a1p:Memberships:WSneZ >> example_10.ps
$AWK '{print $1-10, $2, 20, 0, 0, 7, $3}' agu.d | pstext -R-180/180/-90/90 -JX -O -K -E200/40 -G255 \
-S0.5p >> example_10.ps
echo "4.5 6 30 0 5 2 AGU 1991 Membership Distribution" | pstext -R0/11/0/8.5 -Jx1i -O \
>> example_10.ps
\rm -f .gmtcommands
</PRE>
<P>
<BR>
<BR>
<P>
<BR CLEAR="ALL">
<HR>
<P>
with the result presented in Figure <A HREF="node83.html#fig:GMT_example_10">6.10</A>.
<P>
<P></P>
<DIV ALIGN="CENTER"><A NAME="fig:GMT_example_10"></A><A NAME="11006"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 6.10:</STRONG>
Geographical bar graph</CAPTION>
<TR><TD><IMG
WIDTH="578" HEIGHT="373" BORDER="0"
SRC="img110.gif"
ALT="\begin{figure}\centering\epsfig{figure=eps/GMT_example_10.eps}\end{figure}"></TD></TR>
</TABLE>
</DIV><P></P>
<P>
<A NAME="10983"></A>
<P>
<BR><HR>
<ADDRESS>
Paul Wessel
2001-04-18
</ADDRESS>
</BODY>
</HTML>
|