Commit 4bf75bb7 authored by Oscar Gargiulo's avatar Oscar Gargiulo
Browse files

added hd again

parent e6e17ae8
......@@ -8,7 +8,7 @@ Powered by xarray (xarray.pydata.org)
"""
from .base import data_module_base
import holoviews as hv
#import holoviews.operation.datashader as hd
import holoviews.operation.datashader as hd
import scipy.signal as sp_sig
import scipy.interpolate as sp_intp
try:
......@@ -272,7 +272,7 @@ class data_grid(data_module_base):
df = self.df[self.x_min:self.x_max, self.y_min:self.y_max].rename('z')
# Create dataset
ds = hv.Dataset(df)
'''
# Create HoloObject
if mode == 'QuadMesh':
holo_object = hd.regrid(ds.to(hv.QuadMesh, [x_vals, y_vals]))
......@@ -281,7 +281,7 @@ class data_grid(data_module_base):
# Rescale
holo_object = holo_object.redim.range(z=(z_min, z_max))
return holo_object
'''
def pcolormesh(self):
"""Simple color plot without options. Quick and light"""
......
......@@ -10,7 +10,7 @@ from .base import data_module_base
import pandas as pd
from .plot_style import color_scheme, cc, check_color, color_labels
import holoviews as hv
#import holoviews.operation.datashader as hd
import holoviews.operation.datashader as hd
import numpy as np
try:
import matplotlib.pyplot as plt
......@@ -184,7 +184,7 @@ class data_table(data_module_base):
ignore_index=True)
pass
"""
def plot_hv(self, x=None, y=None, height=400, width=800,
title='', color=None):
'''Plot table with Holoviews
......@@ -226,7 +226,7 @@ class data_table(data_module_base):
return scatter_plots.opts(plot=dict(height=height, width=width,
show_grid=True))
"""
# Plotting #################################################################
def plot(self, style='-o', x_col=None, y_col=None, color=None, xscale=1,
yscale=1,
......
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