Top "Matplotlib" questions

Matplotlib is a plotting library for Python which may be used interactively or embedded in stand-alone GUIs.

Save plot to image file instead of displaying it using Matplotlib

I am writing a quick-and-dirty script to generate plots on the fly. I am using the code below (from Matplotlib …

python matplotlib plot
How do I set the figure title and axes labels font size in Matplotlib?

I am creating a figure in Matplotlib like this: from matplotlib import pyplot as plt fig = plt.figure() plt.plot(…

python matplotlib
How to make IPython notebook matplotlib plot inline

I am trying to use IPython notebook on MacOS X with Python 2.7.2 and IPython 1.1.0. I cannot get matplotlib graphics to …

python matplotlib jupyter-notebook ipython data-visualization
How to change the font size on a matplotlib plot

How does one change the font size for all elements (ticks, labels, title) on a matplotlib plot? I know how …

python matplotlib font-size
setting y-axis limit in matplotlib

I need help with setting the limits of y-axis on matplotlib. Here is the code that I tried, unsuccessfully. import …

python matplotlib
Changing the "tick frequency" on x or y axis in matplotlib?

I am trying to fix how python plots my data. Say x = [0,5,9,10,15] and y = [0,1,2,3,4] Then I would do: matplotlib.pyplot.…

python matplotlib plot axes xticks
How to put the legend out of the plot

I have a series of 20 plots (not subplots) to be made in a single figure. I want the legend to …

python matplotlib legend
pyplot scatter plot marker size

In the pyplot document for scatter plot: matplotlib.pyplot.scatter(x, y, s=20, c='b', marker='o', cmap=None, norm=…

matplotlib marker scatter
When to use cla(), clf() or close() for clearing a plot in matplotlib?

Matplotlib offers there functions: cla() # Clear axis clf() # Clear figure close() # Close a figure window The documentation doesn't offer a …

matplotlib plot