Giter VIP home page Giter VIP logo

dolfin_pyvista_adapter's People

Contributors

jorgensd avatar wpendl99 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

dolfin_pyvista_adapter's Issues

Changing colourbar

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")

jupyter notebooks in codespaces

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.
image

I must admit these IP issues are a bit unclear to me.

Do you have any idea?

Cheers
Rem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.