About 393,000 results
Open links in new tab
  1. python - Get the title of a given figure - Stack Overflow

    You can get the title through the axes: fig.axes[0].get_title() In case you have access to the axis itself, you can directly do: ax.get_title() The above is for getting the title associated with an axis …

  2. python - How to get current matplolib plot title? - Stack …

    Feb 6, 2018 · Using the object orientated API, there is a set_title() and a get_title() function: fig, ax = plt.subplots() ax.plot([1,2,3]) ax.set_title("Testing the title") print (ax.get_title()) # Testing the …

  3. matplotlib.pyplot.getMatplotlib 3.10.3 documentation

    Return the value of an Artist 's property, or print all of them. The queried artist; e.g., a Line2D, a Text, or an Axes. If property is 'somename', this function returns obj.get_somename(). If it's …

  4. matplotlib.pyplot How to name different lines in the same plot?

    Jun 18, 2012 · Think about doing this: import matplotlib.pyplot as plt plt.plot(x_A,y_A,'g--') plt.plot(x_B,y_B,'r-o') plt.show() How would you go about giving both lines different names, i.e. …

  5. How to Add Titles to Matplotlib: Title, Subtitle, Axis Titles

    Jun 3, 2022 · In this tutorial, you’ll learn how to add titles to your Matplotlib plots. You’ll learn how to add a title, a subtitle, and axis labels to your plot and subplots. You’ll learn how to style …

  6. Matplotlib Labels and Title - W3Schools

    With Pyplot, you can use the title() function to set a title for the plot. Add a plot title and labels for the x- and y-axis: You can use the fontdict parameter in xlabel(), ylabel(), and title() to set font …

  7. matplotlib.pyplot.plotMatplotlib 3.10.3 documentation

    If the color is the only part of the format string, you can additionally use any matplotlib.colors spec, e.g. full names ('green') or hex strings ('#008000'). Examples using matplotlib.pyplot.plot # …

  8. Matplotlib.pyplot.title() in Python - GeeksforGeeks

    Apr 26, 2025 · The title() method in the Matplotlib module is used to specify the title of the visualization depicted and display the title using various attributes. In this article, we will learn …

  9. Legends, Titles, and Labels with Matplotlib - Python

    In this tutorial, we're going to cover legends, titles, and labels within Matplotlib. A lot of times, graphs can be self-explanatory, but having a title to the graph, labels on the axis, and a legend …

  10. matplotlib.axes — Matplotlib 3.10.3 documentation

    It contains the plotted data, axis ticks, labels, title, legend, etc. Its methods are the main interface for manipulating the plot. An Axes object encapsulates all the elements of an individual (sub …

  11. Some results have been removed
Refresh