OK. As I checked the documents, I have to fix the labelList line to the
string that I want.
Regards,
Mahmood
On Mon, Dec 14, 2020 at 5:31 PM Mahmood Naderan
wrote:
> Hi
> I use the following code to create a dendrogram from a set of x-y points
>
> import matplotlib.pyplot as plt
> import num
Hi
I use the following code to create a dendrogram from a set of x-y points
import matplotlib.pyplot as plt
import numpy as np
from scipy.cluster.hierarchy import dendrogram, linkage
a = np.array([
[5.840,-2.339],
[6.320,-2.665],
[-1.698,-0.084],
],)
linked = linkage(a, 'single')
labelList = range