python from ggplot import * data = {'x': [1, 2, 3, 4, 5], 'y': [2, 4, 6, 8, 10]} df = pd.DataFrame(data) p = ggplot(aes(x='x', y='y'), data=df) + \ geom_point() + \ labs(title='Scatter Plot', x='X', y='Y') theme = theme_gray() p = p + theme + \ theme(axis_text=element_text(size=12)) print(p)


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