You have to be logged in to leave a comment.
Sign In
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
%------------------------------------------
% $Id$
%
% The GMT Documentation Project
% Copyright (c) 2000-2012.
% P. Wessel, W. H. F. Smith, R. Scharroo, and J. Luis
%------------------------------------------
%
\chapter{Of colors and color legends}
\label{app:M}
\section{Built-in color palette tables}
\index{CPT!built-in set}
\index{color!palette tables}
\thispagestyle{headings}
Figure~\ref{fig:GMT_App_M_1} shows each of the 22 built-in color palettes,
stored in so-called CPT tables\footnote{The 23rd palette is called \emph{random}
and produces a random set of colors suitable for categorical plots.}.
The programs \GMTprog{makecpt} and \GMTprog{grd2cpt} are used to access these master CPT tables
and translate/scale them to fit the user's range of $z$-values.
The top half of the color bars in the Figure shows the original color scale, which can be either discrete or
continuous, though some (like \textbf{globe}) are a mix of the two.
The bottom half the color bar are built by using
\GMTprog{makecpt} \Opt{T-1/1/0.25}, thus splitting the color scale into 8 discrete colors.
\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{GMT_App_M_1}
\caption{The standard 22 CPT files supported by \gmt.}
\label{fig:GMT_App_M_1}
\end{figure}
\section{Labeled and non-equidistant color legends}
\label{app:colorbars}
\index{color!legend}
The use of color legends has already been introduced in Chapter~\ref{ch:7} (examples 2, 16, and 17). Things become a bit more complicated when you want to label the legend with names for certain intervals (like geological time periods in the example below). To accomplish that, one should add a semi-colon and the label name at the end of a line in the CPT table and add the \Opt{L} option to the \GMTprog{psscale} command that draws the color legend. This option also makes all intervals in the legend of equal length, even it the numerical values are not equally spaced.
Normally, the name labels are plotted at the lower end of the intervals. But by adding a \emph{gap} amount (even when zero) to the \Opt{L} option, they are centered. The example below also shows how to annotate ranges using \Opt{Li} (in which case no name labels should appear in the CPT file), and how to switch the color bar around (by using a negative length).
\script{GMT_App_M_2}
\begin{figure}[h]
\centering
\includegraphics[width=\textwidth]{GMT_App_M_2}
\caption{The many forms of color legends created by \protect\GMTprog{psscale}.}
Press p or to see the previous file or,
n or to see the next file
Comments
Integrate AWS S3
Use S3 remote
Select bucket
Access key
Finish
Use AWS S3 as storage!
Browsing data directories saved to S3 is possible with DAGsHub. Let's configure
your repository to easily display your data in the context of any commit!
Specify your S3 bucket
Select Region
af-south-1 - Africa (Cape Town)
ap-northeast-1 - Asia Pacific (Tokyo)
ap-northeast-2 - Asia Pacific (Seoul)
ap-south-1 - Asia Pacific (Mumbai)
ap-southeast-1 - Asia Pacific (Singapore)
ap-southeast-2 - Asia Pacific (Sydney)
ca-central-1 - Canada (Central)
eu-central-1 - EU (Frankfurt)
eu-north-1 - EU (Stockholm)
eu-west-1 - EU (Ireland)
eu-west-2 - EU (London)
eu-west-3 - EU (Paris)
sa-east-1 - South America (São Paulo)
us-east-1 - US East (N. Virginia)
us-east-2 - US East (Ohio)
us-gov-east-1 - US Gov East 1
us-gov-west-1 - US Gov West 1
us-west-1 - US West (N. California)
us-west-2 - US West (Oregon)
Congratulations!
gmt-fork is now integrated with AWS S3!
Delete Storage Key
Are you sure you want to delete this access key?
No
Yes
Integrate Google Cloud Storage
Use Google Storage
Select bucket
Upload key
Finish
Use Google Cloud Storage!
Browsing data directories saved to Google Cloud Storage is possible with DAGsHub. Let's configure
your repository to easily display your data in the context of any commit!
Specify your Google Storage bucket
Congratulations!
gmt-fork is now integrated with Google Cloud Storage!
Delete Storage Key
Are you sure you want to delete this access key?
No
Yes
Integrate Azure Cloud Storage
Use Azure Storage
Select bucket
Set key
Finish
Use Azure Cloud Storage!
Browsing data directories saved to Azure Cloud Storage is possible with DAGsHub. Let's configure
your repository to easily display your data in the context of any commit!
Specify your Azure Storage bucket
Congratulations!
gmt-fork is now integrated with Azure Cloud Storage!
Delete Storage Key
Are you sure you want to delete this access key?
No
Yes
Integrate S3 compatible storage
Use S3 like remote
Select bucket
Access key
Finish
Use any S3 compatible storage!
Browsing data directories saved to S3 compatible storage is possible with DAGsHub. Let's configure
your repository to easily display your data in the context of any commit!
Specify your S3 bucket
Bucket name cannot be the same as the repository name. Please change one of them.
Congratulations!
gmt-fork is now integrated with your S3 compatible storage!