Comparision of various python-matplotlib styles (1.4.x, probably valid of 1.5.x)

29 views
Skip to first unread message

Dilawar Singh

unread,
Apr 3, 2016, 7:28:51 AM4/3/16
to Web and Coding Club IIT Bombay
The most often used library of plotting data in python is `matplotlib` (or pylab). It is also the underlying library for python-pandas. It is very easy to customize (though bit slow for large data: gnuplot beats it hands down on GB range).

Maptlolib offers various pre-defined 'styles' for canvas. Following styles were plotted for comparision: seaborn-darkgrid,seaborn-notebook,classic,seaborn-ticks,grayscale,bmh,seaborn-talk,dark_background,ggplot,fivethirtyeight,seaborn-colorblind,seaborn-deep,seaborn-whitegrid,seaborn-bright,seaborn-poster,seaborn-muted,seaborn-paper,seaborn-white,seaborn-pastel,seaborn-dark,seaborn-dark-palett. A gallery linked below contains these plots.


The style 'ggplot' (default on latest matplotlib) is pretty OK for day to day work. Various kind of plots were generated in 3 subplots. Some TEXTBOX were also added. (tight_layout() was used in each plot).


To change the style, one needs to do just the following.


import pylab
pylab
.style.use( 'seaborn-darkgrid' )



Alternatively,

import matplotlib.pyplot as plt
plt
.style.use( 'seaborn-colorblind' )

The gallery is hosted on Wordpress : https://dilawarnotes.wordpress.com/#jp-carousel-1477


- Dilawar

Sourabh Bhat

unread,
Apr 3, 2016, 11:39:06 AM4/3/16
to wncc...@googlegroups.com
Thank you Dilawar.

--
--
The website for the club is http://wncc-iitb.org/
To post to this group, send email to wncc...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Web and Coding Club IIT Bombay" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wncc_iitb+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Best Regards,
-- Sourabh
Reply all
Reply to author
Forward
0 new messages