Subject | Hash | Author | Date (UTC) |
---|---|---|---|
mplot.mart: implement lsf_boundary() contouring | 8642d2f0c043f4e71af1cc45b9e25da326afd3ca | I am | 2023-01-11 05:20:00 |
mplot.mart.setup_labels: make labels more adaptive | 60cd0b34a67b38df1c730dddc9e0771139818f33 | I am | 2023-01-11 04:35:47 |
simplex._SamplingTriangulation: self reference fix | 79204ff15cba7c5ca24bb5b48e2073058acf00ae | I am | 2023-01-11 03:21:34 |
testcases.testcases_2D: add pf for rastrigin | 4f3b35fe18496fcb9f59860174c876cb7a82749a | I am | 2023-01-10 23:39:45 |
dicebox.circumtri: fix initialization on ED loading. Use simple potential for space filling | c02656e588a164685c4a750ce865c4b50f716563 | I am | 2023-01-10 23:37:30 |
simplex.FullCubatureIntegration.get_failure_moments: negative probabilities fix | 27dd6bb1e5bb0eb1e28eef88e28913d1eca461da | I am | 2023-01-10 20:16:09 |
add more nD problems from literature | 2380cdbdcf17dd5e0af19506c6f7bb1e838de03b | I am | 2023-01-10 06:13:56 |
f_models: implement Norm class | 698c3216b1c8a0e2d57bfb33340a7ea8758d4e63 | I am | 2023-01-09 23:13:48 |
simplex.FullCabatureIntegration: implement get_failure_moments() | 0742ee3d3932d7c3c0b6bbe6e327c92ced04aedd | I am | 2023-01-09 19:53:55 |
simplex._Triangulation: add get_failure_moments() method | 3e362970b67a50643c1e486729efbf554cacf03f | I am | 2023-01-08 03:26:02 |
simplex: use advanced indexing instead of isin function | 568c8623ad4cfaa343df05ae880d099556037cf0 | I am | 2023-01-06 13:41:00 |
dicebox.circumtri: fill in global simplex index only in case of full integration | 065668f1810396f55be0860416f1c6ad507a9573 | I am | 2023-01-04 21:44:57 |
dicebox.circumtri: implement "holyday", breaks the greatest safe simplex | 14f067d43cde14f990e7a4136b61c548f3acde92 | I am | 2023-01-04 16:28:51 |
simplex: implement FullCubatureIntegration | 072927115a8a641f89b39265085eb6cac27aa492 | I am | 2023-01-04 16:27:39 |
dicebox.circumtri: use mixed facet outside nodes as candidates only. | 03c1c974dafa8ff041f032c89149da7fc5b90b39 | I am | 2023-01-03 15:55:57 |
shell: use query() method of the convex hull | 321a3fab33684cb9bef3c2344200c6519b595bb0 | I am | 2023-01-03 15:54:45 |
convex_hull.QHull: implement query() method. Use myshovskych sheme as fallback | bc79a6fbee4d488211bf55c88702f39a0126be1b | I am | 2023-01-03 15:53:00 |
dicebox.circumtri: handle singular matrix error of CircumCenter | 8207789777268039e7a866a594191063c6429c04 | I am | 2023-01-02 23:56:40 |
simplex.CubatureIntegration: check for non-finite simplex volumes | 3a1473c7452c7dc3a9299ed88520412eb31924c1 | I am | 2023-01-02 22:51:14 |
dicebox.circumtri: return to psi potential | 9db1f5b0e412ae871ae5f5fbb5ff214a8ddd7f45 | I am | 2023-01-02 22:20:28 |
File | Lines added | Lines deleted |
---|---|---|
wellmet/mplot/mart.py | 20 | 0 |
File wellmet/mplot/mart.py changed (mode: 100644) (index 431da66..98aa1f1) | |||
... | ... | def uframe(ax, **kwargs): | |
457 | 457 | return ax.add_patch(frame) | return ax.add_patch(frame) |
458 | 458 | ||
459 | 459 | ||
460 | def lsf_boundary(ax, ngrid=200, limits=None, **kwargs): | ||
461 | |||
462 | xmin, xmax = ax.get_xlim() | ||
463 | ymin, ymax = ax.get_ylim() | ||
464 | |||
465 | if limits is not None: # G-čko zlobí | ||
466 | lxmin, lxmax, lymin, lymax = limits | ||
467 | xmin = min(xmin, lxmin) | ||
468 | xmax = max(xmax, lxmax) | ||
469 | ymin = min(ymin, lymin) | ||
470 | ymax = max(ymax, lymax) | ||
471 | |||
472 | x = np.linspace(xmin, xmax, ngrid) | ||
473 | y = np.linspace(ymin, ymax, ngrid) | ||
474 | X, Y = np.meshgrid(x, y) | ||
475 | XY = np.vstack((X.flatten(), Y.flatten())).T | ||
476 | sb = ax.sample_box.gm(ax.sample_box.f_model.new_sample(XY, space=ax.space)) | ||
477 | Z = sb.g_values | ||
478 | return ax.contour(X, Y, Z.reshape(ngrid, ngrid), np.zeros(1), **kwargs) | ||
479 | |||
460 | 480 | ||
461 | 481 | def isocurves(ax, ngrid=200, limits=None, ncurves=5, **kwargs): | def isocurves(ax, ngrid=200, limits=None, ncurves=5, **kwargs): |
462 | 482 | r = ncurves + 1 #č jakási rezerva, mám už plné zuby s těmi limity | r = ncurves + 1 #č jakási rezerva, mám už plné zuby s těmi limity |