# Magic
%matplotlib inline
# Reload modules whenever they change
%load_ext autoreload
%autoreload 2
# Make clusterking package available even without installation
import sys
sys.path = ["../../"] + sys.path
import pandas as pd
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import os.path
import clusterking.plots
# [ For testing purposes we make sure that we always have a file
# that exists to fall back to ]
paths = [
"output/cluster/long_g10_n30_d05_data.csv",
"output/cluster/tutorial_basics_data.csv"
]
path = None
for p in paths:
if os.path.exists(p):
path = p
print(path)
break
df = pd.read_csv(path)
cp = clusterking.plots.ClusterPlot(df)
cp.debug = False
cp.scatter(["l", "sl"])