Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sec23
korte
pymagglobal
Commits
6c26f9f4
Commit
6c26f9f4
authored
Aug 10, 2021
by
Maximilian Schanner
Browse files
Polish nez levels.
parent
c06c8d50
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pymagglobal/_commands.py
View file @
6c26f9f4
...
...
@@ -530,18 +530,24 @@ def maps(args, fig=None):
units
[
1
]
=
r
'deg.'
else
:
field
/=
1000
vmax
=
np
.
ceil
(
np
.
max
(
np
.
abs
(
field
),
axis
=
1
))
cbar_hght
=
0.06
for
it
in
range
(
3
):
levels
[
it
]
=
np
.
linspace
(
-
vmax
[
it
],
vmax
[
it
],
11
)
cbar_hght
=
0.08
if
fig
is
None
:
proj
=
ccrs
.
Mollweide
()
fig
,
axs
=
plt
.
subplots
(
1
,
3
,
figsize
=
(
13
,
3
),
fig
,
axs
=
plt
.
subplots
(
1
,
3
,
figsize
=
(
13
,
3
.4
),
subplot_kw
=
{
'projection'
:
proj
})
fig
.
tight_layout
()
fig
.
subplots_adjust
(
top
=
0.8
,
bottom
=
0.25
,
wspace
=
0.1
)
colaxs
=
[]
for
it
in
range
(
3
):
bnds
=
axs
[
it
].
get_position
().
bounds
colaxs
.
append
(
fig
.
add_axes
([
bnds
[
0
],
bnds
[
1
]
-
0.
1
-
cbar_hght
,
bnds
[
1
]
-
0.
06
-
cbar_hght
,
bnds
[
2
],
cbar_hght
]))
cbar_orientation
=
'horizontal'
...
...
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