Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

a Pythonic way to draw a bump chart

I have a csv file that contains data I want to represent using a bump chart (as an example )

http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0003nk

BUT I need to have some control over the formatting and would like to approach this in the most Pythonic way possible ( I am fairly new to Python using 3.5) so wonder if anyone could tell me which graphing package gives me the kind of control that would allow me to:

  • draw a bump chart
  • specify the font (Gill Sans)
  • specify the number of pixels per centimeter squared (about 10000)

If anyone has a package that is in the open source environment that would be the best fit for me I would be grateful.

like image 613
theakson Avatar asked Jul 29 '15 01:07

theakson


People also ask

What is a bump chart?

A Bump Chart is a special form of a line plot designed for exploring changes in rank over time. This chart helps compare the position / performance / ranking of multiple observations rather than the actual values itself.

Which module is used in Python for drawing charts?

Matplotlib is a Python library for creating charts. Matplotlib can be used in Python scripts, the Python and IPython shell, the jupyter notebook, web application servers, and four graphical user interface toolkits.


1 Answers

SO I have accidently found my answer myself in the example I gave. A VERY splendid man called Pascal Schetalat has an EXCELLENT implementation in Python using Numpy and Pandas. Here is the link

http://nbviewer.ipython.org/gist/pascal-schetelat/8382651

thank YOU Pascal

like image 120
theakson Avatar answered Oct 08 '22 01:10

theakson