/usr/share/doc/gmt/html/man/pshistogram.html is in gmt-doc 4.5.12-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 | <!-- Creator : groff version 1.22.2 -->
<!-- CreationDate: Thu Feb 27 18:13:30 2014 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
p { margin-top: 0; margin-bottom: 0; vertical-align: top }
pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
table { margin-top: 0; margin-bottom: 0; vertical-align: top }
h1 { text-align: center }
</style>
<title>PSHISTOGRAM</title>
</head>
<body bgcolor="#ffffff">
<h1 align="center">PSHISTOGRAM</h1>
<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#OPTIONS">OPTIONS</a><br>
<a href="#EXAMPLES">EXAMPLES</a><br>
<a href="#BUGS">BUGS</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>
<hr>
<h2>NAME
<a name="NAME"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">pshistogram
− Bin data and plot histograms</p>
<h2>SYNOPSIS
<a name="SYNOPSIS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><b>pshistogram</b>
<i>file</i> <b>−Jx</b>|<b>X</b><i>parameters</i>
<b>−W</b><i>bin_width</i> [ <b>−A</b> ] [
<b>−B</b>[<b>p</b>|<b>s</b>]<i>parameters</i> ] [
<b>−C</b><i>cptfile</i> ] [
<b>−E</b><i>azimuth</i>/<i>elevation</i> ] [
<b>−F</b> ] [ <b>−G</b><i>fill</i> ] [
<b>−H</b>[<b>i</b>][<i>nrec</i>] ] [
<b>−Jz</b>|<b>Z</b><i>parameters</i> ] [
<b>−I</b>[<b>o</b>|<b>O</b>] ] [ <b>−K</b> ] [
<b>−L</b><i>pen</i> ] [ <b>−O</b> ] [
<b>−P</b> ] [ <b>−Q</b> ] [
<b>−R</b><i>xmin</i>/<i>xmax</i>/<i>ymin</i>/<i>ymax</i>[<b>r</b>]
] [ <b>−S</b> ] [ <b>−T</b><i>col</i> ] [
<b>−U</b>[<i>just</i>/<i>dx</i>/<i>dy</i>/][<b>c</b>|<i>label</i>]
] [ <b>−V</b> ] [
<b>−X</b>[<b>a</b>|<b>c</b>|<b>r</b>][<i>x-shift</i>[<b>u</b>]]
] [
<b>−Y</b>[<b>a</b>|<b>c</b>|<b>r</b>][<i>y-shift</i>[<b>u</b>]]
] [ <b>−Z</b><i>type</i> ] [
<b>−c</b><i>copies</i> ] [
<b>−bi</b>[<b>s</b>|<b>S</b>|<b>d</b>|<b>D</b>[<i>ncol</i>]|<b>c</b>[<i>var1</i><b>/</b><i>...</i>]]
] [ <b>−f</b>[<b>i</b>|<b>o</b>]<i>colinfo</i> ]</p>
<h2>DESCRIPTION
<a name="DESCRIPTION"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><b>pshistogram</b>
reads <i>file</i> [or standard input] and examines data
column <i>col</i> to calculate histogram parameters based on
the bin-width provided. Using these parameters, scaling, and
optional range parameters it will generate <i>PostScript</i>
code that plots a histogram. A cumulative histogram may also
be specified.</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">
<p><i>file</i></p></td>
<td width="5%"></td>
<td width="78%">
<p>ASCII [or binary, see <b>−b</b>] datafile. If no
file is given, <b>pshistogram</b> will read standard
input.</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">
<p><b>−Jx</b></p></td>
<td width="5%"></td>
<td width="78%">
<p><i>xscale[/yscale]</i> (Linear scale(s) in distance
unit/data unit).</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">
<p><b>−W</b></p></td>
<td width="5%"></td>
<td width="78%">
<p>Sets the bin width used for histogram calculations.</p></td></tr>
</table>
<h2>OPTIONS
<a name="OPTIONS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">No space
between the option flag and the associated arguments.</p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p style="margin-top: 1em"><b>−A</b></p></td>
<td width="4%"></td>
<td width="78%">
<p style="margin-top: 1em">Plot the histogram horizontally
from x = 0 [Default is vertically from y = 0].</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−B</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Sets map boundary annotation and tickmark intervals; see
the <b><A HREF="psbasemap.html">psbasemap</A></b> man page for all the details.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−C</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Give a color palette file. The mid x-value for each bar
is used to look-up the bar color.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−E</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Sets the viewpoint’s azimuth and elevation (for
perspective view) [180/90].</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−F</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Center bin on each value. [Default is left edge].</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−G</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Select filling of bars [Default is no fill]. (See
SPECIFYING FILL below).</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−H</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Input file(s) has header record(s). If used, the default
number of header records is <b><A HREF="gmtdefaults.html#N_HEADER_RECS">N_HEADER_RECS</A></b>. Use
<b>−Hi</b> if only input data should have header
records [Default will write out header records if the input
data have them]. Blank lines and lines starting with # are
always skipped.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−I</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Inquire about min/max x and y after binning. No plotting
is done. Append <b>o</b> to output an ASCII table of the
resulting x,y data to stdout. Alternatively, append <b>O</b>
to output all x,y bin data even when y == 0.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−K</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>More <i>PostScript</i> code will be appended later
[Default terminates the plot system].</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−L</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Draw bar outline using the specified pen thickness.
[Default is no outline]. (See SPECIFYING PENS below).</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−O</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Selects Overlay plot mode [Default initializes a new
plot system].</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−P</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Selects Portrait plotting mode [Default is Landscape,
see <b><A HREF="gmtdefaults.html">gmtdefaults</A></b> to change this].</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−Q</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Draw a cumulative histogram.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−R</b></p></td>
<td width="4%"></td>
<td width="78%">
<p><i>xmin</i>, <i>xmax</i>, <i>ymin</i>, and <i>ymax</i>
specify the Region of interest. For geographic regions,
these limits correspond to <i>west, east, south,</i> and
<i>north</i> and you may specify them in decimal degrees or
in [+-]dd:mm[:ss.xxx][W|E|S|N] format. Append <b>r</b> if
lower left and upper right map coordinates are given instead
of w/e/s/n. The two shorthands <b>−Rg</b> and
<b>−Rd</b> stand for global domain (0/360 and
-180/+180 in longitude respectively, with -90/+90 in
latitude). Alternatively, specify the name of an existing
grid file and the <b>−R</b> settings (and grid
spacing, if applicable) are copied from the grid. For
calendar time coordinates you may either give (a) relative
time (relative to the selected <b><A HREF="gmtdefaults.html#TIME_EPOCH">TIME_EPOCH</A></b> and in the
selected <b><A HREF="gmtdefaults.html#TIME_UNIT">TIME_UNIT</A></b>; append <b>t</b> to
<b>−JX</b>|<b>x</b>), or (b) absolute time of the form
[<i>date</i>]<b>T</b>[<i>clock</i>] (append <b>T</b> to
<b>−JX</b>|<b>x</b>). At least one of <i>date</i> and
<i>clock</i> must be present; the <b>T</b> is always
required. The <i>date</i> string must be of the form
[-]yyyy[-mm[-dd]] (Gregorian calendar) or yyyy[-Www[-d]]
(ISO week calendar), while the <i>clock</i> string must be
of the form hh:mm:ss[.xxx]. The use of delimiters and their
type and positions must be exactly as indicated (however,
input, output and plot formats are customizable; see
<b><A HREF="gmtdefaults.html">gmtdefaults</A></b>). If not given, <b>pshistogram</b> will
automatically find reasonable values for the region.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−S</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Draws a stairs-step diagram which does not include the
internal bars of the default histogram.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−T</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Specify which column to use for the histogram data.
First column is 0 [0].</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−U</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Draw Unix System time stamp on plot. By adding
<i>just/dx/dy/</i>, the user may specify the justification
of the stamp and where the stamp should fall on the page
relative to lower left corner of the plot. For example,
BL/0/0 will align the lower left corner of the time stamp
with the lower left corner of the plot. Optionally, append a
<i>label</i>, or <b>c</b> (which will plot the command
string.). The <b><A HREF="GMT.html">GMT</A></b> parameters <b><A HREF="gmtdefaults.html#UNIX_TIME">UNIX_TIME</A></b>,
<b><A HREF="gmtdefaults.html#UNIX_TIME_POS">UNIX_TIME_POS</A></b>, and <b><A HREF="gmtdefaults.html#UNIX_TIME_FORMAT">UNIX_TIME_FORMAT</A></b> can affect
the appearance; see the <b><A HREF="gmtdefaults.html">gmtdefaults</A></b> man page for
details. The time string will be in the locale set by the
environment variable <b>TZ</b> (generally local time).</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−V</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Selects verbose mode, which will send progress reports
to stderr [Default runs "silently"].</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−X −Y</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Shift plot origin relative to the current origin by
(<i>x-shift,y-shift</i>) and optionally append the length
unit (<b>c</b>, <b>i</b>, <b>m</b>, <b>p</b>). You can
prepend <b>a</b> to shift the origin back to the original
position after plotting, or prepend <b>r</b> [Default] to
reset the current origin to the new location. If
<b>−O</b> is used then the default
(<i>x-shift,y-shift</i>) is (0,0), otherwise it is (r1i,
r1i) or (r2.5c, r2.5c). Alternatively, give <b>c</b> to
align the center coordinate (x or y) of the plot with the
center of the page based on current page size.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−Z</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Choose between 6 types of histograms: 0 = counts
[Default], 1 = frequency_percent, 2 = log (1.0 + count), 3 =
log (1.0 + frequency_percent), 4 = log10 (1.0 + count), 5 =
log10 (1.0 + frequency_percent).</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−bi</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Selects binary input. Append <b>s</b> for single
precision [Default is <b>d</b> (double)]. Uppercase <b>S</b>
or <b>D</b> will force byte-swapping. Optionally, append
<i>ncol</i>, the number of columns in your binary input file
if it exceeds the columns needed by the program. Or append
<b>c</b> if the input file is netCDF. Optionally, append
<i>var1</i><b>/</b><i>var2</i><b>/</b><i>...</i> to specify
the variables to be read. [Default is 2 input columns].</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−c</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Specifies the number of plot copies. [Default is 1].</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p><b>−f</b></p></td>
<td width="4%"></td>
<td width="78%">
<p>Special formatting of input and/or output columns (time
or geographical data). Specify <b>i</b> or <b>o</b> to make
this apply only to input or output [Default applies to
both]. Give one or more columns (or column ranges) separated
by commas. Append <b>T</b> (absolute calendar time),
<b>t</b> (relative time in chosen <b><A HREF="gmtdefaults.html#TIME_UNIT">TIME_UNIT</A></b> since
<b><A HREF="gmtdefaults.html#TIME_EPOCH">TIME_EPOCH</A></b>), <b>x</b> (longitude), <b>y</b>
(latitude), or <b>f</b> (floating point) to each column or
column range item. Shorthand
<b>−f</b>[<b>i</b>|<b>o</b>]<b>g</b> means
<b>−f</b>[<b>i</b>|<b>o</b>]0<b>x</b>,1<b>y</b>
(geographic coordinates).</p></td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em"><b>SPECIFYING
PENS</b></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="4%">
<p style="margin-top: 1em"><i>pen</i></p></td>
<td width="7%"></td>
<td width="78%">
<p style="margin-top: 1em">The attributes of lines and
symbol outlines as defined by <i>pen</i> is a comma
delimetered list of <i>width</i>, <i>color</i> and
<i>texture</i>, each of which is optional. <i>width</i> can
be indicated as a measure (points, centimeters, inches) or
as <b>faint</b>, <b>thin</b>[<b>ner</b>|<b>nest</b>],
<b>thick</b>[<b>er</b>|<b>est</b>],
<b>fat</b>[<b>ter</b>|<b>test</b>], or <b>obese</b>.
<i>color</i> specifies a gray shade or color (see SPECIFYING
COLOR below). <i>texture</i> is a combination of dashes
‘-’ and dots ‘.’.</p></td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em"><b>SPECIFYING
FILL</b></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="6%">
<p style="margin-top: 1em"><i>fill</i></p></td>
<td width="5%"></td>
<td width="78%">
<p style="margin-top: 1em">The attribute <i>fill</i>
specifies the solid shade or solid <i>color</i> (see
SPECIFYING COLOR below) or the pattern used for filling
polygons. Patterns are specified as
<b>p</b><i>dpi/pattern</i>, where <i>pattern</i> gives the
number of the built-in pattern (1-90) <i>or</i> the name of
a Sun 1-, 8-, or 24-bit raster file. The <i>dpi</i> sets the
resolution of the image. For 1-bit rasters: use
<b>P</b><i>dpi/pattern</i> for inverse video, or append
<b>:F</b><i>color</i>[<b>B</b>[<i>color</i>]] to specify
fore- and background colors (use <i>color</i> = - for
transparency). See <b><A HREF="GMT.html">GMT</A></b> Cookbook & Technical
Reference Appendix E for information on individual
patterns.</p> </td></tr>
</table>
<p style="margin-left:11%; margin-top: 1em"><b>SPECIFYING
COLOR</b></p>
<table width="100%" border="0" rules="none" frame="void"
cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">
<p style="margin-top: 1em"><i>color</i></p></td>
<td width="4%"></td>
<td width="78%">
<p style="margin-top: 1em">The <i>color</i> of lines, areas
and patterns can be specified by a valid color name; by a
gray shade (in the range 0−255); by a decimal color
code (r/g/b, each in range 0−255; h-s-v, ranges
0−360, 0−1, 0−1; or c/m/y/k, each in range
0−1); or by a hexadecimal color code (#rrggbb, as used
in HTML). See the <b><A HREF="gmtcolors.html">gmtcolors</A></b> manpage for more
information and a full list of color names.</p></td></tr>
</table>
<h2>EXAMPLES
<a name="EXAMPLES"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">To draw a
histogram of the data v3206.t containing seafloor depths,
using a 250 meter bin width, center bars, and draw bar
outline, use:</p>
<p style="margin-left:11%; margin-top: 1em"><b>pshistogram</b>
v3206.t <b>−JX</b> h <b>−W</b> 250 <b>−F
−L</b> P0.5<b>p −V</b> > plot.ps</p>
<p style="margin-left:11%; margin-top: 1em">If you know the
distribution of your data, you may explicitly specify range
and scales. E.g., to plot a histogram of the y-values (2nd
column) in the file errors.xy using a 1 meter bin width,
plot from -10 to +10 meters @ 0.75 cm/m, annotate every 2 m
and 100 counts, and use black bars, run:</p>
<p style="margin-left:11%; margin-top: 1em"><b>pshistogram</b>
errors.xy <b>−W</b> 1 <b>−R</b>-10/10/0/0
<b>−Jx</b> 0.75<b>c</b>/0.01<b>c −B</b>
2:Error:/100:Counts: <b>−G</b> black <b>−T</b> 1
<b>−V</b> > plot.ps</p>
<p style="margin-left:11%; margin-top: 1em">Since no
y-range was specified, pshistogram will calculate ymax in
even increments of 100.</p>
<h2>BUGS
<a name="BUGS"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em">The
<b>−W</b> option does not yet work properly with time
series data (e.g., <b>−f</b> 0T). Thus, such variable
intervals as months and years are not calculated. Instead,
specify your interval in the same units as the current
setting of <b><A HREF="gmtdefaults.html#TIME_UNIT">TIME_UNIT</A></b>.</p>
<h2>SEE ALSO
<a name="SEE ALSO"></a>
</h2>
<p style="margin-left:11%; margin-top: 1em"><i><A HREF="GMT.html">GMT</A></i>(1),
<i><A HREF="gmtcolors.html">gmtcolors</A></i>(5), <i><A HREF="psbasemap.html">psbasemap</A></i>(1), <i><A HREF="psrose.html">psrose</A></i>(1),
<i><A HREF="psxy.html">psxy</A></i>(1)</p>
<hr>
</body>
</html>
|