@@ -161,9 +161,9 @@ namespace matplotlibcpp {
161
161
PyObject* ylist = PyList_New (y.size ());
162
162
163
163
PyObject* kwargs = PyDict_New ();
164
- PyDict_SetItemString (kwargs, " bins" , PyFloat_FromDouble (bins));
165
- PyDict_SetItemString (kwargs," color" ,PyString_FromString (color.c_str ()));
166
- PyDict_SetItemString (kwargs, " alpha" , PyFloat_FromDouble (alpha));
164
+ PyDict_SetItemString (kwargs, " bins" , PyFloat_FromDouble (bins));
165
+ PyDict_SetItemString (kwargs, " color" , PyString_FromString (color.c_str ()));
166
+ PyDict_SetItemString (kwargs, " alpha" , PyFloat_FromDouble (alpha));
167
167
168
168
for (size_t i = 0 ; i < y.size (); ++i) {
169
169
PyList_SetItem (ylist, i, PyFloat_FromDouble (y.at (i)));
@@ -189,10 +189,10 @@ namespace matplotlibcpp {
189
189
190
190
PyObject* ylist = PyList_New (y.size ());
191
191
PyObject* kwargs = PyDict_New ();
192
- PyDict_SetItemString (kwargs," label" ,PyString_FromString (label.c_str ()));
193
- PyDict_SetItemString (kwargs, " bins" , PyFloat_FromDouble (bins));
194
- PyDict_SetItemString (kwargs," color" ,PyString_FromString (color.c_str ()));
195
- PyDict_SetItemString (kwargs, " alpha" , PyFloat_FromDouble (alpha));
192
+ PyDict_SetItemString (kwargs, " label" , PyString_FromString (label.c_str ()));
193
+ PyDict_SetItemString (kwargs, " bins" , PyFloat_FromDouble (bins));
194
+ PyDict_SetItemString (kwargs, " color" , PyString_FromString (color.c_str ()));
195
+ PyDict_SetItemString (kwargs, " alpha" , PyFloat_FromDouble (alpha));
196
196
197
197
for (size_t i = 0 ; i < y.size (); ++i) {
198
198
PyList_SetItem (ylist, i, PyFloat_FromDouble (y.at (i)));
0 commit comments