5
5
import pandas as pd
6
6
from pygmt .clib import Session
7
7
from pygmt .exceptions import GMTInvalidInput
8
- from pygmt .helpers import build_arg_string , fmt_docstring , kwargs_to_strings , use_alias
8
+ from pygmt .helpers import (
9
+ build_arg_string ,
10
+ deprecate_parameter ,
11
+ fmt_docstring ,
12
+ kwargs_to_strings ,
13
+ use_alias ,
14
+ )
9
15
10
16
11
17
@fmt_docstring
18
+ @deprecate_parameter ("color" , "fill" , "v0.8.0" , "v0.12.0" )
19
+ @deprecate_parameter ("uncertaintycolor" , "uncertaintyfill" , "v0.8.0" , "v0.12.0" )
12
20
@use_alias (
13
21
A = "vector" ,
14
22
B = "frame" ,
15
23
C = "cmap" ,
16
24
D = "rescale" ,
17
- E = "uncertaintycolor " ,
18
- G = "color " ,
25
+ E = "uncertaintyfill " ,
26
+ G = "fill " ,
19
27
H = "scale" ,
20
28
I = "shading" ,
21
29
J = "projection" ,
@@ -78,8 +86,8 @@ def velo(self, data=None, **kwargs):
78
86
[Default is 9p,Helvetica,black]; give **+f**\ 0 to deactivate
79
87
labeling. The arrow will be drawn with the pen attributes specified
80
88
by the ``pen`` parameter and the arrow-head can be colored via
81
- ``color ``. The ellipse will be filled with the color or shade
82
- specified by the ``uncertaintycolor `` parameter [Default is
89
+ ``fill ``. The ellipse will be filled with the color or shade
90
+ specified by the ``uncertaintyfill `` parameter [Default is
83
91
transparent], and its outline will be drawn if ``line`` is selected
84
92
using the pen selected (by ``pen`` if not given by ``line``).
85
93
Parameters are expected to be in the following columns:
@@ -111,8 +119,8 @@ def velo(self, data=None, **kwargs):
111
119
[Default is 9p,Helvetica,black]; give **+f**\ 0 to deactivate
112
120
labeling. The arrow will be drawn with the pen attributes specified
113
121
by the ``pen`` parameter and the arrow-head can be colored via
114
- ``color ``. The ellipse will be filled with the color or shade
115
- specified by the ``uncertaintycolor `` parameter [Default is
122
+ ``fill ``. The ellipse will be filled with the color or shade
123
+ specified by the ``uncertaintyfill `` parameter [Default is
116
124
transparent], and its outline will be drawn if ``line`` is selected
117
125
using the pen selected (by ``pen`` if not given by ``line``).
118
126
Parameters are expected to be in the following columns:
@@ -130,8 +138,8 @@ def velo(self, data=None, **kwargs):
130
138
*wedgescale* is not given then we read it from the data file as an
131
139
extra column. Rotation values are multiplied by *wedgemag* before
132
140
plotting. For example, setting *wedgemag* to 1.e7 works well for
133
- rotations of the order of 100 nanoradians/yr. Use ``color `` to set
134
- the fill color or shade for the wedge, and ``uncertaintycolor `` to
141
+ rotations of the order of 100 nanoradians/yr. Use ``fill `` to set
142
+ the fill color or shade for the wedge, and ``uncertaintyfill `` to
135
143
set the color or shade for the uncertainty. Parameters are expected
136
144
to be in the following columns:
137
145
@@ -165,15 +173,15 @@ def velo(self, data=None, **kwargs):
165
173
can be used to rescale the uncertainties of velocities (``spec="e"``
166
174
and ``spec="r"``) and rotations (``spec="w"``). Can be combined with
167
175
the ``confidence`` variable.
168
- uncertaintycolor : str
176
+ uncertaintyfill : str
169
177
Sets the color or shade used for filling uncertainty wedges
170
178
(``spec="w"``) or velocity error ellipses (``spec="e"`` or
171
- ``spec="r"``). If ``uncertaintycolor `` is not specified, the
179
+ ``spec="r"``). If ``uncertaintyfill `` is not specified, the
172
180
uncertainty regions will be transparent. **Note**: Using ``cmap`` and
173
181
``zvalue="+e"`` will update the uncertainty fill color based on the
174
182
selected measure in ``zvalue`` [magnitude error]. More details at
175
183
:gmt-docs:`cookbook/features.html#gfill-attrib`.
176
- color : str
184
+ fill : str
177
185
Select color or pattern for filling of symbols [Default is no fill].
178
186
**Note**: Using ``cmap`` (and optionally ``zvalue``) will update the
179
187
symbol fill color based on the selected measure in ``zvalue``
0 commit comments