这是我在Objective C中的示例代码.setExtremes没有设置我们传入的最小值/最大值。感谢任何帮助!
HIEvents *events = [[HIEvents alloc] init];
NSString *jScript =[NSString stringWithFormat:@"function () { this.chart.xAxis[0].setExtremes(%@,%@);}",min,max];
events.load = [[HIFunction alloc] initWithFunction:jScript];
chart.events = events;
答案 0 :(得分:-1)
能够解决这个问题:
cimport my_error_helper
class MyError(RuntimeError):
"Base class for errors raised from my C++."
pass
cdef int raise_my_py_error() except *:
msg = my_error_helper.get_my_py_error_message().decode('utf-8')
raise MyError(msg)