Autolens.plot: Inaccurate Delaunay mesh plots? #46
Replies: 3 comments
|
Hi @Lasloruhberg, thank you, and for the minimal example, which makes the point very clearly. You're right: We'd still like to keep the triangles visible by default, because they show how much resolution the mesh spends on each part of the source: where the triangles are small, the fit is resolving fine structure, and that information is lost once the reconstruction is interpolated. So we'll add your interpolated view alongside them. It will always appear as a panel in |
|
Hi @Lasloruhberg, this is now merged, and it will be in the next release. Thanks again for the report and the minimal example; we used your example to check the new plot. What changed
The triangle panels are still there, so you can see both the mesh resolution and the reconstruction the fit uses. If anything still looks wrong to you once the release is out, please let us know here. |

Uh oh!
There was an error while loading. Please reload this page.
Hi James,
I noticed that the plots of the Delaunay meshes seem to use tripcolor, with its default setting "flat", which gives one average colour per triangle instead of interpolating, what is done according to the tutorials
autoarray/plot/inversion.py_plot_delaunayalso claims it uses Goraud smoothing, which is not the default (that it uses) and also not identical to what the code does (scipy interpolation).autoarray/inversion/mesh/interpolator/delaunay.pyinstead uses scipy
Ideally the plots should use something like this imo, which is a more faithful source representation in the fits:
I might prepare some PR sometime in the future to autolens.plot if you think this would be a good change :)
Best,
Laslo
All reactions