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 to chang...

Cropping image by the center?

I have a PNG image of size 218, 178. I am using matplotlib's function imread to convert it into a ndarray. I would l...

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 to chang...

reducing number of plot ticks?

I have too many ticks on my graph and they are running into each other. How can I reduce the number of ticks? Fo...

%matplotlib inline doesn't work on iPython and Jupyter console?

I'm trying out Jupyter console for the first time, but can't get the %matplotlib inline magic to work. Below is a sc...

How can I convert an RGB image into grayscale in Python??

I'm trying to use matplotlib to read in an RGB image and convert it to grayscale. In matlab I use this: img = rgb2...

Plt.Scatter: How to add title and xlabel and ylabel?

Is there a way to add title (and xlabel and ylabel) to plt.scatter(x,y,...) or plt.plot(x,y,...) directly without wr...

Create random shape/contour using matplotlib?

I am trying to generate an image of a random contour using python but I couldn't find an easy way to do it. Here is...