I am plotting using python-ggplot, which I know is still in development. However rather frustratingly in Ipython notebooks when try to plot part of the legends are being cut off. I also tried in the %qtconsole and got the same chopped image, so I think its being delivered chopped. How can I increase the canavas size or whatever I need to do?
print inf_df[:10]
ggplot(aes(x='val', colour='lang', fill=True, alpha = 0.3), data=inf_df) + geom_density() + labs("Score", "Frequency") + \
scale_x_continuous(limits=(0,0.01)) + ggtitle('\n Swahili - blue, French - yellow, English - black')
qid lang metric val
1 Q1410 fr referencerate 0.000453
6 Q1410 en referencerate 0.002962
11 Q1410 sw referencerate 0.000000
16 Q805 fr referencerate 0.001971
21 Q805 en referencerate 0.005639
26 Q805 sw referencerate 0.000000
31 Q804 fr referencerate 0.001217
36 Q804 en referencerate 0.001908
41 Q804 sw referencerate 0.000000
46 Q3769 fr referencerate 0.001159
IIRC, this is fixed if you install latest development version of matplolib (issue with tight layout). You can try to play with the value of the
InlineBackend.rc
config (use%config
magic) that may help you deactivate tight layout.