Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bar plot fails if an axis parameter is supplied #702

Closed
elpres opened this issue Jan 27, 2012 · 0 comments
Closed

Bar plot fails if an axis parameter is supplied #702

elpres opened this issue Jan 27, 2012 · 0 comments

Comments

@elpres
Copy link
Contributor

elpres commented Jan 27, 2012

Example code:

from pandas import DataFrame
import matplotlib.pyplot as plt

df = DataFrame({'a': [0, 1], 'b': [1, 0]})

fig = plt.figure()
ax = fig.add_subplot(111)
df.plot(ax=ax, kind='bar')
plt.show()

UnboundLocalError: local variable 'axes' referenced before assignment

If the 'ax' parameter is removed, no problem. Line plots with a custom 'ax' work too.

@ghost ghost assigned adamklein Jan 27, 2012
yarikoptic added a commit to neurodebian/pandas that referenced this issue Feb 10, 2012
* commit 'v0.7.0rc1-94-ge3df4e2':
  DOC: added info on encoding parameter for csv i/o
  TST: renamed io b/c module conflict, made suite check for config
  added vbench for write csv
  BUG: made encoding optional on csv read/write, addresses pandas-dev#717
  BUG: float64 hash table for handling NAs in Series.unique, close pandas-dev#714
  TST: add bench_unique.py
  TST: added better testing for pandas-dev#709
  BUG: closes pandas-dev#709, bug in ix + multiindex use case
  DOC: release notes
  BUG: don't assume that each object contains every unique block type in concat, GH pandas-dev#708
  BUG: inconsistency in .ix with integer label and float index
  Fix test that assumed py2.
  Don't use unnecessary UnicodeReader on Python 3.
  BUG: remove poor man's breakpoint
  BUG: closes pandas-dev#705, csv is encoded utf-8 and then decoded on the read side
  updated support contact info
  DOC: note EWMA adjustment, closes pandas-dev#703
  ENH: close pandas-dev#694, pandas-dev#693, pandas-dev#692
  BUG: Bar plot fails if axis parameter supplied, closes pandas-dev#702
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants