朱莉娅的Pyplot标签位置Y轴

时间:2018-12-06 00:58:45

标签: python matplotlib plot julia

我基本上想要右边带有刻度线的Y标签(使用PyPlot)。对于Python,我找到了命令CREATE DOMAIN myint AS integer CONSTRAINT not_null CHECK (VALUE IS NOT NULL); CREATE FUNCTION myfunc() RETURNS myint LANGUAGE plpgsql AS $$ DECLARE notnullint myint; BEGIN notnullint := 1; RETURN notnullint; END $$; mydb=# select myfunc(); ERROR: value for domain myint violates check constraint "not_null" CONTEXT: PL/pgSQL function myfunc() line 4 during statement block local variable initialization

但如果我这样做

ax.yaxis.set_label_position("right")

ax=gca() ax.yaxis.set_label_position("right")

Julia说,第一种情况为“类型PyObject没有字段yaxis”,第二种情况为“ TypeError(“'YAxis'对象不可调用”,)“。如何正确处理?

1 个答案:

答案 0 :(得分:2)

您可以写:

fabric.loadSVGFromString(options.svgLegend, function (results, renderOptions) {

            results.filter(function(obj){ if(obj.type === 'circle'){ obj.width = obj.radius; } });

得到想要的东西

相关问题