“Exemple Python Treemap” Réponses codées

Exemple Python Treemap

import matplotlib.pyplot as plt
import squarify
import pandas as pd

sqaure_sizes=[10, 30, 50, 200]
labels=["A", "B", "C", "D"]
colors=['red','blue','green','yellow']
squarify.plot(sizes=sqaure_sizes, label=labels, color=colors, alpha=0.7 )
plt.axis('off')
plt.show()
Unsightly Unicorn

Exemple Python Treemap

import matplotlib.pyplot as plt
import squarify
import pandas as pd

square_size = [10, 20, 30, 40, 50]
squarify.plot(square_size)
plt.show()
Unsightly Unicorn

Exemple Python Treemap

import matplotlib.pyplot as plt
import squarify
import pandas as pd

square_sizes=[10, 40, 20, 70]
labels=["10", "40", "20", "70"]
colors=['purple','orange','blue','green']
squarify.plot(sizes=square_sizes, label=labels, color=colors, alpha=0.6 )
plt.axis('off')
plt.show()
Unsightly Unicorn

Exemple Python Treemap

import matplotlib.pyplot as plt
import squarify
import pandas as pd

square_sizes=[30, 40, 10, 60]
labels=["30", "40", "10", "60"]
squarify.plot(sizes=square_sizes, label=labels, alpha=0.6 )
plt.axis('off')
plt.show()
Unsightly Unicorn

Réponses similaires à “Exemple Python Treemap”

Questions similaires à “Exemple Python Treemap”

Plus de réponses similaires à “Exemple Python Treemap” dans Python

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code