“Contoh Python Treemap” Kode Jawaban

Contoh 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

Contoh 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

Contoh 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

Contoh 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

Jawaban yang mirip dengan “Contoh Python Treemap”

Pertanyaan yang mirip dengan “Contoh Python Treemap”

Lebih banyak jawaban terkait untuk “Contoh Python Treemap” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya