# Pyvista subplot with VRML

**URL:** https://discourse.vtk.org/t/pyvista-subplot-with-vrml/11568
**Category:** Support
**Created:** [May 29, 2023, 9:07pm UTC](https://discourse.vtk.org/t/pyvista-subplot-with-vrml/11568 "2023-05-29T21:07:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![simon.rit](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@simon.rit](https://discourse.vtk.org/u/simon.rit)
#### Post date: [May 29, 2023, 9:07pm UTC](https://discourse.vtk.org/t/pyvista-subplot-with-vrml/11568/1 "2023-05-29T21:07:26Z")

</div>

I am trying to use Pyvista to plot two VRML files next to each other using Pyvista’s subplot. However, the two files are overlaid on each other in the first subplot, as shown with the teapot and sextant files with the following code

```plaintext
import pyvista as pv
from pyvista import examples

pl = pv.Plotter(shape=(1, 2))
sextant_file = examples.vrml.download_sextant()
pl.import_vrml(sextant_file)
pl.subplot(0, 1)
teapot_file = examples.vrml.download_teapot()
pl.import_vrml(teapot_file)
pl.show()

```

 ![screenshot](https://discourse.vtk.org/uploads/default/original/2X/b/b42b3d45e505c850bca5b123a77203f3d7e3d156.png)

Is there any way to avoid this?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [May 30, 2023, 7:34am UTC](https://discourse.vtk.org/t/pyvista-subplot-with-vrml/11568/2 "2023-05-30T07:34:23Z")

</div>

@banesullivan

---

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [May 30, 2023, 12:51pm UTC](https://discourse.vtk.org/t/pyvista-subplot-with-vrml/11568/3 "2023-05-30T12:51:06Z")

</div>

@simon.rit, this looks like a bug in PyVista. I recommend reporting it here: [Sign in to GitHub · GitHub](https://github.com/pyvista/pyvista/issues/new/choose)

---

<div class="post-metadata">

### Author: ![simon.rit](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/f08c70/32.png) [@simon.rit](https://discourse.vtk.org/u/simon.rit)
#### Post date: [May 30, 2023, 4:11pm UTC](https://discourse.vtk.org/t/pyvista-subplot-with-vrml/11568/4 "2023-05-30T16:11:09Z")

</div>

Done, [Pyvista subplot with VRML · Issue #4475 · pyvista/pyvista · GitHub](https://github.com/pyvista/pyvista/issues/4475). Thanks!  
Simon

---

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [May 30, 2023, 4:30pm UTC](https://discourse.vtk.org/t/pyvista-subplot-with-vrml/11568/5 "2023-05-30T16:30:07Z")

</div>

Thanks for posting there! After actually looking at this now, you may have posted in the right spot. It appears to be an issue with `vtkVRMLImporter` and it forcing the import on the first renderer of the render window… might be a bug or missing feature in VTK actually

---

<div class="post-metadata">

### Author: ![banesullivan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/banesullivan/32/7143_2.png) [@banesullivan](https://discourse.vtk.org/u/banesullivan)
#### Post date: [May 30, 2023, 4:30pm UTC](https://discourse.vtk.org/t/pyvista-subplot-with-vrml/11568/6 "2023-05-30T16:30:50Z")

</div>

Seems this needs to be fixed in both VTK and in PyVista
