I’m Zaheer and very new to the Root. Today, I was trying to some examples on root “Example of the graph with setpoints”. When the graph (c1) is plotted, then I opened Tools and the Fit Panel, there was nothing, and I got the following message:
Info in TCanvas::MakeDefCanvas: created default TCanvas with name c1
root [1] Error in TUnixSystem::DynamicPathName: FitPanel[.so | .dll | .dylib | .sl | .dl | .a] does not exist in .::/usr/lib/x86_64-linux-gnu/root5.34:/usr/lib/x86_64-linux-gnu/root5.34/cint/stl
Error in TRootCanvas::FitPanel: Unable to find the FitPanel plug-in
I’m using Root Version 5.34/30. Please guide me, how to install FitPanel in the current version? or I can uninstall the current version then reinstall a new version (which version in this case?). Also, If I need to uninstall the current version, then how to uninstall it?
Thank you very much for your reply. As I mentioned before that I’m very new, I just tried the attached example (Lesson3.C, from a YouTube tutorial).Lesson3.C (311 Bytes)
And get the attached figure.
, But there when I open the Tool option and open the FitPanel, then it gives error like: Error in TUnixSystem::DynamicPathName: FitPanel[.so | .dll | .dylib | .sl | .dl | .a] does not exist in .::/usr/lib/x86_64-linux-gnu/root5.34:/usr/lib/x86_64-linux-gnu/root5.34/cint/stl
Error in TRootCanvas::FitPanel: Unable to find the FitPanel plug-in. Even when I right click on the figure and go to FitPanel then again the same error.
I want to know how to remove this error that I can easily go to FitPanel?
It works for me with ROOT 6 and the following macro:
{
// Define Data
auto g = new TGraph();
g->SetName("Graph");
double x,y;
for (int i=0; i<10; i++) {
x = 0.5 * i;
y = 4*x + 2 + gRandom->Gaus(0,1);
g->SetPoint(i, x, y);
}
// Define Fit Function
auto f = new TF1("f", "[0]*x + [1]", 0, 5);
g->Fit(f);
g->SetMarkerStyle(22);
g->Draw("AP");
}
Looks like you are using a Debian / Ubuntu system provided ROOT. If this is the case then you are probably missing the “root-plugin-gui-fitpanel” package (you need to install it).