Subject | Hash | Author | Date (UTC) |
---|---|---|---|
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 |
dicebox.circumtri: bughunting | 5f9d2b9e4d8077c9e4552d47bf1da789d8cfbcf8 | I am | 2022-12-29 15:02:14 |
File | Lines added | Lines deleted |
---|---|---|
wellmet/mplot/mart.py | 7 | 3 |
File wellmet/mplot/mart.py changed (mode: 100644) (index 439531b..431da66) | |||
... | ... | def setup(ax, lw=0.4): #č šup | |
575 | 575 | center_spines(ax, lw) | center_spines(ax, lw) |
576 | 576 | ||
577 | 577 | ||
578 | def setup_labels(ax, x_label="$x_1$", y_label="$x_2~$", data_offset=0.5): | ||
578 | def setup_labels(ax, x_label="$x_1$", y_label="$x_2~$", data_offset=1): | ||
579 | 579 | if ax.space in ('P', 'aP', 'U', 'aU'): | if ax.space in ('P', 'aP', 'U', 'aU'): |
580 | 580 | ax.set_xlabel(x_label) | ax.set_xlabel(x_label) |
581 | 581 | ax.set_ylabel(y_label) | ax.set_ylabel(y_label) |
582 | 582 | else: | else: |
583 | text = ax.text(1, -data_offset, x_label, ha='center',va='top', transform=ax.get_yaxis_transform()) | ||
583 | xmin, xmax = ax.get_xlim() | ||
584 | ymin, ymax = ax.get_ylim() | ||
585 | text = ax.text(1, -data_offset / np.abs(ymin), x_label, ha='center',va='top', | ||
586 | transform=ax.get_yaxis_transform()) | ||
584 | 587 | text.set_in_layout(False) | text.set_in_layout(False) |
585 | text = ax.text(-data_offset, 1, y_label, ha='right',va='center', transform=ax.get_xaxis_transform()) | ||
588 | text = ax.text(-data_offset / np.abs(xmin), 1, y_label, ha='right',va='center', | ||
589 | transform=ax.get_xaxis_transform()) | ||
586 | 590 | text.set_in_layout(False) | text.set_in_layout(False) |
587 | 591 | ||
588 | 592 |