8000 Fix whitespace error · lava/matplotlib-cpp@dfe5a69 · GitHub
[go: up one dir, main page]

Skip to content

Commit dfe5a69

Browse files
committed
Fix whitespace error
1 parent 6f841d4 commit dfe5a69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

matplotlibcpp.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,10 +1993,10 @@ inline void axvspan(double xmin, double xmax, double ymin = 0., double ymax = 1.
19931993
PyObject* kwargs = PyDict_New();
19941994
for(std::map<std::string, std::string>::const_iterator it = keywords.begin(); it != keywords.end(); ++it)
19951995
{
1996-
if (it->first == "linewidth" || it->first == "alpha")
1997-
PyDict_SetItemString(kwargs, it->first.c_str(), PyFloat_FromDouble(std::stod(it->second)));
1998-
else
1999-
PyDict_SetItemString(kwargs, it->first.c_str(), PyString_FromString(it->second.c_str()));
1996+
if (it->first == "linewidth" || it->first == "alpha")
1997+
PyDict_SetItemString(kwargs, it->first.c_str(), PyFloat_FromDouble(std::stod(it->second)));
1998+
else
1999+
PyDict_SetItemString(kwargs, it->first.c_str(), PyString_FromString(it->second.c_str()));
20002000
}
20012001

20022002
PyObject* res = PyObject_Call(detail::_interpreter::get().s_python_function_axvspan, args, kwargs);

0 commit comments

Comments
 (0)
0