Matplotlib and ggplot - face_grid text size label
I am using ggplot
the facet_grid function on date
.
p = ggplot(aes(x='meh',weight='mah',fill='type'),data=plot_df) + geom_bar(stat='identity') + facet_grid('date',scales='fixed') + ggtitle(title)
I use the following arguments to edit the legend and axis sizes correctly:
t = theme_gray()
t._rcParams['font.size'] = 30 # Legend font size
t._rcParams['xtick.labelsize'] = 30 # xaxis tick label size
t._rcParams['ytick.labelsize'] = 30 # yaxis tick label size
t._rcParams['axes.labelsize'] = 30 # general label size
p = p + t
As you can see from the attached image, the correct labels ( date
) are subtle.
Which of the matplotlib arguments controls this label text size? I can see the custom options for matplotlib here , but since facet_grid
is a function ggplot
, I can't see which of these controls this particular label.
Edit
Example input :
import pandas as pd
from ggplot import *
data_df = pd.read_csv("/dir/sample/input/above/tmp.csv")
print data_df.head()
p = ggplot(aes(x='status',weight='duration_proportion',fill='line_name'),data=data_df) + geom_bar(stat='identity') + labs(x="Service status", y="Percentage time") + facet_grid('date',scales='fixed')
t = theme_gray()
t._rcParams['font.size'] = 30 # Legend font size
t._rcParams['xtick.labelsize'] = 30 # xaxis tick label size
t._rcParams['ytick.labelsize'] = 30 # yaxis tick label size
t._rcParams['axes.labelsize'] = 30
p = p + t
p.save("test.png" ,height=24,width=44)
+3
source to share
No one has answered this question yet
Check out similar questions: