As mentioned in #12 this commit adds support for vertically-oriented plots.. I've tested it a bit with plot_direction and it seems to behave in a sensible manner, e.g.
You can create a full set of these graphs with
for direction in ('NW', 'SW', 'NE', 'SE'):
for vertical in [True, False]:
for rows in [4, 3]:
fig = plt.figure(
FigureClass=Waffle, rows=rows, vertical=vertical, plot_direction=direction, values=[5, 3, 2],
title={
'label': f'vertical={vertical}, rows={rows}, plot_direction={direction}',
'loc': 'left'
},
)
fig.savefig(f'{vertical}_{rows}_{direction}.png', bbox_inches='tight')
plt.close('all')
One additional tweak that might be nice to make would be to allow the user to only specify the number of columns required, though I haven't got round to looking at this yet.
As mentioned in #12 this commit adds support for vertically-oriented plots.. I've tested it a bit with
plot_direction
and it seems to behave in a sensible manner, e.g.You can create a full set of these graphs with