Changeset 111 for trunk/lib/Gnuplot.h
 Timestamp:
 Jun 28, 2006, 5:18:42 PM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/lib/Gnuplot.h
r107 r111 74 74 /// @return 0 if fputs, fputc, and fflush are succesful 75 75 /// 76 intcommand(const std::string&);76 void command(const std::string&); 77 77 78 78 /// … … 100 100 /// 101 101 template <class T1, class T2> 102 intplot(const std::vector<T1>& y, const std::vector<T2>& x)103 { returnplot(y,x,"plot"); }102 void plot(const std::vector<T1>& y, const std::vector<T2>& x) 103 { plot(y,x,"plot"); } 104 104 105 105 template <class T1> 106 intplot(const std::vector<T1>& y,106 void plot(const std::vector<T1>& y, 107 107 const std::vector<T1>& x=std::vector<T1>()) 108 { returnplot(y,x,"plot"); }108 { plot(y,x,"plot"); } 109 109 110 110 /// … … 116 116 /// 117 117 template <class T1, class T2> 118 intreplot(const std::vector<T1>& y, const std::vector<T2>& x)119 { returnplot(y,x,"replot"); }118 void replot(const std::vector<T1>& y, const std::vector<T2>& x) 119 { plot(y,x,"replot"); } 120 120 121 121 template <class T1> 122 intreplot(const std::vector<T1>& y,122 void replot(const std::vector<T1>& y, 123 123 const std::vector<T1>& x=std::vector<T1>()) 124 { returnplot(y,x,"replot"); }124 { plot(y,x,"replot"); } 125 125 126 126 private: … … 136 136 /// 137 137 template <class T1, class T2> 138 intplot(const std::vector<T1>& y, const std::vector<T2>& x,138 void plot(const std::vector<T1>& y, const std::vector<T2>& x, 139 139 const std::string& plotcmd) 140 140 { … … 154 154 cmdstring << "e\n"; 155 155 156 returncommand(cmdstring.str());156 command(cmdstring.str()); 157 157 } 158 158
Note: See TracChangeset
for help on using the changeset viewer.