Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nils Brüggemann
pyicon
Commits
bd94afa3
Commit
bd94afa3
authored
Nov 09, 2021
by
Nils Brüggemann
Browse files
pyic_fig.py: Added option to set land_facecolor and costalines_color.
parent
590f14c1
Pipeline
#12158
passed with stages
in 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tools/pyic_fig.py
View file @
bd94afa3
...
...
@@ -89,6 +89,10 @@ parser.add_argument('--cbar_str', type=str, default='auto',
help
=
'String for colorbar. Default is name of variable and its units.'
)
parser
.
add_argument
(
'--cbar_pos'
,
type
=
str
,
default
=
'bottom'
,
help
=
'Position of colorbar. It is possible to choose between
\'
right
\'
and
\'
bottom
\'
.'
)
parser
.
add_argument
(
'--coastlines_color'
,
type
=
str
,
default
=
'k'
,
help
=
'Color of coastlines. Default is
\'
k
\'
. To disable set to
\'
none
\'
.'
)
parser
.
add_argument
(
'--land_facecolor'
,
type
=
str
,
default
=
'0.7'
,
help
=
'Color of land masses. Default is
\'
0.7
\'
. To disable set to
\'
none
\'
.'
)
iopts
=
parser
.
parse_args
()
...
...
@@ -310,7 +314,9 @@ if projection in ['np', 'sp']:
ax
.
coastlines
()
else
:
if
(
lon_reg
is
None
)
and
(
lat_reg
is
None
):
plot_settings
(
ax
,
template
=
'global'
,
do_xyticks
=
do_xyticks
)
plot_settings
(
ax
,
template
=
'global'
,
do_xyticks
=
do_xyticks
,
land_facecolor
=
iopts
.
land_facecolor
,
coastlines_color
=
iopts
.
coastlines_color
)
else
:
plot_settings
(
ax
,
xlim
=
xlim
,
ylim
=
ylim
,
do_xyticks
=
do_xyticks
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment