8000 Chose a better name for the parameter to text · michLab/matplotlib-cpp@e49f4f7 · GitHub
[go: up one dir, main page]

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)
0