# CodeJourney_PieZine

# Broken Pie Slices

For The Zine Jam: **Sunday Zine Club 27 (Pie)**: [https://itch.io/jam/sunday-zine-club-26](https://itch.io/jam/sunday-zine-club-26)  ,***Broken Pie Slices*** is a zine that uses the pie graph coded in **Python** to make a visual poetic piece.

## Zine

[https://illestpreacha.itch.io/brokenpieslices](https://illestpreacha.itch.io/brokenpieslices)

## Code (Non- Edited Charts)

### Python Zine Chart 1

```python
import matplotlib.pyplot as plt
import numpy as np

#part 1
y = np.array([40, 30, 25, 15])
lines = ["As Seen in the Pieces", "Broken Upon", "What is Next?", "What is Near?"]
hues = ["black", "yellow", "orange", "#43BD51"]
pieSpread = [0.2, 0.8, 0.01, 0.25]

#part 2
y2 = np.array([50, 40, 25, 105,25,50])
lines2 = ["More Chunks", "Not Knowing which Direction", "as The Splits Occur", "What is Near?","What is Next","With These Broken Pies"]
hues2 = ["aqua", "aqua", "navy", "teal","grey","purple"]
pieSpread2 = [0.72, 1, 0.21, 0.005,0.1,0.812]

plt.title("Broken Pies", fontname="Times New Roman", fontsize=22)
plt.xlabel("More to Come", fontname="Times New Roman", fontsize=12)


plt.pie(y, labels = lines, explode = pieSpread,colors = hues, shadow = True)
plt.pie(y2, labels = lines2, explode = pieSpread2,colors = hues2, shadow = True)
plt.show()
```

### Python Zine Chart 2

```python
import matplotlib.pyplot as plt
import numpy as np

#part 1
y = np.array([40, 30, 25, 15])
lines = ["As Seen in the Pieces", "Broken Upon", "What is Next?", "What is Near?"]
hues = ["black", "yellow", "orange", "#43BD51"]
pieSpread = [0.2, 0.8, 0.01, 0.25]

#part 2
y2 = np.array([50, 40, 25, 105,25,50])
lines2 = ["More Chunks", "Not Knowing which Direction", "as The Splits Occur", "What is Near?","What is Next","With These Broken Pies"]
hues2 = ["aqua", "aqua", "navy", "teal","grey","purple"]
pieSpread2 = [0.72, 0.45, 0.21, 0.005,0.1,0.812]

#part 3
y3 = np.array([40, 30, 25, 15])
lines3 = ["As Seen in the Pieces", "Broken Upon", "What is Next?", "What is Near?"]
hues3 = ["black", "yellow", "orange", "#43BD51"]
pieSpread3 = [-0.2, 0.8, -0.01, -0.25]

plt.title("Broken Pies", fontname="Times New Roman", fontsize=22)
plt.xlabel("More to Come", fontname="Times New Roman", fontsize=12)


plt.pie(y, labels = lines, explode = pieSpread,colors = hues, startangle = 90, shadow = True)
plt.pie(y2, labels = lines2, explode = pieSpread2,colors = hues2, startangle = 35, shadow = True)
plt.pie(y3, labels = lines3, explode = pieSpread3,colors = hues3, startangle = 15, shadow = True)
plt.show() 
```

### Python Zine Chart 3

```python
import matplotlib.pyplot as plt
import numpy as np

#part 1
y = np.array([40, 30, 25, 15])
lines = ["As Seen in the Pieces", "Broken Upon", "What is Next?", "What is Near?"]
hues = ["lime", "yellow", "orange", "#43BD51"]
pieSpread = [0.12, 0.28, 0.01, 0.50]

#part 2
y2 = np.array([50, 40, 25, 105,25,50])
lines2 = ["More Chunks", "Not Knowing which Direction", "as The Splits Occur", "What is Near?","What is Next","With These Broken Pies"]
hues2 = ["aqua", "aqua", "navy", "teal","grey","purple"]
pieSpread2 = [0.72, 0.45, 0.121, 0.345,0.1,0.812]

#part 3
y3 = np.array([40, 30, 25, 15])
lines3 = ["As Seen in the Pieces", "Broken Upon", "What is Next?", "What is Near?"]
hues3 = ["lime", "yellow", "orange", "#43BD51"]
pieSpread3 = [0.52, 0.28, 0.91, -1.25]

plt.title("Broken Pies", fontname="Times New Roman", fontsize=22)
plt.xlabel("More to Come", fontname="Times New Roman", fontsize=12)


plt.pie(y, labels = lines, explode = pieSpread,colors = hues, startangle = 2, shadow = True)
plt.pie(y2, labels = lines2, explode = pieSpread2,colors = hues2, startangle = 45, shadow = True)
plt.pie(y3, labels = lines3, explode = pieSpread3,colors = hues3, startangle = 95, shadow = True)
plt.show() 
```

### Python Zine Chart 4

```python
import matplotlib.pyplot as plt
import numpy as np

#part 1
y = np.array([40, 30, 25, 15])
lines = ["As Seen in the Pieces", "Broken Upon", "What is Next?", "What is Near?"]
hues = ["blue", "yellow", "orange", "black"]
pieSpread = [0.012, 0.428, 0.0001, 0.550]

#part 2
y2 = np.array([50, 40, 25, 105,25,50])
lines2 = ["More Chunks", "Not Knowing which Direction", "as The Splits Occur", "What is Near?","What is Next","With These Broken Pies"]
hues2 = ["aqua", "aqua", "black", "teal","grey","purple"]
pieSpread2 = [0.72, 0.45, 0.121, 0.345,0.1,0.812]

#part 3
y3 = np.array([40, 30, 25, 15])
lines3 = ["As Seen in the Pieces", "Broken Upon", "What is Next?", "What is Near?"]
hues3 = ["grey", "yellow", "black", "#43BD51"]
pieSpread3 = [0.52, 0.28, 0.91, -1.25]

plt.title("Broken Pies", fontname="Times New Roman", fontsize=22)
plt.xlabel("More to Come", fontname="Times New Roman", fontsize=12)


plt.pie(y, labels = lines, explode = pieSpread,colors = hues, startangle = 2, shadow = True)
plt.pie(y2, labels = lines2, explode = pieSpread2,colors = hues2, startangle = 3, shadow = True)
plt.pie(y3, labels = lines3, explode = pieSpread3,colors = hues3, startangle = 5, shadow = True)
```
