Answers for "'FacetGrid' object has no attribute 'set_title'"

0

'FacetGrid' object has no attribute 'set_title'

#'FacetGrid' object has no attribute 'set_title'

#use plot.fig.suptitle() instead

font = {'family': 'serif',
        'color':  'darkred',
        'weight': 'normal',
        'size': 16,
        
plot.fig.suptitle('Title',fontsize = 12, fontdict=font)
Posted by: Guest on January-09-2022
-1

AttributeError: 'FacetGrid' object has no attribute 'suptitle'

# Add a column of appropriate labels
df_reduced['measure'] = df_reduced['ActualExternal'].replace({0: 'Internal',
                                                              1: 'External'}

g = sns.FacetGrid(df_reduced, col="measure", margin_titles=True)
g.map(plt.hist, "ActualDepth", color="steelblue", bins=bins, width=4.5)

# Adjust title and axis labels directly
g.set_titles("{col_name}")  # use this argument literally
g.set_axis_labels(x_var="Percentage Depth", y_var="Number of Defects")
Posted by: Guest on October-18-2020

Code answers related to "'FacetGrid' object has no attribute 'set_title'"

Python Answers by Framework

Browse Popular Code Answers by Language