Commit 4ceb62b1 authored by Christian Schneider's avatar Christian Schneider
Browse files

added extract_y

parent ab6b1a84
......@@ -41,10 +41,10 @@ class data_grid(data_module_base):
df_names[idx] = data_names[idx]
# Create xarray
self.df = xr.DataArray(data_array[-1],
dims=tuple(d_name for d_name in data_names[:-1]),
dims=tuple(d_name for d_name in df_names[:-1]),
coords={d_name: d_vals for (d_name, d_vals) in
zip(data_names[:-1], data_array[:-1])},
name=data_names[-1])
zip(df_names[:-1], data_array[:-1])},
name=df_names[-1])
# Helpful data functions ###################################################
def return_coord(self, coord_name):
......@@ -139,7 +139,7 @@ class data_grid(data_module_base):
return data
def plot_hv(self, name_x=None, name_y=None, cmap='magma', height=400,
def plot(self, name_x=None, name_y=None, cmap='magma', height=400,
width=800):
"""Plot table with Holoviews
......
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