I set the gStyle like “Modern” with command: gStyle->SetSStyle(“Modern”)
When I plot the data in a TGraphAsymmErrors with a specific Marker and color Marker, and with the errorbars. The result it is taht the errorbars it isn’t the same color of points, but it is black.
Then if i go on menu canvas, file, gstyle, it is setted “Modern”, but if i click apply the errorbars became the same color of point, but the point disappear!!! why??
How can set at the same time the same color for errorbars and the points?
This is an example of macro, the purpose is very easy, obtain a Graph with point and asymmetric errorbars. But the problem is that the errorbars it is not the same color of marker, but it is black. For become the same color of marker I must to click on canvas menu, file, gstyle, and though it is already setted “Modern”, if i click apply, the errorbars become the same color of marke, but at this time the marke disappear and remian only the errorbars. I woul like draw the marker and errorbars with the same color, and so that you see it at the same time.
{
gROOT->SetStyle(“Modern”);
TCanvas *canvas = new TCanvas(“canvas”,“canvas”);
canvas->SetGrid();
gStyle->SetOptFit(1111);
The format file is simply a data file with 12 columns conteining only number.
Sorry why the format I am using to read the file makes no sense?? I take from the data file the 6 columns that interested me to plot a TGraphAsymmErrors. ( I am usign a ROOT-master)
When you change the global style and do “apply” then all the default attributes in the style will be applied to you current plot. The default marker is the dot … that’s why the marker “disappear” … I do not recommend you use the style menu in your case… What is you goal doing that ?
what I don’t uderstand it is that it is already set a Modern style,the panel show me that the style setted is modern, I don’t change this in panel, but if click on apply the marker dissaper…
I need to go in panel for to set the position and dimension of parameters box, and if I need other things… it is very easy set from panel.
You have changed the marker style in your macro …
The panel apply what is in the panel …
So in the panel the marker is the point … that is why it shows a point…
but if you re-execeute you macro your will see the bullet again …
The style is the “background” of the attributes … then you are allowed to change them locally … that’s what you did in your macro …