Get BarPlot per Replica by Modules from Data File
This script makes a Bar Plot of replicas by modules from a data file. It is capable to plot only one experiment at the time. So, if you need to compare experiments, you need to generate several plots, one by experiment. It relies on the barbraph.pl perl script made by Derek Bruening (http://www.burningcutlery.com/derek/bargraph). So, you need to have this script before to make my script to work. I made some modifications regarding the legend's position, but always you can download it from his site and change the legend's position by your self.
The arguments this script receive are: Input Data File, Experiment to plot, Y-Axe title ("" for nothing), Mapping File (optional). The mapping file is a translation file used to transform module's name into a more readable string. Normally, modules names are written as Example.MyNode.wlan.mac.numRetry. So, the numRetry scalar is refered to the MyNode's wlan, recorded by the internal mac. So, probably this name is too long to be written in the graph. So with mapping file you can transform Example.MyNode.wlan.mac.numRetry -> MyNode. string that is more readable when building a bar plot about numRetry.
At the end of this script there is an small inner-script to command the bargraph.pl script how to make the graph. You can find how to change it in Derek's website. The main objective of this script is to compare an scalar, from the same replica, across experiments.
Here is an example:
$ getBarPlotPerReplicaByModule.sh Example-test.data 0 "Observations"
Download my modified version of bargraph.pl
Download the getBarPlotPerReplicaByModules script
Download an Mapping File Example