How to customize a scatter matrix to see all titles?

As a minimal scatter_matrix example to switch off axis ticks and rotate the labels, #May need to offset label when rotating to prevent overlap of figure #Hide all ticks plt.show() and similarly, you can adjust labels, resize, etc with any of the axis objects contained in the returned handle from scatter_matrix. This results in,

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

Functions dealing with text like label, title, etc. accept parameters same as matplotlib.text.Text. For the font size you can use size/fontsize: For globally setting title and label sizes, mpl.rcParams contains axes.titlesize and axes.labelsize. (From the page): (As far as I can see, there is no way to set x and y label sizes separately.) And I see that axes.titlesize does not affect suptitle. I guess, you need to set that manually.

Updating matplotlib in virtualenv with pip

I am trying to update my matplotlib in virtualenv and now it seems everything crashed 🙁what I did till now is basically, I had previously matplotlib 1.3 now if I activate py virtual environment and check the matplotlib version it shows 2.1 but I cannot import Axes3D from matplotlib. I working on linux platform and using Python 2.7. Further problem, I saw, If I … Read more

How to change the font size on a matplotlib plot

From the matplotlib documentation, This sets the font of all items to the font specified by the kwargs object, font. Alternatively, you could also use the rcParams update method as suggested in this answer: or You can find a full list of available properties on the Customizing matplotlib page.

matplotlib error – no module named tkinter

For Linux Debian based distros: RPM based distros: For windows: For Windows, I think the problem is you didn’t install complete Python package. Since Tkinter should be shipped with Python out of box. See: http://www.tkdocs.com/tutorial/install.html . Good python distributions for Windows can be found by the companies Anaconda or ActiveState. Test the python module p.s. I suggest … Read more