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
Post a Comment