我在seaborn中的swarmplot和pointplot中设置xtick时遇到了一些问题(尽管使用传统的plt.plot也没问题)。plt.xticks([2,3,4,5,6,7,8])ax2.xaxis.set_major_locator(ticker.LinearLocator(8))import numpy as npimport seaborn as sns
import
这是我的代码:import seaborn as snssns.regplot(y=y, x=x, marker=' ',color='k')我在绘图时不会出现任何错误,但是重新绘图不会显示在这个情节上。import matplotlib.pyplot as pltimport pandas as pd
df