Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
MnPlot.h
Go to the documentation of this file.
1// @(#)root/minuit2:$Id$
2// Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
3
4/**********************************************************************
5 * *
6 * Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT *
7 * *
8 **********************************************************************/
9
10#ifndef ROOT_Minuit2_MnPlot
11#define ROOT_Minuit2_MnPlot
12
13#include "Minuit2/MnConfig.h"
14
15#include <ROOT/RSpan.hxx>
16
17#include <vector>
18#include <utility>
19
20namespace ROOT {
21
22namespace Minuit2 {
23
24/** MnPlot produces a text-screen graphical output of (x,y) points, e.g.
25 from Scan or Contours.
26*/
27
28class MnPlot {
29
30public:
31 MnPlot() = default;
32
33 MnPlot(unsigned int width, unsigned int length)
34 : fPageWidth(std::min(width, 120u)), fPageLength(std::min(length, 56u))
35 {
36 }
37
38 void operator()(std::span<const std::pair<double, double>> ) const;
39 void operator()(double, double, std::span<const std::pair<double, double>> ) const;
40
41 unsigned int Width() const { return fPageWidth; }
42 unsigned int Length() const { return fPageLength; }
43
44private:
45 unsigned int fPageWidth = 80;
46 unsigned int fPageLength = 30;
47};
48
49} // namespace Minuit2
50
51} // namespace ROOT
52
53#endif // ROOT_Minuit2_MnPlot
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h length
Option_t Option_t width
MnPlot produces a text-screen graphical output of (x,y) points, e.g.
Definition MnPlot.h:28
unsigned int fPageLength
Definition MnPlot.h:46
void operator()(std::span< const std::pair< double, double > >) const
Definition MnPlot.cxx:19
unsigned int fPageWidth
Definition MnPlot.h:45
MnPlot(unsigned int width, unsigned int length)
Definition MnPlot.h:33
unsigned int Width() const
Definition MnPlot.h:41
unsigned int Length() const
Definition MnPlot.h:42
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...