0
import pandas as pd
import numpy as np

df = pd.DataFrame(np.random.rand(3,3), columns=['A','B','C'])
df['Name'] = ['Lily','Mary','Joan']
df.plot(x='Name', kind='barh', stacked=True, mark_right=True, figsize=(10,6),
        title='Distribution of Tags across Participants')

When I plot from a dataframe df. Can I tune the font size of the title? Passing a list/dictionary to the title argument instead of a string, perhaps? Basically I don't know how to integrate matplotlib functions into df.plot().

Paw in Data
  • 1,262
  • 2
  • 14
  • 32
  • df.plot allows all the functions present in `matplotlib` https://stackoverflow.com/questions/12444716/how-do-i-set-the-figure-title-and-axes-labels-font-size-in-matplotlib – sudhish Jan 01 '21 at 14:04
  • https://realpython.com/pandas-plot-python/ – sudhish Jan 01 '21 at 14:05

1 Answers1

1

Turns out I can use plt.title() directly. Tutorial

Paw in Data
  • 1,262
  • 2
  • 14
  • 32