PyHodl  0.2.7
Framework to download, update, analyze and plot your crypto-transactions. Completely off-line and security-oriented.
pyhodl.charts.core.CryptoPlotter Class Reference

Public Member Functions

def __init__ (self, wallets)
 
def show (self, title, x_label="Time", y_label="Amount")
 
def get_wallet_by_coin (self, coin)
 

Static Public Member Functions

def compute_knn_trend (x_data, y_val, smooth_points)
 
def compute_trend (x_data, y_val, smooth_points)
 
def plot (x_data, y_val, label, with_trend=False)
 

Public Attributes

 wallets
 
 axis
 

Detailed Description

Plots crypto data 

Constructor & Destructor Documentation

def pyhodl.charts.core.CryptoPlotter.__init__ (   self,
  wallets 
)

Member Function Documentation

def pyhodl.charts.core.CryptoPlotter.compute_knn_trend (   x_data,
  y_val,
  smooth_points 
)
static
:param x_data:[] of *
    X-axis data
:param y_val: [] of float
    List of values
:param smooth_points: int
    Number of points to interpolate
:return: tuple ([] of *, [] of float)
    New dataset generated (with knn) values of new dataset
def pyhodl.charts.core.CryptoPlotter.compute_trend (   x_data,
  y_val,
  smooth_points 
)
static
:param x_data:[] of *
    X-axis data
:param y_val: [] of float
    List of values
:param smooth_points: int
    Number of points to interpolate
:return: tuple ([] of *, [] of float)
    New dataset generated and smoothed values of new dataset
def pyhodl.charts.core.CryptoPlotter.get_wallet_by_coin (   self,
  coin 
)
:param coin: str
    Coin
:return: Wallet
    Wallet with base coin specified
def pyhodl.charts.core.CryptoPlotter.plot (   x_data,
  y_val,
  label,
  with_trend = False 
)
static
:param x_data: [] of *
    X-axis data
:param y_val: [] of float
    List of values
:param label: str
    Label of data points
:param with_trend: bool
    True iff you want to plot also trend
:return: void
    Plot data
def pyhodl.charts.core.CryptoPlotter.show (   self,
  title,
  x_label = "Time",
  y_label = "Amount" 
)
:param y_label: str
    Label of Y-axis
:param x_label: str
    Label of X-axis
:param title: str
    Title of plot
:return: void
    Shows plot

Member Data Documentation

pyhodl.charts.core.CryptoPlotter.axis
pyhodl.charts.core.CryptoPlotter.wallets

The documentation for this class was generated from the following file: