Created
July 26, 2022 03:47
-
-
Save naiborhujosua/806ff8f43728cb4a20760698ff74d5f3 to your computer and use it in GitHub Desktop.
Parallel Coordinate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pandas.plotting import parallel_coordinates | |
# Plot | |
plt.figure(figsize=(12,9), dpi= 80) | |
data.drop(['Date','Holiday', 'Functioning Day'],axis=1,inplace=True) | |
parallel_coordinates(data, 'Seasons', colormap='Dark2') | |
# Lighten borders | |
plt.gca().spines["top"].set_alpha(0) | |
plt.gca().spines["bottom"].set_alpha(.3) | |
plt.gca().spines["right"].set_alpha(0) | |
plt.gca().spines["left"].set_alpha(.3) | |
plt.title('Parallel Coordinated of Diamonds', fontsize=22) | |
plt.grid(alpha=0.3) | |
plt.xticks(fontsize=12,rotation=60,) | |
plt.yticks(fontsize=12) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment