Permalink
Browse files

Add an example of using a subshell input.

  • Loading branch information...
Leif Johnson
Leif Johnson committed Mar 20, 2012
1 parent 24654bb commit b73048e2de93b321d2e4498e5af9c8fffdc95ca3
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.md
View
@@ -69,6 +69,18 @@ data series on the same plot:
Each file will use the same regular expression for matching data.
+#### Multiple series from one file
+
+If you're working with a shell like bash, you can do some rad stuff to get
+multiple series out of one file. For instance, let's say you have one log file
+that contains `training accuracy: XX` and `evaluation accuracy: XX` lines that
+you'd like to plot. You can use the nifty subshell redirection operator to sort
+these two data sources:
+
+ py-grep-plot 'accuracy: (\d+)' \
+ <(grep 'training acc' file) \
+ <(grep 'evaluation acc' file)
+
### Smoothing
You can smooth the ordinates by using either the `-s N` (`--smooth N`) or the

0 comments on commit b73048e

Please sign in to comment.