Skip to content

Commit e49f4f7

Browse files
charasynlava
authored andcommitted
Chose a better name for the parameter to text
1 parent 41a46e5 commit e49f4f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

matplotlibcpp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,12 +797,12 @@ bool stem(const std::vector<Numeric>& y, const std::string& format = "")
797797
}
798798

799799
template<typename Numeric>
800-
void text(Numeric x, Numeric y, const std::string& format = "")
800+
void text(Numeric x, Numeric y, const std::string& s = "")
801801
{
802802
PyObject* args = PyTuple_New(3);
803803
PyTuple_SetItem(args, 0, PyFloat_FromDouble(x));
804804
PyTuple_SetItem(args, 1, PyFloat_FromDouble(y));
805-
PyTuple_SetItem(args, 2, PyString_FromString(format.c_str()));
805+
PyTuple_SetItem(args, 2, PyString_FromString(s.c_str()));
806806

807807
PyObject* res = PyObject_CallObject(detail::_interpreter::get().s_python_function_text, args);
808808
if(!res) throw std::runtime_error("Call to text() failed.");

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