About 50 results
Open links in new tab
  1. python - How do I change the size of figures drawn with Matplotlib ...

    #!/usr/bin/env python """ This is a small demo file that helps teach how to adjust figure sizes for matplotlib """ import matplotlib print "using MPL version:", matplotlib.__version__ …

  2. Fill area under curve in matlibplot python on log scale

    Fill area under curve in matlibplot python on log scale Asked 13 years, 11 months ago Modified 13 years, 3 months ago Viewed 22k times

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

    This displays the figure in a GUI: import matplotlib.pyplot as plt plt.plot([1, 2, 3], [1, 4, 9]) plt.show() But how do I instead save the figure to a file (e.g. foo.png)?

  4. Scaling axis for a scatter plot in matlibplot in python

    Dec 13, 2014 · I am working with data visualization using matlibplot. My plot has a total of 6502 data values and is working fine, but the values are close and dense. For example my y axis values ranges …

  5. python - How to plot a single point in matplotlib - Stack Overflow

    I'd like to plot a single point on my graph, but it seems like they all need to plot as either a list or equation. I need to plot like ax.plot(x, y) and a dot will be appeared at my x, y coordinate...

  6. Changing the tick frequency on the x or y axis - Stack Overflow

    9 Pure Python Implementation Below's a pure python implementation of the desired functionality that handles any numeric series (int or float) with positive, negative, or mixed values and allows for the …

  7. python - When to use cla (), clf () or close () for clearing a plot ...

    Oct 2, 2023 · Matplotlib offers these functions: cla() # Clear axis clf() # Clear figure close() # Close a figure window When should I use each function and what exactly does it do?

  8. How to draw a rectangular on subplotted figure using matlibplot in …

    Jul 20, 2020 · I successfully draw a subplot of the histogram figure contains three subplots as shown in the figure below. The question is that I need to draw dashed rectangular covers the three subplots at …

  9. How to make a line for the density of the distribution of my data in ...

    Apr 20, 2015 · How can I make a figure like the following one but with flat curve using matlibplot in Python?

  10. python - Display image with a zoom = 1 with Matplotlib imshow () …

    Nov 8, 2011 · I want to display an image (say 800x800) with Matplotlib.pyplot imshow() function but I want to display it so that one pixel of the image occupies one pixel on the screen (zoom factor = 1, …