MathTL
utils/plot_tools.h
00001 // -*- c++ -*-
00002 
00003 // +--------------------------------------------------------------------+
00004 // | This file is part of MathTL - the Mathematical Template Library    |
00005 // |                                                                    |
00006 // | Copyright (c) 2002-2009                                            |
00007 // | Thorsten Raasch, Manuel Werner                                     |
00008 // +--------------------------------------------------------------------+
00009 
00010 #ifndef _MATHTL_PLOT_TOOLS_H
00011 #define _MATHTL_PLOT_TOOLS_H
00012 
00013 #include <iostream>
00014 #include <map>
00015 
00016 using std::map;
00017 
00018 namespace MathTL {
00019 
00020   void matlab_output(const map<double,double>& log_10_residual_norms,
00021                      std::ostream& os);
00022 
00027   enum MatlabColorMap {
00028 //     autumn,
00029 //     bone,
00030 //     colorcube,
00031     cool,
00032 //     copper,
00033 //     flag,
00034     gray,
00035 //     hot,
00036 //     hsv,
00037     jet,
00038 //     lines,
00039 //     pink,
00040 //     prism,
00041 //     spring,
00042 //     summer,
00043 //     white,
00044 //     winter
00045   };
00046   
00051   void get_color(const double x,
00052                  const MatlabColorMap colormap,
00053                  double& red, double& green, double& blue);
00054 }
00055 
00056 #include <utils/plot_tools.cpp>
00057 
00058 #endif
 All Classes Functions Variables Typedefs Enumerations