Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 5764c67416561ab82b35afcf9c650e17 > files > 549

GMT-doc-4.5.2-1.fc13.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
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>7.6 Plotting of histograms</TITLE>
<META NAME="description" CONTENT="7.6 Plotting of histograms">
<META NAME="keywords" CONTENT="GMT_Docs">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="GMT_Docs.css">

<LINK REL="next" HREF="node127.html">
<LINK REL="previous" HREF="node125.html">
<LINK REL="up" HREF="node120.html">
<LINK REL="next" HREF="node127.html">
</HEAD>

<BODY  bgcolor="#ffffff">
<!--Navigation Panel-->
<A NAME="tex2html4386"
  HREF="node127.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html4380"
  HREF="node120.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html4374"
  HREF="node125.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html4382"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html4384"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html4387"
  HREF="node127.html">7.7 A simple location</A>
<B> Up:</B> <A NAME="tex2html4381"
  HREF="node120.html">7. Creating GMT Graphics</A>
<B> Previous:</B> <A NAME="tex2html4375"
  HREF="node125.html">7.5 A 3-D illuminated</A>
 &nbsp; <B>  <A NAME="tex2html4383"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html4385"
  HREF="node255.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION001560000000000000000"></A>
<A NAME="23786"></A>
<BR>
7.6 Plotting of histograms
</H1>

<P>
<A NAME="tex2html1337"
  HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> provides two tools to render histograms: <A NAME="tex2html1338"
  HREF="../man/pshistogram.html"><I><B>pshistogram</B></I></A><A NAME="24435"></A>
and <A NAME="tex2html1339"
  HREF="../man/psrose.html"><I><B>psrose</B></I></A><A NAME="24440"></A>.  The former takes care of regular histograms
whereas the latter deals with polar histograms (rose diagrams,
sector diagrams, and wind rose diagrams).  We will show an
example that involves both programs.  The file <U>fractures.yx</U>
contains a compilation of fracture lengths and directions as
digitized from geological maps.  The file <U>v3206.t</U> contains
all the bathymetry measurements from <I>Vema</I> cruise 3206.
Our complete figure (Figure&nbsp;<A HREF="#fig:GMT_example_06">7.6</A>) was made running
this script:

<P>
<BR CLEAR="ALL">
<HR>
<BR>
<PRE>#!/bin/sh
#               GMT EXAMPLE 06
#
# Purpose:      Make standard and polar histograms
# GMT progs:    pshistogram, psrose
# Unix progs:   rm
#
ps=example_06.ps
psrose fractures.d -: -A10r -S1.8in -U/-2.25i/-0.75i/"Example 6 in Cookbook" -P -Gblack -R0/1/0/360 \
        -X2.5i -K -B0.2g0.2/30g30 &gt; $ps
pshistogram -Ba2000f1000:"Topography (m)":/a10f5:"Frequency"::,%::."Two types of histograms":WSne \
        v3206.t -R-6000/0/0/30 -JX4.8i/2.4i -Ggray -O -Y5.5i -X-0.5i -Lthinner -Z1 -W250 &gt;&gt; $ps
rm -f .gmt*
</PRE>
<BR CLEAR="ALL">
<HR>
<DIV ALIGN="CENTER"><A NAME="fig:GMT_example_06"></A><A NAME="24448"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 7.6:</STRONG>
Two kinds of histograms.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER"><IMG
 WIDTH="352" HEIGHT="528" ALIGN="BOTTOM" BORDER="0"
 SRC="img163.png"
 ALT="\includegraphics[scale=0.5]{scripts/example_06}"></DIV></TD></TR>
</TABLE>
</DIV>

<P>
<A NAME="23796"></A>

<P>
<HR>
<!--Navigation Panel-->
<A NAME="tex2html4386"
  HREF="node127.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html4380"
  HREF="node120.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html4374"
  HREF="node125.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html4382"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html4384"
  HREF="node255.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html4387"
  HREF="node127.html">7.7 A simple location</A>
<B> Up:</B> <A NAME="tex2html4381"
  HREF="node120.html">7. Creating GMT Graphics</A>
<B> Previous:</B> <A NAME="tex2html4375"
  HREF="node125.html">7.5 A 3-D illuminated</A>
 &nbsp; <B>  <A NAME="tex2html4383"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html4385"
  HREF="node255.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>
Paul Wessel
2010-01-14
</ADDRESS>
</BODY>
</HTML>