A second more general way is to use a ROOT macro. Commands Edit User Fit Macro and Execute User Fit Macro are provided for this. If with Edit User Fit Macro a non existing file name is given the user can choose from a few examples as templates. Again this is to put the entrance threshold to use ROOT as low as possible.
For 2-dim histograms hooks are provided to fit slices and 2d functions. Also here examples are provided to start with.
Fig. 5 shows the 2-dim histogram from the builtin tutorial and the result of the example fit macro.
Johannes.Elmsheuser 2014-04-07