Subject | Hash | Author | Date (UTC) |
---|---|---|---|
mplot.mart: add plot_points() function | 2c799e22d9f45b825a7f8a795ce6b9fe5fbd9c76 | I am | 2022-01-05 13:14:12 |
mplot.maxes: add convergence diagrams | 813b1e8e9dd9d1e51951c51234910cdf2281cde8 | I am | 2022-01-05 09:07:18 |
mplot.mgraph: hračky s legendou | 198cc40947d48b2a3cde990254def7d57c1535a6 | I am | 2022-01-05 09:04:23 |
mplot: apply default settings to figures | 765d830e0230b3d85f079eb26c6eddfdb624b859 | I am | 2022-01-05 09:03:15 |
simplex: try garbage collection | 45148d2665eea195c05de5852b15485d83cb7223 | I am | 2022-01-05 06:10:46 |
testcases: add Gaussian Z_min testcase | 50bc3f27365e60db67f100c89ebc49b52e948645 | I am | 2022-01-04 13:55:59 |
whitebox: add Gaussian Z_min whitebox | e989c87895d681920056558a0b9473b93c3b299b | I am | 2022-01-04 13:54:37 |
schemes: přídat pár komentářů k schematům | e8f1665d43cfb70e89716f591852538df0e27d8c | I am | 2022-01-04 09:00:36 |
mplot.maxes: tri_nodes_plot is almost ready. Zbyvá to udělat hezky | 251a0f4b7909a5468453cfb518c2bbb4064cce51 | I am | 2022-01-04 06:42:36 |
mplot.maxes: add complete tri plots | 08c6e421188c4251cae1aa664a69bdc3a0afb314 | I am | 2022-01-04 05:45:21 |
mplot.mart: add tri_plot() function | aace2f9d02b7744651a089c164af9b7b5824729e | I am | 2022-01-04 05:44:14 |
simplex: fix use before initialization | ff8be3dcc679c4893948d7d1dc6c45402ccee81b | I am | 2022-01-04 05:43:17 |
mplot.maxes: prepare convex_hull_plot() function | 732f16a441c1a5f1160b45d91a050683ee70ff5d | I am | 2022-01-03 15:26:59 |
mplot.mart: comment out old convex plot function, prepare qhull_plot instead | 59de205056903adf87f84c5c1b022c3c83fa9c57 | I am | 2022-01-03 15:24:30 |
mplot.mgraph: prepare orth graph routines | 74e30ed99fcc6e68c6b3bf7e55bbd93fe8f26d13 | I am | 2022-01-02 11:18:11 |
convex_hull: complicate orth estimator | ba5f40eaf0f5f4012ef07f5684d58481cefbfe09 | I am | 2021-12-28 13:56:19 |
reader: explicitly use utf-8 encoding. (Nemělo by to nic pokazit.. Pitomé nastavení ve Windows) | 17bc8a9692695c22f78f8a39ed8aaddd4bfa4808 | I am | 2021-12-26 22:59:41 |
dicebox: walk throw candidates in reversed order | cadf89d0efc973d540b4ee6b337eb175ae962ee8 | I am | 2021-12-24 21:03:00 |
schemes: exclude walkington 5 and 7 (2D and 3D schemes) from offer in higher dimensions | 4d7b7e249c18c41f9220c778ada21116cca02aa0 | I am | 2021-12-23 23:52:07 |
simplex: implement fallback integration | 9a1048540d803a76cba8c92ca67efc16c932f1a9 | I am | 2021-12-23 22:36:38 |
File | Lines added | Lines deleted |
---|---|---|
mplot/mart.py | 40 | 0 |
File mplot/mart.py changed (mode: 100644) (index aed4017..e346daf) | |||
... | ... | def scatter_points(ax, **kwargs): | |
85 | 85 | return scatter_list # success, failures, proxy_successes, proxy_failures | return scatter_list # success, failures, proxy_successes, proxy_failures |
86 | 86 | ||
87 | 87 | ||
88 | def plot_points(ax, ls='', **kwargs): | ||
89 | xy = getattr(ax.sample_box, ax.space) | ||
90 | nsim = len(xy) | ||
91 | x, y = xy[:,:2].T | ||
92 | |||
93 | failsi = ax.sample_box.failsi | ||
94 | |||
95 | try: # proxy denotes to implicitly-known values | ||
96 | proxy = ax.sample_box.proxy | ||
97 | except AttributeError: | ||
98 | proxy = np.full(nsim, False, dtype=np.bool) | ||
99 | |||
100 | plot_list = [] | ||
101 | |||
102 | #č byl jsem svědkem, že matplotlib zlobil ve 3D | ||
103 | #č kvůli tomu, že nebyl žádný safe vzorek | ||
104 | #č proto raději budu přidávat tečky podmíněne | ||
105 | mask = np.all((~failsi, ~proxy), axis=0) | ||
106 | if np.any(mask): #success | ||
107 | plot_list.append(ax.plot(x[mask], y[mask], mec='g', mfc='g',\ | ||
108 | marker='P', ls=ls, **kwargs)) | ||
109 | |||
110 | mask = np.all((failsi, ~proxy), axis=0) | ||
111 | if np.any(mask): #failures | ||
112 | plot_list.append(ax.plot(x[mask], y[mask], mec='r', mfc='r',\ | ||
113 | marker='X', ls=ls, **kwargs)) | ||
114 | |||
115 | mask = np.all((~failsi, proxy), axis=0) | ||
116 | if np.any(mask): #proxy_successes | ||
117 | plot_list.append(ax.plot(x[mask], y[mask], mec='#77AC30', mfc='#77AC30',\ | ||
118 | marker='h', ls=ls, **kwargs)) | ||
119 | |||
120 | mask = np.all((failsi, proxy), axis=0) | ||
121 | if np.any(mask): #proxy_failures | ||
122 | plot_list.append(ax.plot(x[mask], y[mask], mec='#D95319', mfc='#D95319',\ | ||
123 | marker='H', ls=ls, **kwargs)) | ||
124 | |||
125 | return plot_list # success, failures, proxy_successes, proxy_failures | ||
126 | |||
127 | |||
88 | 128 | #č triplot - pokud ax.space == tri_space | #č triplot - pokud ax.space == tri_space |
89 | 129 | #č tri_plot - pokud ax.space != Tri.tri_space | #č tri_plot - pokud ax.space != Tri.tri_space |
90 | 130 | def tri_plot(ax, Tri=None, fmt='-', ns=100, **kwargs): | def tri_plot(ax, Tri=None, fmt='-', ns=100, **kwargs): |