Skip to content

Instantly share code, notes, and snippets.

@mrklein
mrklein / plot_vtk.py
Last active August 11, 2024 15:50
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):