Vagrant pandas instance of iPython Notebook does not respect additional plotting arguments #3256

Closed
IanMulvany opened this Issue May 2, 2013 · 3 comments

Comments

Projects
None yet
2 participants

This is probably an edge case, however ...

I have installed pandas and IPython Notebook, and am running on a Vagrant box. When plotting and attempting to create a stacked bar graph on a data frame, pandas ignores secondary arguments passed to the plot() function.

I don't know whether this is due to my enviornment, version of pandas, or a basic error in usage of the plotting syntax.

To replicate you can follow these instructions to install a Vagrant box running IPython.

Python libraries that are installed in this 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 are specified, so I am assuming that the latest and greatest are installed.

After installation I run IPython via ipython notebook --ip=192.168.33.11 -pylab inline. I open the notebook on that IP, and then I try

import pylab as pl
from 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 as expected, but

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

produces exactly the same plot, rather than one with stacked bars. I expected to see a stacked bar chart.

Owner

minrk commented Jul 6, 2013

Sorry, this slipped through the cracks. I would bring this up with pandas folks rather than here.

I've also tested with just a base ipython instance, and the issue seems to be with the plotting libraries and their ability or inability to control the screen via a vm or not.

Owner

minrk commented Jul 6, 2013

Okay, then. I'll close here.

minrk closed this Jul 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment