Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pyicon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nils Brüggemann
pyicon
Commits
d5bb9ccb
Commit
d5bb9ccb
authored
1 month ago
by
Nils Brüggemann
Browse files
Options
Downloads
Patches
Plain Diff
pyic_view: Some minor changes.
parent
2172b4f3
No related branches found
No related tags found
No related merge requests found
Pipeline
#99458
passed
1 month ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/pyic_view.py
+4
-4
4 additions, 4 deletions
scripts/pyic_view.py
with
4 additions
and
4 deletions
scripts/pyic_view.py
+
4
−
4
View file @
d5bb9ccb
...
@@ -24,7 +24,7 @@ def generate_axes(asp, generate_figure=True):
...
@@ -24,7 +24,7 @@ def generate_axes(asp, generate_figure=True):
figh
=
fig
.
get_figheight
()
figh
=
fig
.
get_figheight
()
figw
=
fig
.
get_figwidth
()
figw
=
fig
.
get_figwidth
()
x0
,
y0
=
0.
1
,
0.16
x0
,
y0
=
0.
07
,
0.16
axh0
=
0.75
axh0
=
0.75
asp0
=
0.5
asp0
=
0.5
axw0
=
axh0
*
figh
/
figw
/
asp0
axw0
=
axh0
*
figh
/
figw
/
asp0
...
@@ -553,7 +553,7 @@ class view(object):
...
@@ -553,7 +553,7 @@ class view(object):
self
.
lon_reg
=
[
-
180
,
180
]
self
.
lon_reg
=
[
-
180
,
180
]
self
.
lat_reg
=
[
-
90
,
90
]
self
.
lat_reg
=
[
-
90
,
90
]
lat_reg_axlim
=
self
.
lat_reg
lat_reg_axlim
=
self
.
lat_reg
self
.
lon_lat_reg_tk
=
tk
.
StringVar
(
value
=
f
"
{
self
.
lon_reg
[
0
]
}
,
{
self
.
lon_reg
[
1
]
}
,
{
self
.
lat_reg
[
0
]
}
,
{
self
.
lat_reg
[
1
]
}
"
)
self
.
lon_lat_reg_tk
.
set
(
f
"
{
self
.
lon_reg
[
0
]
:
.
3
g
}
,
{
self
.
lon_reg
[
1
]
:
.
3
g
}
,
{
self
.
lat_reg
[
0
]
:
.
3
g
}
,
{
self
.
lat_reg
[
1
]
:
.
3
g
}
"
)
self
.
xlim
,
self
.
ylim
=
get_xlim_ylim
(
self
.
xlim
,
self
.
ylim
=
get_xlim_ylim
(
self
.
lon_reg
,
lat_reg_axlim
,
self
.
proj
,
self
.
transformer
)
self
.
lon_reg
,
lat_reg_axlim
,
self
.
proj
,
self
.
transformer
)
print
(
f
'
set_default_lon_lat_reg:
'
)
print
(
f
'
set_default_lon_lat_reg:
'
)
...
@@ -590,7 +590,7 @@ class view(object):
...
@@ -590,7 +590,7 @@ class view(object):
self
.
xlim
,
self
.
ylim
=
xlim
,
ylim
self
.
xlim
,
self
.
ylim
=
xlim
,
ylim
self
.
message
(
'
::: Warning:
"
Updating data range
"
with more complex projections can lead to strange results. :::
'
)
self
.
message
(
'
::: Warning:
"
Updating data range
"
with more complex projections can lead to strange results. :::
'
)
self
.
lon_lat_reg_tk
=
tk
.
StringVar
(
value
=
f
"
{
self
.
lon_reg
[
0
]
}
,
{
self
.
lon_reg
[
1
]
}
,
{
self
.
lat_reg
[
0
]
}
,
{
self
.
lat_reg
[
1
]
}
"
)
self
.
lon_lat_reg_tk
.
set
(
f
"
{
self
.
lon_reg
[
0
]
:
.
3
g
}
,
{
self
.
lon_reg
[
1
]
:
.
3
g
}
,
{
self
.
lat_reg
[
0
]
:
.
3
g
}
,
{
self
.
lat_reg
[
1
]
:
.
3
g
}
"
)
self
.
make_new_axis
()
self
.
make_new_axis
()
def
increase_slider
(
self
,
slider
):
def
increase_slider
(
self
,
slider
):
...
@@ -654,7 +654,7 @@ class view(object):
...
@@ -654,7 +654,7 @@ class view(object):
self
.
canvas
.
draw
()
self
.
canvas
.
draw
()
except
ValueError
:
except
ValueError
:
print
(
f
'
Invalid value for clim:
{
clim_str
}
'
)
print
(
f
'
Invalid value for clim:
{
clim_str
}
'
)
if
clim_str
==
'
sym
'
:
if
clim_str
==
'
sym
'
or
-
clim
[
0
]
==
clim
[
1
]
:
self
.
selected_cmap
.
set
(
'
RdBu_r
'
)
self
.
selected_cmap
.
set
(
'
RdBu_r
'
)
self
.
update_cmap
(
'
RdBu_r
'
)
self
.
update_cmap
(
'
RdBu_r
'
)
return
return
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment