json.loads imported the file as unicode, which occasionally caused errors. yaml.loads fixed this though!
The legend.fancybox = True property isn't working for me. Adding a legend.frameon = False in the JSON file fixed that.
Might want to add a leged.loc = 'best' property in the JSON file for better legend placement.
Perhaps you could add a font.family = 'Helvetica' property? For folks who don't know how to change it and hence might be stuck with the ugly Bitstream Vera Sans.
Install PyYAML and import yaml to use yaml.loads. It is a function that loads certain objects (including most kinds of json files) as a python dict. Unlike json.loads (which can import data as unicode), yaml.loads would import data as a string. Side note: If you're using python3, json.loads should work just fine.
Google describes the font as "modern, yet approachable" and "emotional". The font is licensed under the Apache license. The entire font family was officially made available for free download on January 12, 2012 on the newly launched Android Design website. The family includes regular and oblique styles of Thin, Light, Regular, Medium, Bold, Black, and Condensed widths.
3
u/[deleted] Jul 03 '14 edited Jul 03 '14
This is awesome. Thanks for sharing!
EDIT: A few comments:
json.loads imported the file as unicode, which occasionally caused errors. yaml.loads fixed this though!
The legend.fancybox = True property isn't working for me. Adding a legend.frameon = False in the JSON file fixed that.
Might want to add a leged.loc = 'best' property in the JSON file for better legend placement.
Perhaps you could add a font.family = 'Helvetica' property? For folks who don't know how to change it and hence might be stuck with the ugly Bitstream Vera Sans.
Immensely grateful for this, thanks a bunch! :D