Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dhaitz/matplotlib-style-voting

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Matplotlib Style Voting

  • See it live here

  • Originated from this tweet

  • The polling is currently implemented via gh-polls, a simple online tool which generates images that show the current vote count (voting via link)

    • ⚠️ gh-polls doesn't allow adding options to an existing poll
    • gh-polls doesnt allow to query the number of votes per style directly, only the images (SVG). As they are needed for the order of the styles, the vote count is extracted from the SVG via regex ...
    • ⚠️ As it takes some time to query all votes this way, the vote queries & sorting isn't performed at page load, but periodically as a background task
  • The style demo images are not checked in, but are dynamically generated at app startup. This would allow easy adding of new styles via pull request (add a new style with URL in styles.json).

  • Style images are checked in due to Heroku app boot timeout restrictions

    • ⚠️ However, as adding new styles would require the creation of a new poll, not accepting any PRs at the moment

Possible improvements

  • A polling system which allows to add voting options
  • The possibility to upload stylesheeta or add information via an online submission form
  • Voting and submission authenticated with GitHub account
  • Long-term vision: a 'stylesheet' marketplace, as e.g. for browser extensions
Morty Proxy This is a proxified and sanitized view of the page, visit original site.