TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Python library with Matlab-like functions for creating JavaScript plots

5 pointsby sendosabout 8 years ago

2 comments

sendosabout 8 years ago
This is a library that provides access to Matlab-like plotting functions for easily creating javascript plots from within Python.<p>No need to deal with HTML, Javascript, or CSS to get some plots with multiple linestyles, colors, markers, and labels. Just plain Python code and a simple plotting syntax. The currently supported Javascript plotting libraries are Flot and NVD3 (which is a wrapper around D3).<p>One use case for this library is to have Python scripts running automatically and updating websites that serve Javascript plots to visitors.<p>For example, we used this library to create and update the plots on prespredict.com. During US presidential election seasons, a cron job calls the plotting script daily, which automatically updates the plots on the website with data from the latest polls.<p>The resulting scripts may not be &quot;Pythonic&quot; enough, but I was aiming for the simplicity of creating plots that Matlab has.
saammabout 8 years ago
This is neat! Have you tried to get it running in a Jupyter notebook?