Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Elijah Andrews
Cavitation-Analysis
Commits
f891245a
Commit
f891245a
authored
Oct 22, 2020
by
Elijah Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved peak plot formatting.
parent
1f28f9eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
numerical/models/slot/peak_plot.py
numerical/models/slot/peak_plot.py
+2
-1
No files found.
numerical/models/slot/peak_plot.py
View file @
f891245a
...
...
@@ -60,7 +60,7 @@ def plot_peak_sweep(h_mat, y_mat, theta_star_mat, x_star_mat, theta_grad_mat,
cbar
.
ax
.
set_xticklabels
(
cbar
.
ax
.
get_xticklabels
(),
rotation
=
'45'
)
plt
.
sca
(
axes
[
1
])
cnt
=
plt
.
contourf
(
h_mat
,
y_mat
,
x_star_mat
,
levels
=
16
)
cnt
=
plt
.
contourf
(
h_mat
,
y_mat
,
x_star_mat
,
levels
=
np
.
arange
(
0.5
,
6.5
,
0.25
)
)
plt
.
xticks
(
range
(
1
,
5
+
1
))
plt
.
yticks
(
range
(
1
,
5
+
1
))
for
c
in
cnt
.
collections
:
...
...
@@ -68,6 +68,7 @@ def plot_peak_sweep(h_mat, y_mat, theta_star_mat, x_star_mat, theta_grad_mat,
plt
.
xlabel
(
"$h$"
,
labelpad
=
0
)
plt
.
ylabel
(
"$y$"
)
cbar
=
plt
.
colorbar
(
label
=
"$x^
\\
star$"
,
orientation
=
'horizontal'
)
cbar
.
set_ticks
(
np
.
arange
(
0.5
,
7
,
0.5
))
cbar
.
ax
.
set_xticklabels
(
cbar
.
ax
.
get_xticklabels
(),
rotation
=
'45'
)
for
ax
in
axes
:
...
...
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