Subject | Hash | Author | Date (UTC) |
---|---|---|---|
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 |
schemes: oprava komentaře | bfa1fd1f1e1fe2e86838ee2f63f43fab50d0d115 | I am | 2021-12-22 13:40:45 |
schemes: send degree parameter as is to quadpy. | a1758193a21bf47031e376612418c26c1eb1d289 | I am | 2021-12-22 11:53:30 |
qt_gui: allow zero degree for cubature schemes | ed4cf50cdbf382999ef9e161dbec0e97ed508739 | I am | 2021-12-22 11:52:03 |
simplex: teď budeme hlídát aby vysledek integrace nebyl záporný | 173727edac0fb6611aaa2da2ed0d200a7377a2a4 | I am | 2021-12-22 08:31:01 |
dicebox: comment out our favorite print debug | 2963588b1d47a8c35a0c3ae8c611427ecbb3a843 | I am | 2021-12-22 08:30:16 |
mplot.mart: use fancy arrows instead of triangle markers | ac42eaf4b8e12037720601d2335d44ae0b057feb | I am | 2021-12-22 04:32:06 |
mplot: use the same global settings for both TeX and nonTeX plots | 3aab574123f38a35557e5c018b2e947da7feca0a | I am | 2021-12-22 04:22:58 |
mplot.misc: do not import pyplot | 9072d3b25e614763a5904e1f6b14b8bf495834fa | I am | 2021-12-22 04:21:25 |
dicebox.Goal: add additional stats. Jsou to věci, které člověk by chtěl vědět. | 45e8296c954705ca30c311e43e570c82c2f5113d | I am | 2021-12-20 02:49:15 |
dicebox: pochybná optimizace výběru kandidatů s použitím vlastního slovníku. Pořádně bych musel překopat celý DiceBox. | 0f30c4301a1f2b40556a9c84ee4b8c53638a6571 | I am | 2021-12-19 20:33:43 |
File | Lines added | Lines deleted |
---|---|---|
mplot/mart.py | 43 | 0 |
File mplot/mart.py changed (mode: 100644) (index 58460da..aed4017) | |||
... | ... | 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 | #č triplot - pokud ax.space == tri_space | ||
89 | #č tri_plot - pokud ax.space != Tri.tri_space | ||
90 | def tri_plot(ax, Tri=None, fmt='-', ns=100, **kwargs): | ||
91 | if ax.sample_box.nvar == 2: | ||
92 | lines = [] | ||
93 | |||
94 | if Tri is None: | ||
95 | Tri = ax.sample_box.Tri | ||
96 | |||
97 | # take coordinates in the space, where triangulation has been performed | ||
98 | sampled_plan_tri = getattr(ax.sample_box, Tri.tri_space) | ||
99 | |||
100 | #č mohli bychom zde machrovat se zkracenou smyčkou, | ||
101 | #č mohli bychom jednoduše zavolat zabudovanou v matplotlib funkciju, | ||
102 | #č my ale vůbec kontrolovat rovnost prostorů nebudeme, | ||
103 | #č nechť to dělá volající kód | ||
104 | |||
105 | #if ax.space == Tri.tri_space: | ||
106 | # #return triplot(ax, **kwargs) | ||
107 | # | ||
108 | # #for simplex_id in simplex_ids: | ||
109 | # # triangle = simplices[simplex_id] | ||
110 | # # pos = sampled_plan_tri[triangle[[0,1,2,0]]] | ||
111 | |||
112 | for triangle in Tri.tri.simplices: | ||
113 | x_tri_1 = np.linspace(sampled_plan_tri[triangle[0],0], sampled_plan_tri[triangle[1],0], ns, endpoint=False) | ||
114 | y_tri_1 = np.linspace(sampled_plan_tri[triangle[0],1], sampled_plan_tri[triangle[1],1], ns, endpoint=False) | ||
115 | x_tri_2 = np.linspace(sampled_plan_tri[triangle[1],0], sampled_plan_tri[triangle[2],0], ns, endpoint=False) | ||
116 | y_tri_2 = np.linspace(sampled_plan_tri[triangle[1],1], sampled_plan_tri[triangle[2],1], ns, endpoint=False) | ||
117 | x_tri_3 = np.linspace(sampled_plan_tri[triangle[2],0], sampled_plan_tri[triangle[0],0], ns, endpoint=True) | ||
118 | y_tri_3 = np.linspace(sampled_plan_tri[triangle[2],1], sampled_plan_tri[triangle[0],1], ns, endpoint=True) | ||
119 | |||
120 | tri_bound_tri = np.concatenate(((x_tri_1, y_tri_1), (x_tri_2, y_tri_2), (x_tri_3, y_tri_3)), axis=1).T | ||
121 | #č vytvořme sample | ||
122 | tri_bound = ax.sample_box.f_model.new_sample(tri_bound_tri, space=Tri.tri_space) | ||
123 | |||
124 | xy = getattr(tri_bound, ax.space) | ||
125 | x, y = xy.T | ||
126 | lines.append(ax.plot(x, y, fmt, **kwargs)) | ||
127 | |||
128 | return lines | ||
129 | |||
88 | 130 | ||
131 | #č triplot() jednoduše volá zabudovanou do matplotlibu funkci | ||
89 | 132 | def triplot(ax, **kwargs): | def triplot(ax, **kwargs): |
90 | 133 | xy = getattr(ax.sample_box, ax.space) | xy = getattr(ax.sample_box, ax.space) |
91 | 134 | x, y = xy[:,:2].T | x, y = xy[:,:2].T |