Commit 22dac5e7c9fc67e4b0fc50e49e81cab54a81a343

Authored by Josh Klontz
1 parent 52951bae

elaborated on plot documentation

Showing 1 changed file with 6 additions and 0 deletions
openbr/openbr.h
@@ -265,6 +265,12 @@ BR_EXPORT const char *br_objects(const char *abstractions = ".*", const char *im @@ -265,6 +265,12 @@ BR_EXPORT const char *br_objects(const char *abstractions = ".*", const char *im
265 * - <i>destination</i><tt>.R</tt> which is the auto-generated R script used to render the figures. 265 * - <i>destination</i><tt>.R</tt> which is the auto-generated R script used to render the figures.
266 * - <i>destination</i><tt>.pdf</tt> which has all of the figures in one file multi-page file. 266 * - <i>destination</i><tt>.pdf</tt> which has all of the figures in one file multi-page file.
267 * 267 *
  268 + * OpenBR uses file and folder names to automatically determine the plot legend.
  269 + * For example, let's consider the case where three algorithms (<tt>A</tt>, <tt>B</tt>, & <tt>C</tt>) were each evaluated on two datasets (<tt>Y</tt> & <tt>Z</tt>).
  270 + * The suggested way to plot these experiments on the same graph is to create a folder named <tt>Algorithm_Dataset</tt> that contains the six <tt>.csv</tt> files produced by \ref br_eval: <tt>A_Y.csv</tt>, <tt>A_Z.csv</tt>, <tt>B_Y.csv</tt>, <tt>B_Z.csv</tt>, <tt>C_Y.csv</tt>, & <tt>C_Z.csv</tt>.
  271 + * The '<tt>_</tt>' character plays a special role in determining the legend title(s) and value(s).
  272 + * In this case, <tt>A</tt>, <tt>B</tt>, & <tt>C</tt> will be identified as different values of type <tt>Algorithm</tt>, and each will be assigned its own color; <tt>Y</tt> & <tt>Z</tt> will be identified as different values of type Dataset, and each will be assigned its own line style.
  273 + *
268 * \param num_files Number of <tt>.csv</tt> files. 274 * \param num_files Number of <tt>.csv</tt> files.
269 * \param files <tt>.csv</tt> files created using \ref br_eval. 275 * \param files <tt>.csv</tt> files created using \ref br_eval.
270 * \param destination Basename for the resulting figures. 276 * \param destination Basename for the resulting figures.