Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Tom Rink
python
Commits
937c8722
Commit
937c8722
authored
3 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
bb1cdbe0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/util/plot.py
+15
-1
15 additions, 1 deletion
modules/util/plot.py
with
15 additions
and
1 deletion
modules/util/plot.py
+
15
−
1
View file @
937c8722
...
...
@@ -10,6 +10,7 @@ from sklearn.metrics import roc_auc_score, roc_curve
import
tensorflow
as
tf
import
matplotlib
import
matplotlib.pyplot
as
plt
import
matplotlib.dates
as
mdates
import
cartopy.crs
as
ccrs
import
xarray
as
xr
import
os
...
...
@@ -241,4 +242,17 @@ def make_icing_image(clvrx_file, ice_lons, ice_lats, ice_lons_vld=None, ice_lats
ax
.
scatter
(
ice_lons_vld
,
ice_lats_vld
,
s
=
20.0
,
marker
=
'
o
'
,
color
=
'
blue
'
,
transform
=
ccrs
.
PlateCarree
())
plt
.
title
(
'
GOES-16, 2019-04-30_18:26Z >60% Probability Icing
'
,
loc
=
'
left
'
,
fontweight
=
'
bold
'
,
fontsize
=
15
)
ImageDirAndName
=
os
.
path
.
join
(
'
/Users/tomrink
'
,
filename
)
fig
.
savefig
(
ImageDirAndName
)
\ No newline at end of file
fig
.
savefig
(
ImageDirAndName
)
# values, edges in Epoch time
def
make_time_domain_hist
(
values
,
edges
):
# convert the epoch format to matplotlib date format
#mpl_data = mdates.epoch2num(values)
fig
,
ax
=
plt
.
subplots
(
1
,
1
)
ax
.
hist
(
values
,
bins
=
edges
,
ec
=
'
black
'
)
#ax.xaxis.set_major_locator(mdates.MonthLocator())
#ax.xaxis.set_major_formatter(mdates.DateFormatter('%y-%m-%d_%h'))
#fig.autofmt_xdate()
plt
.
show
()
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