Top "Matplotlib" questions

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

Python Matplotlib figure title overlaps axes label when using twiny

I am trying to plot two separate quantities on the same graph using twiny as follows: fig = figure() ax = fig.…

python matplotlib title figure
Installation Issue with matplotlib Python

I have issue after installing the matplotlib package unable to import matplotlib.pyplot as plt. Any suggestion will be greatly …

python macos matplotlib anaconda
How to equalize the scales of x-axis and y-axis in Python matplotlib?

I wish to draw lines on a square graph. The scales of x-axis and y-axis should be the same. e.…

python matplotlib
How do I tell matplotlib that I am done with a plot?

The following code plots to two PostScript (.ps) files, but the second one contains both lines. import matplotlib import matplotlib.…

python matplotlib plot
sklearn plot confusion matrix with labels

I want to plot a confusion matrix to visualize the classifer's performance, but it shows only the numbers of the …

python matplotlib scikit-learn
python error: no module named pylab

I am new to Python and want to use its plot functionality to create graphs. I am using ubuntu 12.04. I …

python python-2.7 ubuntu-12.04 matplotlib
How can I set the 'backend' in matplotlib in Python?

I am new user of matplotlib, my platform is Ubuntu 10.04 Python 2.6.5 This is my code import matplotlib matplotlib.use('Agg') …

python linux graphics matplotlib
Specifying and saving a figure with exact size in pixels

Say I have an image of size 3841 x 7195 pixels. I would like to save the contents of the figure to …

python matplotlib scipy
Putting text in top left corner of matplotlib plot

How can I put text in the top left (or top right) corner of a matplotlib figure, e.g. where …

python plot matplotlib
How to make two plots side-by-side using Python?

I found the following example on matplotlib: import numpy as np import matplotlib.pyplot as plt x1 = np.linspace(0.0, 5.0) x2 = …

python matplotlib