set font in reaction path diagrams
This commit is contained in:
parent
c702f3371b
commit
bab3b70c5c
3 changed files with 15 additions and 0 deletions
|
|
@ -110,6 +110,8 @@ class PathDiagram:
|
|||
_cantera.rdiag_setNormalThreshold(self.__rdiag_id, v)
|
||||
elif o == "label_threshold":
|
||||
_cantera.rdiag_setLabelThreshold(self.__rdiag_id, v)
|
||||
elif o == "font":
|
||||
_cantera.rdiag_setFont(self.__rdiag_id, v)
|
||||
elif o == "flow_type":
|
||||
if v == "one_way":
|
||||
_cantera.rdiag_setFlowType(self.__rdiag_id, 0)
|
||||
|
|
|
|||
|
|
@ -52,6 +52,18 @@ py_rdiag_setThreshold(PyObject *self, PyObject *args)
|
|||
return Py_BuildValue("i",0);
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
py_rdiag_setFont(PyObject *self, PyObject *args)
|
||||
{
|
||||
int n;
|
||||
char* font;
|
||||
if (!PyArg_ParseTuple(args, "is:rdiag_setFont", &n, &font))
|
||||
return NULL;
|
||||
int iok = rdiag_setFont(n, font);
|
||||
if (iok < 0) return reportError(iok);
|
||||
return Py_BuildValue("i",0);
|
||||
}
|
||||
|
||||
static PyObject*
|
||||
py_rdiag_setBoldColor(PyObject *self, PyObject *args)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -165,6 +165,7 @@ static PyMethodDef ct_methods[] = {
|
|||
{"rdiag_displayOnly", py_rdiag_displayOnly, METH_VARARGS},
|
||||
{"rdiag_setThreshold", py_rdiag_setThreshold, METH_VARARGS},
|
||||
{"rdiag_setBoldThreshold", py_rdiag_setBoldThreshold, METH_VARARGS},
|
||||
{"rdiag_setFont", py_rdiag_setFont, METH_VARARGS},
|
||||
{"rdiag_new", py_rdiag_new, METH_VARARGS},
|
||||
{"rdiag_del", py_rdiag_del, METH_VARARGS},
|
||||
{"rdiag_detailed", py_rdiag_detailed, METH_VARARGS},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue