Skip to content

Instantly share code, notes, and snippets.

@mrklein
mrklein / plot_vtk.py
Last active July 2, 2024 12:36
Plot VTK with matplotlib
#!/usr/bin/env python
import os
import numpy as np
import vtk
import matplotlib.pyplot as plt
def load_velocity(filename):
if not os.path.exists(filename):