Prototype heatmap graphs#

3d -> 2d heatmap graph: density heatmap#

Using density heatmap

import numpy as np
import plotly.express as px
import pandas as pd
import eafpy as eaf

dat = eaf.read_datasets("spherical-250-10-3d.txt")
subset = eaf.subset(dat,range = [1, 10])
df = pd.DataFrame(subset, columns = ["x", "y", "z", "set"])

fig = px.density_heatmap(df, x="x", y="y", z="z", histfunc="avg", nbinsx=85, nbinsy=85)
fig.show()

3d -> 2d heatmap: Continuous Scatter heatmap#

import numpy as np
import plotly.express as px
import pandas as pd
import eafpy as eaf

dat = eaf.read_datasets("spherical-250-10-3d.txt")
subset = eaf.subset(dat,range = [7, 10])
df = pd.DataFrame(subset, columns = ["x", "y", "z", "set"])
fig = px.scatter(df, x="x", y="y", color='z')
fig.show()