vault backup: 2025-12-05 12:18:43

This commit is contained in:
2025-12-05 12:18:43 +01:00
parent 767b76f5c4
commit 0e700721af
7 changed files with 56 additions and 25 deletions

View File

@@ -51,18 +51,34 @@ Ideen:
```python
from calendar import TextCalendar as TC
from matplotlib.patches import Patch
# Output
November 2025
Mo Tu We Th Fr Sa Su
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 [21] 22 23
24 25 26 27 28 29 30
colors = ['#0095D9','#F7EC59','#CBBE4A'] # Color Picker helps
21.11.2025 - Nächste Vorlesung
plt.pie(
[0.8, 0.15, 0.05], # Try and Error ratios
colors=colors,
startangle=-55
)
plt.legend(
labels=["Sky", "Sunny side of pyramid", "Shady side of pyramid"],
# Set right color and size for Patches
handles=[Patch(facecolor=color) for color in colors],
handlelength=1,
handleheight=1,
# Move Legend to the right
loc="center left",
bbox_to_anchor=(1, 0.5),
fontsize=16,
# Disable background and edge
facecolor='none',
edgecolor='none'
)
plt.tight_layout() # Layout shouldnt Overflow
plt.show()
```