|
@@ -1061,6 +1061,14 @@ bool plot(const std::vector<Numeric>& y, const std::string& format = "")
|
|
|
return plot(x,y,format);
|
|
|
}
|
|
|
|
|
|
+template<typename Numeric>
|
|
|
+bool plot(const std::vector<Numeric>& y, const std::map<std::string, std::string>& keywords)
|
|
|
+{
|
|
|
+ std::vector<Numeric> x(y.size());
|
|
|
+ for(size_t i=0; i<x.size(); ++i) x.at(i) = i;
|
|
|
+ return plot(x,y,keywords);
|
|
|
+}
|
|
|
+
|
|
|
template<typename Numeric>
|
|
|
bool stem(const std::vector<Numeric>& y, const std::string& format = "")
|
|
|
{
|