GithubHelp home page GithubHelp logo

Comments (2)

banesullivan avatar banesullivan commented on July 18, 2024
  1. The first question is an interesting feature request and something I've definitely thought about - I also understand how cumbersome it can be to apply all those methods to each subplot so I'll see what I can do to implement this in the next release. In the meantime, you could define a helper function for all these common tasks across the subplots. For example:
import pyvista as pv

def my_helper(p):
    p.set_scale(10, 2, 3)
    p.show_grid()

p = pv.Plotter(shape=(2,2)

p.subplot(0,0)
p.add_mesh(pv.Sphere())
my_helper(p)

p.subplot(0,1)
p.add_mesh(pv.Cone())
my_helper(p)

p.subplot(1,0)
p.add_mesh(pv.Cube())
my_helper(p)

p.subplot(1,1)
p.add_mesh(pv.Ellipsoid())
my_helper(p)

p.show()

  1. This is currently possible using the .link_views() method right before your .show() call (afters all the subplots are created). Check out these examples:

from pyvista-support.

jacobgrasmick avatar jacobgrasmick commented on July 18, 2024

Awesome, thanks @banesullivan ! Apologies, I overlooked the .link_views() in the documentation...

from pyvista-support.

Related Issues (20)

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.