1

I have the next dendrograms code

plt.subplot(1,3,1)
plt.title('Enlace Promedio')
plt.xlabel('ID del Usuario de Netflix', fontsize=10)
plt.ylabel('Distancia', fontsize=10)
dendrogram(z_average,leaf_font_size=10)

plt.subplot(1,3,2)

plt.title('Enlace Simple')
plt.xlabel('ID del Usuario de Netflix', fontsize=10)
plt.ylabel('Distancia', fontsize=10)
dendrogram(z_simple,leaf_font_size=10)


plt.subplot(1,3,3)

plt.title('Enlace de Ward')
plt.xlabel('ID del Usuario de Netflix', fontsize=10)
plt.ylabel('Distancia', fontsize=10)
dendrogram(z_ward,leaf_font_size=10)
plt.show()

And this output

enter image description here

How can I change the size of each of the subplots?

  • Does this answer your question? [How do I change the figure size with subplots?](https://stackoverflow.com/questions/14770735/how-do-i-change-the-figure-size-with-subplots) – BigBen Jul 15 '20 at 03:07

1 Answers1

1

Yes you can use,

f, axs = plt.subplots(figsize=(a,b))

And where the a,b are, pick the size

Reference:

How do I change the figure size with subplots?

anasan
  • 80
  • 8