Commit ab6b1a84 authored by Christian Schneider's avatar Christian Schneider
Browse files

added extract_y

parent 286158c9
......@@ -124,8 +124,8 @@ class data_grid(data_module_base):
data_line module
"""
x, y = self.df.dims[:2]
ex = self.df.sel(x=x0, method='nearest')
data = data_xy(np.array(self.df.coords[y]), np.array(ex),
ex = self.df.sel(y=y0, method='nearest')
data = data_xy(np.array(self.df.coords[x]), np.array(ex),
x, y)
data.par = self.par
data.comments = self.comments
......@@ -135,7 +135,7 @@ class data_grid(data_module_base):
data.time_stop = self.time_stop
if plot:
display(data.plot_hv(title='{} = {:.6e}'.format(x, x0)))
display(data.plot_hv(title='{} = {:.6e}'.format(y, y0)))
return data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment