import seaborn as sns import matplotlib.pyplot as plt

Example data

distance = [1, 2, 4, 8] acc_dist = [0.85, 0.92, 0.95, 0.97]

Create scatter plot

sns.set_theme() plt.figure(figsize=(8, 6)) # Adjust the figure size if needed sns.scatterplot(x=distance, y=acc_dist, sizes=(20, 200), color='red')

Add labels and title

plt.xlabel('Distance') plt.ylabel('Accuracy') plt.title('Accuracy vs. Distance')

Display the plot

plt.show()

import seaborn as snsimport matplotlibpyplot as plt# Example datadistance = 1 2 4 8acc_dist = 085 092 095 097# Create scatter plotsnsset_themepltfigurefigsize=8 6 # Adjust the figure size if neededsn

原文地址: http://www.cveoy.top/t/topic/hV1p 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录