Skip to content

Instantly share code, notes, and snippets.

@naiborhujosua
Created July 26, 2022 03:47
Show Gist options
  • Save naiborhujosua/806ff8f43728cb4a20760698ff74d5f3 to your computer and use it in GitHub Desktop.
Save naiborhujosua/806ff8f43728cb4a20760698ff74d5f3 to your computer and use it in GitHub Desktop.
Parallel Coordinate
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