Plotting field versus space

Such as this bro’s plot: Plotting the electric field profile - Garfield++ - ROOT Forum (cern.ch)