Skip to content

Commit

Permalink
Implement PR suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
janvonrickenbach committed Jan 9, 2024
1 parent e237bc6 commit da258e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/012_fatigue_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@
# can be directly done on the load time series to get the load ranges.
# No mean stress correction is applied.
#
load_factor_time_series = np.random.normal(-1, 2.5, size=100)
x = np.linspace(1, 100, 100)
number_of_times = 100
load_factor_time_series = np.random.normal(-1, 2.5, size=number_of_times)
x = np.linspace(1, number_of_times, number_of_times)
plt.xlabel("Load Index")
plt.ylabel("Load Factor")
plt.plot(x, load_factor_time_series, color="red")
Expand Down

0 comments on commit da258e7

Please sign in to comment.