@@ -230,12 +230,12 @@ struct _interpreter {
230
230
} // end namespace detail
231
231
232
232
// must be called before the first regular call to matplotlib to have any effect
233
- void backend (const std::string& name)
233
+ inline void backend (const std::string& name)
234
234
{
235
235
detail::s_backend = name;
236
236
}
237
237
238
- bool annotate (std::string annotation, double x, double y)
238
+ inline bool annotate (std::string annotation, double x, double y)
239
239
{
240
240
PyObject * xy = PyTuple_New (2 );
241
241
PyObject * str = PyString_FromString (annotation.c_str ());
@@ -963,7 +963,7 @@ inline void draw()
963
963
}
964
964
965
965
template <typename Numeric>
966
- void pause (Numeric interval)
966
+ inline void pause (Numeric interval)
967
967
{
968
968
PyObject* args = PyTuple_New (1 );
969
969
PyTuple_SetItem (args, 0 , PyFloat_FromDouble (interval));
@@ -1140,37 +1140,18 @@ bool plot(const A& a, const B& b, const std::string& format, Args... args)
1140
1140
* This group of plot() functions is needed to support initializer lists, i.e. calling
1141
1141
* plot( {1,2,3,4} )
1142
1142
*/
1143
- bool plot (const std::vector<double >& x, const std::vector<double >& y, const std::string& format = " " ) {
1143
+ inline bool plot (const std::vector<double >& x, const std::vector<double >& y, const std::string& format = " " ) {
1144
1144
return plot<double ,double >(x,y,format);
1145
1145
}
1146
1146
1147
- bool plot (const std::vector<double >& y, const std::string& format = " " ) {
1147
+ inline bool plot (const std::vector<double >& y, const std::string& format = " " ) {
1148
1148
return plot<double >(y,format);
1149
1149
}
1150
1150
1151
- bool plot (const std::vector<double >& x, const std::vector<double >& y, const std::map<std::string, std::string>& keywords) {
1151
+ inline bool plot (const std::vector<double >& x, const std::vector<double >& y, const std::map<std::string, std::string>& keywords) {
1152
1152
return plot<double >(x,y,keywords);
1153
1153
}
1154
1154
1155
- bool stem (const std::vector<double >& x, const std::vector<double >& y, const std::string& format = " " )
1156
- {
1157
- return stem<double , double >(x, y, format);
1158
- }
1159
-
1160
- bool stem (const std::vector<double >& y, const std::string& format = " " )
1161
- {
1162
- return stem<double >(y, format);
1163
- }
1164
-
1165
- bool stem (const std::vector<double >& x, const std::vector<double >& y, const std::map<std::string, std::string>& keywords)
1166
- {
1167
- return stem<double >(x, y, keywords);
1168
- }
1169
-
1170
- bool named_plot (const std::string& name, const std::vector<double >& x, const std::vector<double >& y, const std::string& format = " " ) {
1171
- return named_plot<double >(name,x,y,format);
1172
- }
1173
-
1174
1155
#endif
1175
1156
1176
1157
} // end namespace matplotlibcpp
0 commit comments