source: trunk/lib/Graph.h @ 858

Last change on this file since 858 was 858, checked in by Jari Häkkinen, 12 years ago

Addresses #97. Merging non-gnuplot plot generation code. Gnuplot traces left and lot of work before publication quality plots are generated.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1#ifndef _theplu_svndigest_graph_
2#define _theplu_svndigest_graph_
3
4// $Id: Graph.h 858 2009-11-19 19:45:31Z jari $
5
6/*
7  Copyright (C) 2009 Jari Häkkinen
8
9  This file is part of svndigest, http://dev.thep.lu.se/svndigest
10
11  svndigest is free software; you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation; either version 3 of the License, or
14  (at your option) any later version.
15
16  svndigest is distributed in the hope that it will be useful, but
17  WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20
21  You should have received a copy of the GNU General Public License
22  along with svndigest. If not, see <http://www.gnu.org/licenses/>.
23*/
24
25#include <string>
26#include <vector>
27
28#include <plplot/plstream.h>
29
30namespace theplu {
31namespace svndigest {
32
33  class Graph
34  {
35  public:
36
37    /**
38       \brief Constructor
39    */
40    Graph(const std::string& filename);
41
42    /**
43       \brief Destructor
44    */
45    ~Graph(void);
46
47    static bool date_xticks(void);
48
49    void plot(const std::vector<unsigned int>&);
50
51    static const std::vector<std::string>& xticks(void);
52
53    double yrange(double ymax=0.0);
54
55  private:
56    plstream pls_;
57    static std::vector<std::string> xticks_;
58  };
59
60}} // end of namespace svndigest and namespace theplu
61
62#endif
Note: See TracBrowser for help on using the repository browser.