<commit_before><commit_msg>webgui: add text.cxx tutorial for v7<commit_after>/// \file
/// \ingroup tutorial_v7
///
/// \macro_code
///
/// \date 2017-10-17
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/// \author <NAME> <<EMAIL>>

/*************************************************************************
 * Copyright (C) 1995-2015, <NAME> and <NAME>.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

// #include "Rtypes.h"

R__LOAD_LIBRARY(libGpad);

#include "ROOT/TFile.hxx"
#include "ROOT/TCanvas.hxx"
#include "ROOT/TColor.hxx"
//#include "ROOT/TDirectory.hxx"
#include "ROOT/TText.hxx"

void text()
{
   using namespace ROOT;

   // Create a canvas to be displayed.
   auto canvas = Experimental::TCanvas::Create("Canvas Title");

  auto text = std::make_shared<ROOT::Experimental::TText>("Hello World");
  canvas->Draw(text).SetFillColor(Experimental::TColor::kRed);

   canvas->Show("opera");

  TFile *f = TFile::Open("canv7.root", "recreate");
  f->WriteObject(canvas.get(), "canv_text");
  delete f;

}

{'fraction_non_alphanumeric': 0.23415977961432508, 'fraction_numerical': 0.013774104683195593, 'mean_word_length': 2.57002457002457, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5592599', 'n_tokens_mistral': 433, 'n_tokens_neox': 398, 'n_words': 100}