Skip to content

Commit 94a4102

Browse files
author
Martino
committed
Changed PyFloat to PyLong for bins
1 parent de35a19 commit 94a4102

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
@@ -161,7 +161,7 @@ namespace matplotlibcpp {
161161
PyObject* ylist = PyList_New(y.size());
162162

163163
PyObject* kwargs = PyDict_New();
164-
PyDict_SetItemString(kwargs, "bins", PyFloat_FromDouble(bins));
164+
PyDict_SetItemString(kwargs, "bins", PyLong_FromLong(bins));
165165
PyDict_SetItemString(kwargs, "color", PyString_FromString(color.c_str()));
166166
PyDict_SetItemString(kwargs, "alpha", PyFloat_FromDouble(alpha));
167167

@@ -190,7 +190,7 @@ namespace matplotlibcpp {
190190
PyObject* ylist = PyList_New(y.size());
191191
PyObject* kwargs = PyDict_New();
192192
PyDict_SetItemString(kwargs, "label", PyString_FromString(label.c_str()));
193-
PyDict_SetItemString(kwargs, "bins", PyFloat_FromDouble(bins));
193+
PyDict_SetItemString(kwargs, "bins", PyLong_FromLong(bins));
194194
PyDict_SetItemString(kwargs, "color", PyString_FromString(color.c_str()));
195195
PyDict_SetItemString(kwargs, "alpha", PyFloat_FromDouble(alpha));
196196

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