Changeset 902
- Timestamp:
- Nov 27, 2009, 5:12:46 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Graph.cc
r886 r902 2 2 3 3 /* 4 Copyright (C) 2009 Jari Häkkinen 4 Copyright (C) 2009 Jari Häkkinen, Peter Johansson 5 5 6 6 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 34 34 35 35 Graph::Graph(const std::string& filename) 36 #ifdef HAVE_PLPLOT 36 37 : plots_(0), pls_(1,1,"svg",filename.c_str()), timeformat_("%y-%b"), 37 38 title_(filename), xmin_(0.0), xmax_(0.0), ymin_(0.0), ymax_(0.0) … … 44 45 pls_.vsta(); 45 46 } 47 #else 48 {} 49 #endif 46 50 47 51 … … 61 65 { 62 66 // we use colour map 0 position 1 for current colour 67 #ifdef HAVE_PLPLOT 63 68 pls_.scol0a(1,legend.r,legend.g,legend.b,1.0); 69 #endif 64 70 } 65 71 … … 68 74 { 69 75 // we use colour map 0 position 1 for current colour 76 #ifdef HAVE_PLPLOT 70 77 pls_.scol0a(1,r,g,b,1.0); 78 #endif 71 79 } 72 80 … … 75 83 unsigned int lines) 76 84 { 85 #ifdef HAVE_PLPLOT 77 86 if (!plots_) { 78 87 xmin_= date_xticks() ? Date(xticks_.front()).seconds() : 0; … … 116 125 pls_.gcol0(1,legend.r,legend.g,legend.b); 117 126 legend_.push_back(legend); 127 #endif 118 128 } 119 129 … … 121 131 void Graph::print_legend(void) 122 132 { 133 #ifdef HAVE_PLPLOT 123 134 PLFLT line_length=0.05*xrange_; 124 135 PLFLT x=xmin_+1.7*line_length; … … 141 152 pls_.ptex(x+legend_lines_length+dx , y, 0, 0, 1, ss.str().c_str()); 142 153 } 154 #endif 143 155 } 144 156 -
trunk/lib/Graph.h
r885 r902 5 5 6 6 /* 7 Copyright (C) 2009 Jari Häkkinen 7 Copyright (C) 2009 Jari Häkkinen, Peter Johansson 8 8 9 9 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 23 23 */ 24 24 25 #include <config.h> 26 25 27 #include <string> 26 28 #include <vector> 27 29 30 #ifdef HAVE_PLPLOT 28 31 #include <plplot/plstream.h> 32 #else 33 typedef int PLINT; 34 typedef double PLFLT; 35 typedef double plstream; 36 #endif 29 37 30 38 namespace theplu { -
trunk/lib/OptionVersion.cc
r895 r902 34 34 #include <apr_version.h> 35 35 36 #ifdef HAVE_LIB 36 37 #include <plplot/plstream.h> 38 #endif 37 39 38 40 #include <sstream> … … 80 82 cs << apr_version_string(); 81 83 cs << "\n"; 84 #ifdef HAVE_LIB 82 85 cs << "using libplplot "; 83 86 plstream pls; … … 85 88 pls.gver(plplot_version); 86 89 cs << plplot_version << "\n"; 90 #endif 87 91 } 88 92 exit(0); -
trunk/test/Makefile.am
r898 r902 40 40 $(top_builddir)/lib/yat/libyat.a \ 41 41 $(SVN_LIBS) $(APR_LIBS) $(PLPLOT_LIBS) 42 AM_LDFLAGS = $( SVNDIGEST_LDFLAGS) $(PLPLOT_LDFLAGS)42 AM_LDFLAGS = $(APR_LDFLAGS) $(SVN_LDFLAGS) $(PLPLOT_LDFLAGS) 43 43 44 44 AM_CPPFLAGS = -I$(top_srcdir)/lib $(APR_CPPFLAGS) $(SVN_CPPFLAGS) \
Note: See TracChangeset
for help on using the changeset viewer.