Git Product home page Git Product logo

Comments (9)

wrobstory avatar wrobstory commented on August 20, 2024

Does vis.padding = 'auto' fix the issue? I could be convinced to change the default to auto vs its current scheme.

from vincent.

myusuf3 avatar myusuf3 commented on August 20, 2024

No, thats the first thing I tried.

---> 20 bar.padding = 'auto'
     21 #bar.padding['top'] = 10
     22 #bar.padding['right'] = 100

/Users/myusuf3/.virtualenvs/talk/lib/python2.7/site-packages/vincent/core.py in setter(self, value)
    149         def setter(self, value):
    150             if isinstance(grammar_type, (type, tuple)):
--> 151                 _assert_is_type(validator.__name__, value, grammar_type)
    152             validator(value)
    153             self.grammar[name] = value

/Users/myusuf3/.virtualenvs/talk/lib/python2.7/site-packages/vincent/core.py in _assert_is_type(name, value, value_type)
     42         if type(value_type) is tuple:
     43             types = ', '.join(t.__name__ for t in value_type)
---> 44             raise ValueError('{0} must be one of ({1})'.format(name, types))
     45         else:
     46             raise ValueError('{0} must be {1}'

ValueError: padding must be one of (int, dict)

from vincent.

myusuf3 avatar myusuf3 commented on August 20, 2024

I am also not sure we are using a version that has that fix in vega included for iPython in vincent.

from vincent.

wrobstory avatar wrobstory commented on August 20, 2024

Their versioning is not great.

If you change the actual Vega json spec itself to "auto", does it work as its supposed to?

from vincent.

myusuf3 avatar myusuf3 commented on August 20, 2024

i am not even sure how I would do that inside iPython using display.

from vincent.

wrobstory avatar wrobstory commented on August 20, 2024

Ok- I just pushed a fix to master that lets you use a string for the padding parameter.

However...it doesn't seem to work very in testing. Perhaps you will have better luck with it than I.

from vincent.

wrobstory avatar wrobstory commented on August 20, 2024

Also, the Vega version that is being referenced by Vincent is the latest release (1.3.2), so it should be included.

from vincent.

myusuf3 avatar myusuf3 commented on August 20, 2024

error still occurs.

from vincent.

wrobstory avatar wrobstory commented on August 20, 2024

I think we figured this out? Closing.

from vincent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.