Saving canvas as ROOT macro

From: Vassili Maroussov <Vassili.Maroussov_at_cern.ch>
Date: Fri, 18 Jun 2010 16:44:39 +0200


Dear ROOTers,

In order to build legend easily I have in TCanvas TF1s with names "10 cm", "20 cm", etc. If to save TCanvas as ROOT macro, the generated code looks like

    TF1 *10 cm = new TF1("10 cm","",0,7.938738);     10 cm->SetFillColor(19);
    10 cm->SetFillStyle(0);

Certainly, it may not be considered as a bug, but all the beautiful thing would be looking even nicer if the macro generator could always produce legal C++ variables...

Regards,

Vassili Received on Fri Jun 18 2010 - 16:44:43 CEST

This archive was generated by hypermail 2.2.0 : Sun Jun 20 2010 - 17:50:01 CEST