#Why
I haven't seen any visualizations of "Exploding Bar Charts" using matplotlib
like the this one:
So I put together some very quick code to show how it could be done
#WIP
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:12e3c9503b4648f28853f643f8c87ee662a50293d691268338736c4f49e808f0" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
def gen_tickers(num_tickers, num_new): | |
""" | |
This function generates `num_tickers` of random, length 3 tickers and | |
`num_new` random, length 3 tickers | |
""" | |
s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
r = numpy.random.randint(1, 27, 3) | |
ticks = [] | |
#create the list of tickers | |
for i in numpy.arange(num_tickers): |