Top "Matplotlib" questions

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

How to get different colored lines for different plots in a single figure?

I am using matplotlib to create the plots. I have to identify each plot with a different color which should …

python colors matplotlib
How to plot a histogram using Matplotlib in Python with a list of data?

I am trying to plot a histogram using the matplotlib.hist() function but I am not sure how to do …

python matplotlib visualization data-visualization
plot a circle with pyplot

surprisingly I didn't find a straight-forward description on how to draw a circle with matplotlib.pyplot (please no pylab) taking …

python matplotlib
Plotting a 2D heatmap with Matplotlib

Using Matplotlib, I want to plot a 2D heat map. My data is an n-by-n Numpy array, each with a …

python numpy matplotlib
Plot two histograms on single chart with matplotlib

I created a histogram plot using data from a file and no problem. Now I wanted to superpose data from …

python matplotlib plot histogram
Matplotlib scatter plot with different text at each data point

I am trying to make a scatter plot and annotate data points with different numbers from a list. So, for …

python matplotlib text scatter-plot annotate
What does .shape[] do in "for i in range(Y.shape[0])"?

I'm trying to break down a program line by line. Y is a matrix of data but I can't find …

python numpy matplotlib scipy
How to change plot background color?

I am making a scatter plot in matplotlib and need to change the background of the actual plot to black. …

python matplotlib
How do I tell Matplotlib to create a second (new) plot, then later plot on the old one?

I want to plot data, then create a new figure and plot data2, and finally come back to the original …

python matplotlib plot figure
Plotting a list of (x, y) coordinates in python matplotlib

I have a list of pairs (a, b) that I would like to plot with matplotlib in python as actual …

python matplotlib plot coordinates