Pandas boxplot: set color and properties for box, median, mean

后端 未结 4 1699
南旧
南旧 2020-12-16 03:10

I have a DataFrame with a MultiIndex:

# -*- coding: utf-8 -*-
import numpy as np
import pandas as pd

# dataframe with dates
dates = pd.DataFrame()
dates[\'2         


        
4条回答
  •  情深已故
    2020-12-16 03:50

    Before your bp.set_xlabel("") statement, try this instead:

    p = plt.gca()
    p.set_xlabel("")
    p.set_title("Some plot", fontsize=60)
    p.tick_params(axis='y', labelsize=60)
    p.tick_params(axis='x', labelsize=60)
    

提交回复
热议问题