|
1 | 1 | import numpy as np
|
2 | 2 | import pandas as pd
|
3 | 3 | import matplotlib.pyplot as plt
|
4 |
| -# import matplotlib.animation as animation |
5 |
| -# import mpld3 |
6 |
| -# from mpld3 import plugins |
7 |
| -from IPython.display import HTML |
8 |
| -# import os |
9 |
| - |
10 |
| - |
11 |
| -# def fun_Nec(n, z, I, fads, r, R, fip, fie, TR): |
12 | 4 |
|
13 | 5 | # Define input parameters
|
14 | 6 | # Ratio entre ordenadas espectrales Sa(T = 0.1 s) y el PGA para el periodo de retorno seleccionado
|
|
71 | 63 | legend = plt.legend(fontsize=10)
|
72 | 64 | legend.get_frame().set_edgecolor('none')
|
73 | 65 | ax1.grid(which='both', axis='x', alpha=0.5)
|
74 |
| -plt.show() |
75 |
| - |
76 |
| - |
77 |
| - # UHS_E = np.column_stack((Tie,Sae)) |
78 |
| - # UHS_I = np.column_stack((Tie,Sai)) |
79 |
| - |
80 |
| - # current_directory = os.getcwd() |
81 |
| - # folder_name = 'Results_NEC_UHS_TR_' + TR |
82 |
| - # folder_path = os.path.join(current_directory, folder_name) |
83 |
| - |
84 |
| - # if not os.path.exists(folder_path): |
85 |
| - # os.makedirs(folder_path) |
86 |
| - |
87 |
| - # file_path1 = os.path.join(folder_path, 'NEC_UHS_E_' + '.AT2') |
88 |
| - # file_path2 = os.path.join(folder_path, 'NEC_UHS_I_' + '.AT2') |
89 |
| - |
90 |
| - # np.savetxt(file_path1, UHS_E, delimiter='\t', fmt='%.6f') |
91 |
| - # np.savetxt(file_path2, UHS_I, delimiter='\t', fmt='%.6f') |
92 |
| - |
93 |
| - # fig_path1 = os.path.join(folder_name, 'fig1_UHS_E_I_TR_' + TR + '.png') |
94 |
| - # fig1.savefig(fig_path1) |
95 |
| - |
96 |
| - # print('\x1b[1;34m Folder Path =', folder_path) |
| 66 | +plt.show() |
97 | 67 |
|
98 | 68 |
|
99 | 69 | # return Resul, fig1, folder_path
|
0 commit comments