Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QuickStats
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
Alkaid Cheng
QuickStats
Merge requests
!101
Rui
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Rui
rui
into
dev2
Overview
0
Commits
2
Pipelines
1
Changes
1
Merged
Rui Zhang
requested to merge
rui
into
dev2
1 year ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
A minor protection when total points are less than 4, interpolate_2d will complain.
0
0
Merge request reports
Compare
dev2
version 1
f5352c45
1 year ago
dev2 (base)
and
latest version
latest version
f5352c45
2 commits,
1 year ago
version 1
f5352c45
9 commits,
1 year ago
1 file
+
3
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
quickstats/plots/general_2D_plot.py
+
3
−
2
Options
@@ -71,8 +71,9 @@ class General2DPlot(AbstractPlot):
x
,
y
,
z
=
data
[
xattrib
],
data
[
yattrib
],
data
[
zattrib
]
interp_method
=
self
.
config
[
'
interpolate_method
'
]
n
=
self
.
config
[
'
num_grid_points
'
]
X
,
Y
,
Z
=
interpolate_2d
(
x
,
y
,
z
,
method
=
interp_method
,
n
=
n
)
self
.
Z
=
Z
if
draw_colormesh
or
draw_contour
:
X
,
Y
,
Z
=
interpolate_2d
(
x
,
y
,
z
,
method
=
interp_method
,
n
=
n
)
self
.
Z
=
Z
if
draw_colormesh
:
pcm_styles
=
combine_dict
(
self
.
styles
[
'
pcolormesh
'
])
if
norm
is
not
None
:
Loading