jorgensd / dolfin_pyvista_adapter Goto Github PK
View Code? Open in Web Editor NEWAdapter for Pyvista for arbitrary order (discontinuous) Lagrange with Legacy Dolfin.
Home Page: http://jsdokken.com/dolfin_pyvista_adapter/
License: MIT License
Adapter for Pyvista for arbitrary order (discontinuous) Lagrange with Legacy Dolfin.
Home Page: http://jsdokken.com/dolfin_pyvista_adapter/
License: MIT License
It'd be awesome to be able to change the colourbar.
Maybe adding a mesh_kwargs
to plot
and then passing these to the add_mesh
calls?
The usage would be:
plot(......, cmap="inferno")
Hi!
Thanks for this package!
I can't manage to run this example in a GitHub codespace.
I've seen in the pyvista doc that we may have to use jupyter-server-proxy
So the full example i tried was:
import pyvista
pyvista.global_theme.trame.server_proxy_enabled = True
import dolfin
from dolfin_pyvista_adapter import plot
mesh = dolfin.UnitCubeMesh(2, 2, 2)
Vv = dolfin.VectorFunctionSpace(mesh, "Lagrange", 3)
v = dolfin.Function(Vv)
v.interpolate(dolfin.Expression(("x[0]", "x[1]", "pow(x[2], 3)"), degree=1))
plot(v, show_edges=True, glyph_factor=0.1, off_screen=False)
vscode-remote+codespaces-002bremdelaportemathurin-002dobscure-002ddollop-002dx97wjwwpgrq3p494.vscode-resource.vscode-cdn.net’s server IP address could not be found.
I must admit these IP issues are a bit unclear to me.
Do you have any idea?
Cheers
Rem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.