Subject | Hash | Author | Date (UTC) |
---|---|---|---|
mplot.maxes: add rbf_plot | 3485da2191b2f64fac76813d072a6b6f6e2fba71 | I am | 2022-03-02 03:35:27 |
mplot.maxes: add rbf plot | bd5055adced9e0d8887fa213baa0ff9f9e038ba4 | I am | 2022-03-02 02:17:18 |
misc: add small class for rbf surrogate model | f8beecf63302ceae6d3462ed279b796b54149bdf | I am | 2022-03-02 02:16:01 |
testcases: pf_exact fix for suspension 3d case | 0f3318cac398c9195e0b21a6f13edc9475156b0d | I am | 2022-03-02 02:14:55 |
g_models.CosExp2D: add pf_expression() method | 3ebf3098bcff1a73a649059b1539d622d58b7439 | I am | 2022-02-06 19:38:37 |
mplot.mfigs.double_diagram(): do not share x axis. User can set up limits itself after all | e74145928c028479070af2fe766d55f180828cdf | I am | 2022-02-06 05:02:59 |
testcases: add reference solution bounds to the whitebox | 3358b3ff7903417f6484a875abb154d3a7c04a06 | I am | 2022-02-06 05:00:50 |
mplot: we need more rasterization! | 46df5af418dcab84e8e7e7e23724a74e86575806 | I am | 2022-02-05 02:20:22 |
testcases: provide more presice pf for vehicle suspension example | e2c4bd1c7f2278b4d94b6f7515785528267c18bb | I am | 2022-02-05 02:18:45 |
g_models.PassiveSuspensionVehicle: reformulation and clean up | 6e0f9ea7b97f12a2554d895be0b2b8a3f39a536d | I am | 2022-02-04 03:50:03 |
mplot: add beta diagram | 5e346bdd2c5f06a41726e2ff264776dcc60eac19 | I am | 2022-02-01 04:08:34 |
mplot.maxes3d: rasterization of risges is absolutely needed | 87c3235b8313ade07ca5b4d72b1f8fec339d621d | I am | 2022-01-31 03:15:31 |
testcases: add pf_exact for suspension example | 9f903986699b97bfc0eb7c8d4bcad78d3e018450 | I am | 2022-01-30 23:14:42 |
mplot: polish 3d | b78a192b0ce5c4f5f9e3a94e271bcde3f3c03fac | I am | 2022-01-30 23:14:16 |
qt_gui.gl_plot: oprašit gl_plotové prvky | d4336e94b262d11db3b6a110527689a9ab101a60 | Aleksei Gerasimov | 2022-01-30 04:00:40 |
add vehicle suspension problem | 1546923576c59fa15e97c082b4a9c39cdadcf690 | I am | 2022-01-30 10:39:08 |
mplot: add 3D triangulation plot | addec9ba2a5a9cdfbbfea2eaf660847ea814d387 | I am | 2022-01-30 05:15:22 |
mplot: oprašit matplotlibové 3D | b438c6e10bc36b6f70f54611df6c3988a7959275 | I am | 2022-01-30 04:28:27 |
qt_gui.gl_plot: dát dohromady ConvexHull třídu | 19f7fc6ebf130d07897dca3496d78e3208ddfa29 | Aleksei Gerasimov | 2022-01-30 03:03:07 |
qt_gui.gl_plot: Make 3D working at least for basic box | 1d285206abd77b68207fae0a771b3e69b197a5aa | Aleksei Gerasimov | 2022-01-30 01:15:54 |
File | Lines added | Lines deleted |
---|---|---|
mplot/maxes.py | 11 | 6 |
File mplot/maxes.py changed (mode: 100644) (index 7eafd71..6496d74) | |||
... | ... | def rbf_diagram(ax): | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | ||
58 | def rbf_plot(ax): | ||
58 | def rbf_plot(ax, nrid=500): | ||
59 | 59 | from .. import misc as wmisc | from .. import misc as wmisc |
60 | dx = 0.1 | ||
61 | x = np.arange(-7, 7, dx) | ||
62 | y = np.arange(-7, 7, dx) | ||
60 | tri_plot(ax) | ||
61 | x_bound = ax.get_xbound() | ||
62 | y_bound = ax.get_ybound() | ||
63 | |||
64 | x = np.linspace(*x_bound, nrid, endpoint=True) | ||
65 | y = np.linspace(*y_bound, nrid, endpoint=True) | ||
63 | 66 | X, Y = np.meshgrid(x, y) | X, Y = np.meshgrid(x, y) |
64 | cmap = mcolors.ListedColormap(['green', 'red']) | ||
65 | rbf_values = wmisc.RBF_surrogate(ax.sample_box).rbf(X, Y) | ||
67 | cmap = mcolors.ListedColormap(['#A7FFB5', '#FDC1C5']) | ||
68 | rbf_values = wmisc.RBF_surrogate(ax.sample_box, ax.space).rbf(X, Y) | ||
66 | 69 | ax.pcolor(X, Y, rbf_values<0, cmap=cmap, alpha=0.2 , zorder = -100) | ax.pcolor(X, Y, rbf_values<0, cmap=cmap, alpha=0.2 , zorder = -100) |
70 | ax.set_xbound(x_bound) | ||
71 | ax.set_ybound(y_bound) | ||
67 | 72 | ||
68 | 73 | ||
69 | 74 | def rejection_sampling_plot(ax, linewidths=[0.7, 0.5, 0.4, 0.3, 0.2, 0.1]): | def rejection_sampling_plot(ax, linewidths=[0.7, 0.5, 0.4, 0.3, 0.2, 0.1]): |