FigureFactory - Punchcard plot

Inspired by

I wrote a Python function which can create similar plots, e.g.

e.g. the last plot is created by
y_len = 28 data = dict(x=[i for i in range(1, y_len + 1)], y=['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'], value = [random.randrange(-5,10) for i in range(7 * y_len)] ) d, l = punch_card(data['x'], data['y'], data['value'], max_size=20, marker_symbol='square', equal_size_markers=True) plotly.offline.iplot(d, l)
Two questions:
a) is there any interest in adding it to Plotlyโ€™s FigureFactory?
b) if yes, how do you write tests for such a function?

Itโ€™s a great suggestion and would definitely be welcome. Please take a look at this FigureFactory-in-progress for an idea of how tests are implemented:

@jack: thanks!

Hereโ€™s a notebook which should demonstrate how the graphs look and work.

@jack: Did you have time to look at the notebook?

@MaxPeters I did - it looks nice! We donโ€™t have time to add it ourselves as a Figure Factory to the Python library right now, but weโ€™re working on a guide for contributors who want to add their own FFโ€™s officially.
One suggestion is you may want to set layout['hovermode'] = closest for the hover effect.