Orientation of the Image Solution Review
Let's go over the solution for the "Orientation of the image" exercise.
We'll cover the following...
We'll cover the following...
Image orientation solution
Python 3.8
import seaborn as snsfrom matplotlib import pyplot as pltbasic_palette = sns.color_palette("pastel")plt.style.use('seaborn-whitegrid')pa = 61ap =39plt.pie([pa, ap], labels = ["PA", "AP"], colors=[basic_palette[-2],basic_palette[4]], autopct='%1.1f%%', startangle=70)plt.title("Orientation", fontsize=16)plt.savefig("output/graph.png")
Image orientation explanation
- Line 3 sets the color palette by