@@ -70,8 +70,8 @@ struct _interpreter {
70
70
PyObject *s_python_function_subplot2grid;
71
71
PyObject *s_python_function_legend;
72
72
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 ;
75
75
PyObject *s_python_function_ion;
76
76
PyObject *s_python_function_ginput;
77
77
PyObject *s_python_function_ylim;
@@ -248,8 +248,8 @@ struct _interpreter {
248
248
s_python_function_subplot2grid = safe_import (pymod, " subplot2grid" );
249
249
s_python_function_legend = safe_import (pymod, " legend" );
250
250
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 " );
253
253
s_python_function_ylim = safe_import (pymod, " ylim" );
254
254
s_python_function_title = safe_import (pymod, " title" );
255
255
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
887
887
return res;
888
888
}
889
889
890
- void set_xscale (std::string value,
890
+ void xscale (std::string value,
891
891
const std::map<std::string, std::string> &keywords = {})
892
892
{
893
893
detail::_interpreter::get ();
@@ -901,16 +901,16 @@ void set_xscale(std::string value,
901
901
PyDict_SetItemString (kwargs, it->first .c_str (), PyUnicode_FromString (it->second .c_str ()));
902
902
}
903
903
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);
905
905
906
- if (!res) throw std::runtime_error (" Call to set_xscale () failed." );
906
+ if (!res) throw std::runtime_error (" Call to xscale () failed." );
907
907
908
908
Py_DECREF (args);
909
909
Py_DECREF (kwargs);
910
910
Py_DECREF (res);
911
911
}
912
912
913
- void set_yscale (std::string value,
913
+ void yscale (std::string value,
914
914
const std::map<std::string, std::string> &keywords = {})
915
915
{
916
916
detail::_interpreter::get ();
@@ -924,9 +924,9 @@ void set_yscale(std::string value,
924
924
PyDict_SetItemString (kwargs, it->first .c_str (), PyUnicode_FromString (it->second .c_str ()));
925
925
}
926
926
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);
928
928
929
- if (!res) throw std::runtime_error (" Call to set_yscale () failed." );
929
+ if (!res) throw std::runtime_error (" Call to yscale () failed." );
930
930
931
931
Py_DECREF (args);
932
932
Py_DECREF (kwargs);
0 commit comments