About 917,000 results
Open links in new tab
  1. python - How do I set the figure title and axes labels font size ...

    If you aren't explicitly creating figure and axis objects you can set the title font size when you create the title with the fontdict argument. You can set the x and y label font sizes separately when you create the x and y labels with the fontsize argument.

  2. python - How to change the font size on a matplotlib plot - Stack Overflow

    You can use plt.rcParams["font.size"] for setting font_size in matplotlib and also you can use plt.rcParams["font.family"] for setting font_family in matplotlib. Try this example:

  3. How to change the size of axis labels in Matplotlib?

    Apr 15, 2025 · We can change the size of axis labels by using the fontsize parameter in the xlabel() and ylabel() functions. These method allow you to specify the font size directly when setting the labels. Python

  4. python - How to change tick label font size - Stack Overflow

    Jun 17, 2011 · In a matplotlib figure, how can I make the font size for the tick labels using ax1.set_xticklabels() smaller? Further, how can one rotate it from horizontal to vertical? There is a simpler way actually. I just found: This only answers to …

  5. How to Change Axis Font Size in Matplotlib - Matplotlib Color

    Jul 1, 2024 · To change the font size of the axis labels in Matplotlib, you can use the fontsize parameter in the xlabel() and ylabel() functions. This parameter allows you to specify the font size of the labels in points.

  6. Matplotlib Axis Font Size - Matplotlib Color

    Jun 21, 2024 · In this article, we will explore how to change the font size of axis labels in Matplotlib. Setting the Font Size for Axis Labels. You can set the font size for axis labels in Matplotlib by using the fontsize parameter in the set_ylabel() and set_xlabel() methods. Let’s see how you can do this:

  7. How to Change Font Sizes on a Matplotlib Plot - Statology

    Sep 3, 2020 · Example 3: Change the Font Size of the Axes Labels. The following code shows how to change the font size of the axes labels of the plot: #set axes labels font to size 20 plt. rc ('axes', labelsize= 20) #create plot plt. scatter (x, y) plt. title ('title') plt. xlabel ('x_label') plt. ylabel ('y_label') plt. show Example 4: Change the Font Size ...

  8. python - how to make the text size of the x and y axis labels and …

    Dec 8, 2014 · The text size for the plot title, x and y axis labels (i.e. point label 2014-12-03 and axis label [month of year] become very small to the point they are unreadable. How do I increase the size of these text labels?

  9. How to Change Font Size in Matplotlib Plot - datagy

    Jul 15, 2022 · How to change font sizes globally in Matplotlib; How to change font sizes of titles, axis labels, and tick labels; Change font sizes using rc parameters; Resetting font sizes back to default values in Matplotlib

  10. Change Font Size of elements in a Matplotlib plot

    How to change the font size in matplotlib? You can change the global font size in matplotlib using rcparams. You can also change the font size of individual components such as tick labels, axes labels, axes titles, etc. The following is the syntax: import matplotlib.pyplot as plt plt.rcParams.update({'font.size':20})

Refresh