!pip install ggplot from ggplot import * python data = pd.DataFrame({'x': [1, 2, 3, 4, 5], 'y': [2, 4, 6, 8, 10]}) python p = ggplot(data, aes(x='x', y='y')) p + geom_point() python p + geom_point() + \ ggtitle("Scatter Plot") + \ xlab("X-axis") + \ ylab("Y-axis") + \ theme_bw()


上一篇:
下一篇:
切换中文