Gill Sans Bold and Gill Sans Regular and enable the code commented out below (editing the face kw to match the paths to your fonts). Otherwise, check out the similar rendering. Disable MemcachedConnection if you have to by removing the keyword and value from below. ''' if __name__ == '__main__': """ Assumes you're running Memcached locally. If not, remove the cache keyword and its value below. """ g = VerticalBarGraph(dimensions=(390, 160), cache=memcache.Client(['127.0.0.1:11211'])) # Stylize (not the final syntax for doing this) g.layers.updateScheme('title.color', '#333333') g.layers.updateScheme('title.font', FontStyle(size=10)) g.layers.updateScheme( 'axes.dependent.labeling.value.font', FontStyle(size=8, align='right') ) g.layers.updateScheme( 'axes.independent.labeling.category-labels.font', FontStyle(size=8, align='center') ) # Further stylization
Gill Sans Bold and Gill Sans Regular and enable the code commented out below (editing the face kw to match the paths to your fonts). Otherwise, check out the similar rendering. Disable memcached if you have to by removing the keyword and value from below. ''' if __name__ == '__main__': """ Assumes you're running Memcached locally. If not, remove the cache keyword and its value below. """ g = VerticalBarGraph(dimensions=(390, 160), cache=memcache.Client(['127.0.0.1:11211'])) # Stylize (not the final syntax for doing this) g.layers.updateScheme('title.color', '#333333') g.layers.updateScheme( 'title.font', FontStyle(size=10) ) g.layers.updateScheme( 'axes.dependent.labeling.value.font', FontStyle(size=8, align='right') ) g.layers.updateScheme( 'axes.independent.labeling.category-labels.font', FontStyle(size=8, align='center')