Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Documentation and syntax for ggplot in python

Does anybody know of documentation of ggplot2 in python? To my knowledge the syntax is similar to R syntax, but is there any information or code examples out there yet? Any tutorials....?

like image 293
jonas Avatar asked Dec 04 '13 18:12

jonas


People also ask

What is ggplot in Python?

Using ggplot in Python allows you to build visualizations incrementally, first focusing on your data and then adding and tuning components to improve its graphical representation. In the next section, you'll learn how to use colors and how to export your visualizations.

What is ggplot style in Matplotlib?

A key feature of mpltools is the ability to set “styles”—essentially, stylesheets that are similar to matplotlibrc files. This example demonstrates the “ggplot” style, which adjusts the style to emulate ggplot (a popular plotting package for R). These settings were shamelessly stolen from [1].

Is ggplot interactive Python?

As mentioned, ggplot2 is the most widely used package for visualization in R. However, it is not interactive by default. Many packages use htmlwidgets, d3 (JavaScript library), and other tools to provide interactive graphics.

How do you explain ggplot?

ggplot2 is a plotting package that provides helpful commands to create complex plots from data in a data frame. It provides a more programmatic interface for specifying what variables to plot, how they are displayed, and general visual properties.


1 Answers

We'll be uploading the docs to ggplot.readthedocs.org this week (will update w/ url). Aside from that the best resources are here:

  • http://blog.yhathq.com/posts/aggregating-and-plotting-time-series-in-python.html
  • http://blog.yhathq.com/posts/ggplot-for-python.html
  • http://ggplot.yhathq.com/

The docs just got a major facelift. Still a work in progress but you can check them out here: http://ggplot.yhathq.com/

like image 190
Greg Avatar answered Oct 18 '22 19:10

Greg