Error Bar In Root
Contents |
//Draw a graph with error bars //
Error Bar Calculation
To see the output of this macro, click begin_html here. gnuplot error bar end_html //Author: Rene Brun TCanvas *c1 = new TCanvas("c1","A Simple Graph with error bars",200,10,700,500); c1->SetFillColor(42); c1->SetGrid(); c1->GetFrame()->SetFillColor(21); c1->GetFrame()->SetBorderSize(12); const Int_t n = 10; r error bar Float_t x[n] = {-0.22, 0.05, 0.25, 0.35, 0.5, 0.61,0.7,0.85,0.89,0.95}; Float_t y[n] = {1,2.9,5.6,7.4,9,9.6,8.7,6.3,4.5,1}; Float_t ex[n] = {.05,.1,.07,.07,.04,.05,.06,.07,.08,.05}; Float_t ey[n] = {.8,.7,.6,.5,.4,.4,.5,.6,.7,.8}; TGraphErrors *gr = new TGraphErrors(n,x,y,ex,ey); gr->SetTitle("TGraphErrors Example"); gr->SetMarkerColor(4); gr->SetMarkerStyle(21); gr->Draw("ALP"); c1->Update(); } gerrors.C:1gerrors.C:2gerrors.C:3gerrors.C:4gerrors.C:5gerrors.C:6gerrors.C:7gerrors.C:8gerrors.C:9gerrors.C:10gerrors.C:11gerrors.C:12gerrors.C:13gerrors.C:14gerrors.C:15gerrors.C:16gerrors.C:17gerrors.C:18gerrors.C:19gerrors.C:20gerrors.C:21gerrors.C:22gerrors.C:23gerrors.C:24gerrors.C:25gerrors.C:26 » Last changed: 2015-09-08 00:33 » Last generated: 2015-09-08 00:33 This page has been automatically generated. For comments or suggestions regarding the documentation or ROOT in general please send a mail to ROOT support.
Member Functions | Protected Attributes | List of all members THistPainter Class ReferenceHistogram Library » Histograms and graphs painting classes. The histogram painter class. Implements
Error Bar Excel 2010
all histograms' drawing's options. Introduction Histograms' plotting options Options supported error bar plot matlab for 1D and 2D histograms Options supported for 1D histograms Options supported for 2D histograms Options
Error Bar In Excel 2013
supported for 3D histograms Options supported for histograms' stacks (THStack) Setting the Style Setting line, fill, marker, and text attributes Setting Tick marks on the histogram https://root.cern.ch/root/html/tutorials/graphs/gerrors.C.html axis Giving titles to the X, Y and Z axis The option "SAME" Limitations Superimposing two histograms with different scales in the same pad Statistics Display Fit Statistics The error bars options The bar chart option The "BAR" and "HBAR" options The SCATter plot option (default for 2D histograms) The ARRow option https://root.cern.ch/doc/master/classTHistPainter.html The BOX option The COLor option The CANDLE option The VIOLIN option The TEXT and TEXTnn Option The CONTour options The LIST option The LEGO options The "SURFace" options Cylindrical, Polar, Spherical and PseudoRapidity/Phi options Base line for bar-charts and lego plots TH2Poly Drawing The SPEC option Option "Z" : Adding the color palette on the right side of the pad Setting the color palette Drawing a sub-range of a 2-D histogram; the [cutg] option Drawing options for 3D histograms Drawing option for histograms' stacks Drawing of 3D implicit functions Associated functions drawing Drawing using OpenGL General information: plot types and supported options TH3 as color boxes TH3 as boxes (spheres) TH3 as iso-surface(s) TF3 (implicit function) Parametric surfaces Interaction with the plots Selectable parts Rotation and zooming Panning Box cut Plot specific interactions (dynamic slicing etc.) Surface with option "GLSURF" TF3 Box Iso Parametric plot Introduction Histograms are drawn via the http://www.originlab.com/doc/Origin-Help/Add-ErrBar-to-Graph version Download full feature list LICENSING OPTIONS Node-locked(fixed seat) Concurrent Network (Floating) Dongle Academic users Student version Commercial users Government users Why choose OriginLab Who's using Origin What users are saying Published product reviews Online Store Get a quote/Ordering Find a distributor Purchase New Orders Renew Maintenance Upgrade Origin Contact Sales(US & Canada only) Find a Distributor Licensing Options Node-locked(fixed error bar seat) Concurrent Network (Floating) Dongle Academic users Student version Commercial users Government users Why choose OriginLab Purchasing FAQ Support SERVICES Transfer Origin to new PC License/Register Origin Consulting Training SUPPORT Support FAQ Help Center Contact Support Support Policy DOWNLOADS Service Releases Origin Viewer Orglab Module Product Literature Origin Evaluation All downloads VIDEOS Installation and Licensing Introduction to Origin All video tutorials error bar in DOCUMENTATION User Guide Tutorials OriginC Programming LabTalk Programming All documentation Communities User Forum User File Exchange Facebook LinkedIn YouTube About Us OriginLab Corp. News & Events Careers Distributors Contact Us All Books Origin Help Graphing Adding Data Labels and Error Bars User Guide Tutorials Quick Help Origin Help X-Function Origin C LabTalk Programming Python Automation Server LabVIEW VI Code Builder License MOCA Orglab BugFixes ReleaseNotes Video Tutorials Origin Basics The Origin Project File Workbooks Worksheets and Worksheet Columns Matrix Books, Matrix Sheets, and Matrix Objects Importing and Exporting Data Working with Microsoft Excel Graphing Customizing Your Graph Graphical Exploration of Data Gadgets Common Analysis Features X-Functions Matrix Conversion and Gridding Regression and Curve Fitting Mathematics Statistics Signal Processing Peak Analysis Image Processing and Analysis Exporting and Publishing Graphs Sharing Your Origin Files with Others Communicating with Other Applications Programming in Origin Customization and Automation Appendix 1 - Toolbars Appendix 2 - Graph Types Appendix 3 - Built-in Functions Appendix 4 - Reference Tables Basic Graph Window Operations The Page-Layer-Plot Hierarchy Basic Graphing Creating Graphs from Graph Templates Graph Axes Cr