Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 624 Bytes

demo_mesh_pyplot.md

File metadata and controls

28 lines (23 loc) · 624 Bytes

---

title: Plotting mesh

id: demo_plot_mesh

cover: ../../src/figures/mesh.png

date: 2023-02-25

author: "Hongyang Zhou"

julia: 1.8.5

description: This demo shows how to plot mesh

---

This demo shows how to plot mesh. The cell centers are represented by the markers.

using VlasiatorPyPlot

const file = "test/data/bulk.amr.vlsv"
meta = load(file)
# 3D mesh
fig = plt.figure()
ax = fig.add_subplot(projection="3d")

plotmesh(meta, marker="+")

# 2D mesh
fig = plt.figure()

pcolormesh(meta, "proton/vg_rho"; axisunit=SI)
plotmesh(meta, projection="y"; color="w")