About 50 results
Open links in new tab
  1. How to set a single, main title above all the subplots

    Aug 15, 2011 · I am using pyplot. I have 4 subplots. How to set a single, main title above all the subplots? title() sets it above the last subplot.

  2. How do I set the figure title and axes labels font size?

    from matplotlib import pyplot as plt fig = plt.figure() plt.plot(data) fig.suptitle('test title') plt.xlabel('xlabel') plt.ylabel('ylabel') fig.savefig('test.jpg') I want to specify font sizes for the figure title and the axis …

  3. How do I add a title to each subplot? - Stack Overflow

    Given 4 subplots of the same size, if I gave a value of $0.9$ for $y$ to each subplot's axis.title.set_y(), it still put the titles at weird locations and didn't match for each subplot.

  4. How to add a variable to Python plt.title? - Stack Overflow

    May 3, 2017 · I am trying to plot lots of diagrams, and for each diagram, I want to use a variable to label them. How can I add a variable to plt.title? For example: import numpy as np import matplotlib.pyplot ...

  5. python - Add a title or label to a single plot - Stack Overflow

    Sep 3, 2017 · As the documentation for plot() explains, plot() returns a list of Line2D objects, not an Axes, which is why your second code does not work. In essence, there are 2 ways to use matplotlib: …

  6. How to put the title at the bottom of a figure in matplotlib?

    Apr 16, 2017 · I use matplotlib to plot a figure with four subfigures, and set_title method put the title ( (a) (b) (c) (d)) on the top of every subfigure, see the following code example.

  7. python - Giving graphs a subtitle - Stack Overflow

    Sep 7, 2009 · I want to give my graph a title in big 18pt font, then a subtitle below it in smaller 10pt font. How can I do this in matplotlib? It appears the title() function only takes one single string with a

  8. Matplotlib title spanning two (or any number of) subplot columns

    Matplotlib title spanning two (or any number of) subplot columns Asked 9 years, 4 months ago Modified 3 years, 7 months ago Viewed 14k times

  9. Python Matplotlib figure title overlaps axes label when using twiny

    Oct 5, 2012 · Python Matplotlib figure title overlaps axes label when using twiny Asked 13 years, 6 months ago Modified 1 year, 9 months ago Viewed 257k times

  10. Split title of a figure in matplotlib into multiple lines

    I use matplotlib to create a figure with 4 sub-plots in it. I would like to split one of my title of a subplot, such that each line would be in the centered with respect to subplot.