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.

A new ggplot is here

31 pointsby avyfainalmost 9 years ago

3 comments

quantumtremoralmost 9 years ago
&gt; aes(x=&#x27;np.log(B - A)&#x27;)<p>I never understood the pattern of putting source code in a string. Why not just use np.log(B - A) directly and configure the function to accept columns? With strings you lose highlighting, semantic analysis from editors, as well as the ability to know what computations are happening when and where. There seems to be no point and significant drawback to this, what&#x27;s the rationale?
评论 #12058974 未加载
评论 #12058246 未加载
minimaxiralmost 9 years ago
Important clarification: this refers to the Python port of ggplot2, not the R package itself.
评论 #12058198 未加载
评论 #12058475 未加载
carlmcqueenalmost 9 years ago
Context would be nice, looked through it baffled until I realized this was a port of the Grammar of Graphics to Python to work and look exactly like Hadley&#x27;s ggplot.<p>I learned R because of my frustrations where Panda&#x27;s was years ago, seeing this kind of port continues to make me think about moving back to Python from start to finish.
评论 #12058600 未加载