TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

5 点作者 sendos大约 8 年前

2 条评论

sendos大约 8 年前
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.
saamm大约 8 年前
This is neat! Have you tried to get it running in a Jupyter notebook?