-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
revise plot(MeshLine1) #676
Comments
Besides 94dc1b8, I've been thinking about another idea to get the various implementations of scikit-fem/docs/examples/ex19.py Lines 106 to 108 in a1496b6
scikit-fem/docs/examples/ex19.py Line 122 in a1496b6
and 39 (which doesn't currently use scikit-fem/docs/examples/ex39.py Line 94 in a1496b6
scikit-fem/docs/examples/ex39.py Line 112 in a1496b6
So the still vague idea is that if |
…yes, like the addition of the Lines 738 to 740 in 8b1be60
|
* Support elements not in BOUNDARY_ELEMENT_MAP * Better __repr__ for Mesh * Move Mesh.to_dict/from_dict to skfem.io.json * Make FacetBasis a simple alias to BoundaryFacetBasis * Remove some old kwarg types supported by asm; interpolate by default * Add DG mesh types and MeshDG mixin * Fix MappingIsoparametric 1D scaling, add another test * Fix test and then mypy differently * Test init_refdom * Simplify plot_meshline, fixes #676 * Add quadratic sphere cycle test * Support MeshHex2 in skfem.io.meshio * Add draw methods for quadratic 2D meshes * Allow summing two COOData * Add NotImplementedError for some features in MeshDG and Mesh2D2
Some questions about
plot(MeshLine)
, viz.scikit-fem/skfem/visuals/matplotlib.py
Lines 130 to 131 in d08af2a
were raised in working on the first unsteady one-dimensional example. #674
Because efficiently animating evolving solutions in matplotlib involves something like
matplotlib.lines.Line2D.set_data
, as in the existing two-dimensional unsteady examplescikit-fem/docs/examples/ex19.py
Line 117 in d08af2a
one needs to know the structure of the data used in the original plot of the initial condition. Whereas this is just the solution's nodal DoFs in two dimensions
scikit-fem/docs/examples/ex19.py
Line 99 in 9608b5f
scikit-fem/docs/examples/ex19.py
Line 117 in 9608b5f
in one dimension, the initial plot is delegated to
plot_meshline
which has some rather involved preprocessingscikit-fem/skfem/visuals/matplotlib.py
Lines 144 to 153 in d08af2a
which needs to be equally applied at each step.
There was a proposal to extract this as a method
MeshLine1.segment_data
in ad43d00 but this is where questions were raised:The main work of the first unsteady one-dimensional example #674 is to demonstrate how post-processing works in one dimension because one dimension is different to two and three, so if one-dimensional plotting should generally be done differently, that should be sorted out before writing the example.
By
or a variation with
np.argsort
, do you mean dispensing withvisuals.matplotlib.plot_meshline
? I guess that that works well enough inscikit-fem/docs/examples/ex16.py
Line 49 in d08af2a
The text was updated successfully, but these errors were encountered: