Skip to content

Commit

Permalink
added facet plot
Browse files Browse the repository at this point in the history
  • Loading branch information
robdmc committed Jul 27, 2015
1 parent eeee710 commit 3faf356
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -144,11 +144,16 @@ DataFrame Maniuplations
Visualization Tools
----

* Plot tip vs total bill.
* Simple xy scatter plots
<pre><code><strong>[~]$ p.example_data -d tips | p.plot -x total_bill -y tip -s 'o' --title 'Tip Vs Bill'</strong>
</code></pre>
![Output Image](/images/tips_vs_bill.png?raw=true "Bar chart of gender tipper counts.")

* Faceted plots
<pre><code><strong>[~]$ p.example_data -d tips | p.facet_grid --row smoker --col sex --hue day --map pl.scatter --args total_bill tip --kwargs 'alpha=.2' 's=100'</strong>
</code></pre>
![Output Image](/images/facet_plot.png?raw=true "Bar chart of gender tipper counts.")


List of Tools
===
Expand Down
Binary file added images/facet_plot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions pandashells/bin/p_facet_grid.py
Expand Up @@ -109,6 +109,9 @@ def main():
parser.add_argument(
'--ylim', nargs=2, type=float, dest='ylim', metavar='ylim', help=msg)

msg = "Save the figure to this file"
parser.add_argument('--savefig', nargs=1, type=str, help=msg)

# parse arguments
args = parser.parse_args()

Expand Down

0 comments on commit 3faf356

Please sign in to comment.