Skip to content

Instantly share code, notes, and snippets.

View Hazza4569's full-sized avatar

Harry Cooke Hazza4569

View GitHub Profile
import numpy as np
import matplotlib.pyplot as plt
nbins = 25
delr=[0, 10]; delv = [0,10]
# np.meshgrid might be better here instead of this x,y stuff
rngex = np.linspace(min(delr),max(delr),nbins+1)
rngey = np.linspace(min(delv),max(delv),nbins+1)