Home > Net >  plotting a model based on data
plotting a model based on data

Time:10-21

I want to plot a velocity versus depth model using the given data.

import matplotlib.pyplot as plt
import numpy as np

depth=np.array((0.0,5.0,30.0,40.0,50.0))
velocity=np.array((5.5,6.5,6.8,9.0,10.0))
plt.plot(velocity,depth)
plt.show()

But this script doesnot give the plot as i expected I need something like Result

You have to use New picture without minus signs

  • Related