#!/usr/bin/python3 # =================================================================== # See: # 1. www.geeksforgeeks.org/plotting-graph-using-seaborn-python/ # 2. www.geeksforgeeks.org/python-seaborn-pairplot-method/ # # To install: pip3 install seaborn # # =================================================================== import matplotlib.pyplot as plt import seaborn as sns # ---- Python program to illustrate plotting categorical scatter # ---- plots with Seaborn # ---- x and y data values x = ['sun', 'mon', 'fri', 'sat', 'tue', 'wed', 'thu'] y = [5, 6.7, 4, 6, 2, 4.9, 1.8] # ---- plotting strip plot with seaborn # ---- (x,y are keywords and data lists) ax = sns.stripplot(x=x, y=y) # ---- giving labels to x-axis and y-axis ax.set(xlabel ='Days', ylabel ='Amount_spend') # ---- giving title to the plot plt.title('My first graph'); # ---- function to show plot plt.show()