Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

Commit

Permalink
Ability to add str as padding, for use as 'auto'
Browse files Browse the repository at this point in the history
  • Loading branch information
wrobstory committed Aug 8, 2013
1 parent ff75b13 commit 221a0fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/stacked_area_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#Build a Stacked Area Chart from scratch

from vincent import *
import pandas as pd
import pandas.io.data as web
all_data = {}
for ticker in ['AAPL', 'GOOG', 'IBM', 'YHOO', 'MSFT']:
Expand Down
2 changes: 1 addition & 1 deletion vincent/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def viewport(value):
if v < 0:
raise ValueError('viewport dimensions cannot be negative')

@grammar((int, dict))
@grammar((int, dict, str))
def padding(value):
"""int or dict : Padding around visualization
Expand Down

0 comments on commit 221a0fb

Please sign in to comment.