About 1,300,000 results
Open links in new tab
  1. Pyplot tutorial — Matplotlib 3.10.3 documentation

    matplotlib.pyplot is a collection of functions that make matplotlib work like MATLAB. Each pyplot function makes some change to a figure: e.g., creates a figure, creates a plotting area in a …

  2. python - Save plot to image file instead of displaying it - Stack Overflow

    Dec 4, 2023 · Instead, use plt.switch_backend('Agg'), or Turn off " enable support " in the Spyder prefs and run the matplotlib.use('Agg') command yourself.

  3. How to Save a Plot to a File Using Matplotlib? - GeeksforGeeks

    Apr 11, 2025 · There are several ways to save plots in Matplotlib: 1. Using savefig() Method. savefig () method is the most popular way of saving plots of Matplotlib. This function enables …

  4. Simple Plot in Python using Matplotlib - GeeksforGeeks

    May 10, 2025 · Matplotlib is one of the most popular plotting libraries in Python which makes it easy to generate high-quality graphs with just a few lines of code. In this article, we'll see how …

  5. Matplotlib Step-by-Step Guide - GeeksforGeeks

    Feb 24, 2025 · Pyplot is a submodule of the Matplotlib library in Python providing a beginner-friendly tool for creating visualizations with minimal code. It helps transform dull data into …

  6. Matplotlib Tutorial - W3Schools

    Matplotlib is a low level graph plotting library in python that serves as a visualization utility. Matplotlib was created by John D. Hunter. Matplotlib is open source and we can use it freely. …

  7. matplotlib - How to plot an output of a function in Python?

    Jul 15, 2013 · These three functions give me the progression of number of customers and their orders from state 0 to next 365 states (or days). In function state_evolution, I want to plot the …

  8. matplotlib.pyplot.plot — Matplotlib 3.10.3 documentation

    There's a convenient way for plotting objects with labelled data (i.e. data that can be accessed by index obj['y']). Instead of giving the data in x and y, you can provide the object in the data …

  9. matplotlib.pyplot.savefig — Matplotlib 3.10.3 documentation

    Save the current figure as an image or vector graphic to a file. The available output formats depend on the backend being used. A path, or a Python file-like object, or possibly some …

  10. python - How can I print a plot in matplotlib either from the plot ...

    Sep 14, 2011 · import matplotlib.pyplot as plt import numpy as np import subprocess import shlex n=20 x=np.linspace(0,np.pi,n) y=np.sin(x) plt.plot(x,y) fname='/tmp/test.pdf' plt.savefig(fname) …

  11. Some results have been removed
Refresh