Say you want Comic Sans for the title and Helvetica for the x label.
csfont = {'fontname':'Comic Sans MS'}
hfont = {'fontname':'Helvetica'}
plt.title('title',**csfont)
plt.xlabel('xlabel', **hfont)
plt.show()
More Related Contents:
- How to use a (random) *.otf or *.ttf font in matplotlib?
- How to change the text color of font in legend?
- how to set up a custom font with custom path to matplotlib global font?
- How to load .ttf file in matplotlib using mpl.rcParams?
- Plotting time in Python with Matplotlib
- How to adjust padding with cutoff or overlapping labels
- Plotting with seaborn using the matplotlib object-oriented interface
- Move seaborn plot legend to a different position
- pylab.ion() in python 2, matplotlib 1.1.1 and updating of the plot while the program runs
- prevent plot from showing in jupyter notebook
- Bin size in Matplotlib (Histogram)
- What is the currently correct way to dynamically update plots in Jupyter/iPython?
- How to format seaborn/matplotlib axis tick labels from number to thousands or Millions? (125,436 to 125.4K)
- matplotlib scatter plot colour as function of third variable [duplicate]
- Transparency for Poly3DCollection plot in matplotlib
- MatPlotLib: Multiple datasets on the same scatter plot
- How to make a 3D scatter plot in matplotlib
- Is there a way of drawing a caption box in matplotlib
- multidimensional confidence intervals [closed]
- Seaborn tsplot does not show datetimes on x axis well
- Setting the position of the `ylabel`
- Extract csv file specific columns to list in Python
- pandas plot value counts barplot in descending manner [duplicate]
- How to calculate length of string in pixels for specific font and size?
- How to add a mean and median line to a Seaborn displot
- First and last row cut in half of heatmap plot
- How to create a scatter plot by category [duplicate]
- How can I change the x axis so there is no white space?
- Rotate axis text in matplotlib
- ValueError: x and y must be the same size