// @(#)root/minuit2:$Id$
// Authors: M. Winkler, F. James, L. Moneta, A. Zsenei   2003-2005

/**********************************************************************
 *                                                                    *
 * Copyright (c) 2005 LCG ROOT Math team,  CERN/PH-SFT                *
 *                                                                    *
 **********************************************************************/

#ifndef ROOT_Minuit2_MnPlot
#define ROOT_Minuit2_MnPlot

#include "Minuit2/MnConfig.h"
#include <vector>
#include <utility>

namespace ROOT {

   namespace Minuit2 {


/** MnPlot produces a text-screen graphical output of (x,y) points, e.g.
    from Scan or Contours.
*/

class MnPlot {

public:

  MnPlot() : fPageWidth(80), fPageLength(30) {}

  MnPlot(unsigned int width, unsigned int length) : fPageWidth(width), fPageLength(length) {
    if(fPageWidth > 120) fPageWidth = 120;
    if(fPageLength > 56) fPageLength = 56;
  }

  ~MnPlot() {}

  void operator()(const std::vector<std::pair<double,double> >&) const;
  void operator()(double, double, const std::vector<std::pair<double,double> >&) const;

  unsigned int Width() const {return fPageWidth;}
  unsigned int Length() const {return fPageLength;}

private:

  unsigned int fPageWidth;
  unsigned int fPageLength;
};

  }  // namespace Minuit2

}  // namespace ROOT

#endif  // ROOT_Minuit2_MnPlot
 MnPlot.h:1
 MnPlot.h:2
 MnPlot.h:3
 MnPlot.h:4
 MnPlot.h:5
 MnPlot.h:6
 MnPlot.h:7
 MnPlot.h:8
 MnPlot.h:9
 MnPlot.h:10
 MnPlot.h:11
 MnPlot.h:12
 MnPlot.h:13
 MnPlot.h:14
 MnPlot.h:15
 MnPlot.h:16
 MnPlot.h:17
 MnPlot.h:18
 MnPlot.h:19
 MnPlot.h:20
 MnPlot.h:21
 MnPlot.h:22
 MnPlot.h:23
 MnPlot.h:24
 MnPlot.h:25
 MnPlot.h:26
 MnPlot.h:27
 MnPlot.h:28
 MnPlot.h:29
 MnPlot.h:30
 MnPlot.h:31
 MnPlot.h:32
 MnPlot.h:33
 MnPlot.h:34
 MnPlot.h:35
 MnPlot.h:36
 MnPlot.h:37
 MnPlot.h:38
 MnPlot.h:39
 MnPlot.h:40
 MnPlot.h:41
 MnPlot.h:42
 MnPlot.h:43
 MnPlot.h:44
 MnPlot.h:45
 MnPlot.h:46
 MnPlot.h:47
 MnPlot.h:48
 MnPlot.h:49
 MnPlot.h:50
 MnPlot.h:51
 MnPlot.h:52
 MnPlot.h:53
 MnPlot.h:54
 MnPlot.h:55