Skip to content

Instantly share code, notes, and snippets.

@janpipek
Created January 5, 2020 17:25
Show Gist options
  • Save janpipek/06657f1da6cc5e7d7e43519e0d98b762 to your computer and use it in GitHub Desktop.
Save janpipek/06657f1da6cc5e7d7e43519e0d98b762 to your computer and use it in GitHub Desktop.
Koláčový graf
# TODO: Přesunout někam jinam :-)
import pandas as pd
kolac = pd.Series(
[1, 1, 1] * 2,
index = ["mák", "tvaroh", "povidla"] * 2
)
ax = kolac.plot.pie(
figsize=(8, 8),
title="Koláčový graf",
colors=["#303090", "#ffffed", "#200040"] * 2,
wedgeprops = {'linewidth': 15, 'edgecolor': "#ffa070"},
)
ax.set_ylabel(None);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment