Skip to content

Commit a4c5589

Browse files
committed
intializer lists are simply enabled by default template args for plot()
1 parent c7d0640 commit a4c5589

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

matplotlibcpp.h

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -978,8 +978,7 @@ bool bar(const std::vector<Numeric> &y, std::string ec = "black",
978978
return res;
979979
}
980980

981-
inline bool
982-
subplots_adjust(const std::map<std::string, double> &keywords = {}) {
981+
inline bool subplots_adjust(const std::map<std::string, double> &keywords = {}) {
983982

984983
PyObject *kwargs = PyDict_New();
985984
for (std::map<std::string, double>::const_iterator it = keywords.begin();
@@ -1752,26 +1751,6 @@ bool plot(const A &a, const B &b, const std::string &format, Args... args) {
17521751
return plot(a, b, format) && plot(args...);
17531752
}
17541753

1755-
#if 0
1756-
/*
1757-
* This group of plot() functions is needed to support initializer lists, i.e.
1758-
* calling plot( {1,2,3,4} )
1759-
*/
1760-
inline bool plot(const std::vector<double> &x, const std::vector<double> &y,
1761-
const std::string &format = "") {
1762-
return plot<std::vector<double>, std::vector<double>>(x, y, format);
1763-
}
1764-
1765-
inline bool plot(const std::vector<double> &y, const std::string &format = "") {
1766-
return plot<std::vector<double>>(y, format);
1767-
}
1768-
1769-
inline bool plot(const std::vector<double> &x, const std::vector<double> &y,
1770-
const std::map<std::string, std::string> &keywords) {
1771-
return plot<std::vector<double>, std::vector<double>>(x, y, keywords);
1772-
}
1773-
#endif
1774-
17751754
/*
17761755
* This class allows dynamic plots, ie changing the plotted data without
17771756
* clearing and re-plotting

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy