vagrant - How do you get python Pandas to respect matplotlib arguments when running via IPython Notebook on a VM? -


i have installed pandas , ipython notebook, , running on vagrant box. when plotting , attempting create stacked bar graph on data frame, pandas ignores secondary arguments passed plot() function.

i don't know whether due enviornment, version of pandas, or basic error in usage of plotting syntax.

to replicate can follow these instructions install vagrant box running ipython.

python libraries installed in route are:

chef python cookbook python', '>= 1.2.2 requests==0.13.0","lxml","beautifulsoup4","fom","lettuce","boto","nose ipython-notebook python-scipy python-matplotlib python-pandas python-sympy

no version numbers specified, assuming latest , greatest installed.

after installation run ipython via ipython notebook --ip=192.168.33.11 -pylab inline. open notebook on ip, , try

import pylab pl pandas import * x = dataframe({"alpha": series({1: 1, 2: 3, 3:2.5}), "beta": series({1: 2, 2: 2, 3:3.5})}) x.plot(kind="bar") 

this works expected, but

x.plot(kind="bar", stacked=true) 

produces same plot, rather 1 stacked bars. expected see stacked bar chart.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -