Subject | Hash | Author | Date (UTC) |
---|---|---|---|
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 |
schemes: oprava komentaře | bfa1fd1f1e1fe2e86838ee2f63f43fab50d0d115 | I am | 2021-12-22 13:40:45 |
File | Lines added | Lines deleted |
---|---|---|
mplot/maxes.py | 24 | 0 |
File mplot/maxes.py changed (mode: 100644) (index 2180c04..e4e137f) | |||
14 | 14 | ||
15 | 15 | import numpy as np | import numpy as np |
16 | 16 | from . import mart | from . import mart |
17 | from . import mgraph | ||
17 | 18 | ||
18 | 19 | ||
19 | 20 | # it is mostly for qt_plot, it offers availiable options to user | # it is mostly for qt_plot, it offers availiable options to user |
... | ... | __all__ = [ | |
21 | 22 | 'convex_hull_plot', 'tri_plot', 'tri_nodes_plot', | 'convex_hull_plot', 'tri_plot', 'tri_nodes_plot', |
22 | 23 | 'tri_R_plot', 'tri_GK_plot', | 'tri_R_plot', 'tri_GK_plot', |
23 | 24 | 'tri_R_nodes_plot', 'tri_GK_nodes_plot', | 'tri_R_nodes_plot', 'tri_GK_nodes_plot', |
25 | 'convergence_diagram', 'convergence_legend', | ||
24 | 26 | 'just_points', 'just_points_really', | 'just_points', 'just_points_really', |
25 | 27 | 'base_drawing', 'candidates_drawing', | 'base_drawing', 'candidates_drawing', |
26 | 28 | 'just_qhull', 'qhull_plot', 'qhull_infinite', | 'just_qhull', 'qhull_plot', 'qhull_infinite', |
... | ... | __all__ = [ | |
31 | 33 | ] | ] |
32 | 34 | ||
33 | 35 | ||
36 | |||
37 | |||
38 | def convergence_diagram(ax): | ||
39 | #č pokorně jedeme použiť guessbox | ||
40 | #č nic jiného nebylo pořádně implementováno | ||
41 | from .. import stm_df | ||
42 | df = stm_df.get_tri_box_df(ax.sample_box) | ||
43 | pf_exact = ax.sample_box.pf_exact | ||
44 | pf_exact_method = ax.sample_box.pf_exact_method | ||
45 | mgraph.tri_estimation_plot(ax, df, pf_exact=pf_exact, \ | ||
46 | pf_exact_method=pf_exact_method, plot_outside=True) | ||
47 | |||
48 | ax.margins(0) | ||
49 | ax.set_yscale('log') | ||
50 | ax.set_xlabel("Number of points") | ||
51 | ax.set_ylabel("Probability measure") | ||
52 | |||
53 | |||
54 | def convergence_legend(ax): | ||
55 | convergence_diagram(ax) | ||
56 | ax.legend(bbox_to_anchor=(0.5, -0.15), ncol=2, loc='upper center') | ||
57 | |||
34 | 58 | #č ten [plot] zásadně vytvaří své struktury, nepouzívá oné ze skříňky, | #č ten [plot] zásadně vytvaří své struktury, nepouzívá oné ze skříňky, |
35 | 59 | #č protože já vím, že v těch obrázcích, ve kterých chcu ho použit, | #č protože já vím, že v těch obrázcích, ve kterých chcu ho použit, |
36 | 60 | #č můde být třeba použit řez a skříňka tedy potřebné struktury může nemít | #č můde být třeba použit řez a skříňka tedy potřebné struktury může nemít |