How to make matplotlib graphs look professionally done like this?

前端 未结 4 1509
失恋的感觉
失恋的感觉 2021-01-30 23:56

Default matplotlib graphs look really unattractive and even unprofessional. I tried out couple of packages include seaborn as well as prettyplotlib but both of these just barely

4条回答
  •  无人及你
    2021-01-31 00:39

    You can customize plots style as follow:

    import numpy as np
    import matplotlib.pyplot as plt
    plt.use_style('ggplot') # customize your plots style
    x = np.linspace(0,2*np.pi,100)
    y = np.sin(x)
    plt.fill_between(x,y)
    plt.show()
    

提交回复
热议问题