I have a problem with the SAME option of TGraph. I wrote:
"TCanvas *c1 = new TCanvas(“c1”, “c1”,10,31,717,526);
c1->Range(40.85,-0.286,59.75,2.574);
c1->SetFillColor(0);
c1->SetBorderMode(0);
c1->SetBorderSize(2);
c1->SetFrameBorderMode(0);
c1->SetFrameBorderMode(0);
@couet Actually, only the "M" option does not exist ("S", "A", and "E" are there).
I’ve seen many times that people use "SAME" where it does not belong (not just for graphs, but for other “primitives”, too). Maybe adding a “protection” in all Draw methods would be a good idea so that this particular string is quietly “forgotten” (when not needed).
I also know that some people (mis)use "SAME " such as it is available everywhere. It is only available for histograms and documented only there. Do you we really want to also document the options which are NOT available ? Do we want to slow down the very basic graphics primitives with an extra test on an option they do not have ? We do that test for graphs because it takes longer to draw anyway and the error was super frequent (and, as I said, histograms and graphs are the same kind of very high level graphics objects).