/// <summary>
 /// Creates a text report for the plot model.
 /// </summary>
 /// <param name="plotModel">The plot model.</param>
 /// <returns>A text report that contains information about the contents of the plot model.</returns>
 public static string CreateTextReport(this PlotModel plotModel)
 {
     using (var ms = new MemoryStream())
     {
         var    trw    = new TextReportWriter(ms);
         Report report = plotModel.CreateReport();
         report.Write(trw);
         trw.Flush();
         ms.Position = 0;
         var r = new StreamReader(ms);
         return(r.ReadToEnd());
     }
 }