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
Code for Analabs
RST Evaluation
Commits
697e573d
Commit
697e573d
authored
Jun 26, 2019
by
Michael Rudolf
Committed by
Michael Rudolf
Dec 03, 2019
Browse files
Axis scaling now uses nanmax.
parent
823d0384
Changes
1
Hide whitespace changes
Inline
Side-by-side
RSTpicking/RST_Func.py
View file @
697e573d
...
...
@@ -363,8 +363,10 @@ def plotts(path, name, exp_data, normal_stress):
title
=
'Normal stress $
\\
sigma_N$'
)
ax3
.
set_xlabel
(
'Shear displacement $d$ [mm]'
)
ax3
.
set_ylabel
(
'Shear stress $
\\
tau$ [Pa]'
)
ax3
.
set_xlim
(
0
,
np
.
max
([
np
.
max
(
m
[
'displacement'
])
for
m
in
exp_data
]))
ax3
.
set_ylim
(
0
,
np
.
max
([
np
.
max
(
m
[
'shearstress'
])
for
m
in
exp_data
])
*
1.125
)
max_displ
=
np
.
nanmax
([
np
.
nanmax
(
m
[
'displacement'
])
for
m
in
exp_data
])
max_stress
=
np
.
nanmax
([
np
.
nanmax
(
m
[
'shearstress'
])
for
m
in
exp_data
])
ax3
.
set_xlim
(
0
,
max_displ
)
ax3
.
set_ylim
(
0
,
max_stress
*
1.125
)
# ax3.yticks(np.arange(0, round(max(ts.max()), -3)+1001, 1000))
fig3
.
suptitle
(
name
,
y
=
0.92
)
fig3
.
savefig
(
path
+
name
+
'_ts'
,
...
...
Write
Preview
Supports
Markdown
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