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)
The problem of the line color is solved, but i need to set some parameters on gstyle menu, and when I click apply the marker disappearā¦ how can i do?
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 ā¦