8000 set_xscale->xscale and set_yscale->yscale · lava/matplotlib-cpp@4eac8bc · GitHub
[go: up one dir, main page]

Skip to content

Commit 4eac8bc

Browse files
committed
set_xscale->xscale and set_yscale->yscale
1 parent a179e3b commit 4eac8bc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

matplotlibcpp.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ struct _interpreter {
7070
PyObject *s_python_function_subplot2grid;
7171
PyObject *s_python_function_legend;
7272
PyObject *s_python_function_xlim;
73-
PyObject *s_python_function_set_xscale;
74-
PyObject *s_python_function_set_yscale;
73+
PyObject *s_python_function_xscale;
74+
PyObject *s_python_function_yscale;
7575
PyObject *s_python_function_ion;
7676
PyObject *s_python_function_ginput;
7777
PyObject *s_python_function_ylim;
@@ -248,8 +248,8 @@ struct _interpreter {
248248
s_python_function_subplot2grid = safe_import(pymod, "subplot2grid");
249249
s_python_function_legend = safe_import(pymod, "legend");
250250
s_python_function_xlim = safe_import(pymod, "xlim");
251-
s_python_function_set_xscale = safe_import(pymod, "set_xscale");
252-
s_python_function_set_yscale = safe_import(pymod, "set_yscale");
251+
s_python_function_xscale = safe_import(pymod, "xscale");
252+
s_python_function_yscale = safe_import(pymod, "yscale");
253253
s_python_function_ylim = safe_import(pymod, "ylim");
254254
s_python_function_title = safe_import(pymod, "title");
255255
s_python_function_axis = safe_import(pymod, "axis");
@@ -887,7 +887,7 @@ bool arrow(Numeric x, Numeric y, Numeric end_x, Numeric end_y, const std::string
887887
return res;
888888
}
889889

890-
void set_xscale(std::string value,
890+
void xscale(std::string value,
891891
const std::map<std::string, std::string> &keywords = {})
892892
{
893893
detail::_interpreter::get();
@@ -901,16 +901,16 @@ void set_xscale(std::string value,
901901
PyDict_SetItemString(kwargs, it->first.c_str(), PyUnicode_FromString(it->second.c_str()));
902902
}
903903

904-
PyObject* res = PyObject_Call(detail::_interpreter::get().s_python_function_set_xscale, args, kwargs);
904+
PyObject* res = PyObject_Call(detail::_interpreter::get().s_python_function_xscale, args, kwargs);
905905

906-
if(!res) throw std::runtime_error("Call to set_xscale() failed.");
906+
if(!res) throw std::runtime_error("Call to xscale() failed.");
907907

908908
Py_DECREF(args);
909909
Py_DECREF(kwargs);
910910
Py_DECREF(res);
911911
}
912912

913-
void set_yscale(std::string value,
913+
void yscale(std::string value,
914914
const std::map<std::string, std::string> &keywords = {})
915915
{
916916
detail::_interpreter::get();
@@ -924,9 +924,9 @@ void set_yscale(std::string value,
924924
PyDict_SetItemString(kwargs, it->first.c_str(), PyUnicode_FromString(it->second.c_str()));
925925
}
926926

927-
PyObject* res = PyObject_Call(detail::_interpreter::get().s_python_function_set_yscale, args, kwargs);
927+
PyObject* res = PyObject_Call(detail::_interpreter::get().s_python_function_yscale, args, kwargs);
928928

929-
if(!res) throw std::runtime_error("Call to set_yscale() failed.");
929+
if(!res) throw std::runtime_error("Call to yscale() failed.");
930930

931931
Py_DECREF(args);
932932
Py_DECREF(kwargs);

0 commit comments

Comments
 (0)
0