[英]Pyplot Labelposition Y-axis in Julia
I basically want the Y label (using PyPlot) on the right side with it's ticks. 我基本上想要右边带有刻度线的Y标签(使用PyPlot)。 For Python I found the comand
ax.yaxis.set_label_position("right")
. 对于Python,我找到了
ax.yaxis.set_label_position("right")
。
But if I do 但是如果我这样做
ax=gca()
ax.yaxis.set_label_position("right")
or ax[:yaxis](label_position="right")
或
ax[:yaxis](label_position="right")
Julia says "type PyObject has no field yaxis" for the first case and "TypeError("'YAxis' object is not callable",)" for the second case. 朱莉娅说,第一种情况为“类型PyObject没有字段yaxis”,第二种情况为“ TypeError(“'YAxis'对象不可调用”,)“。 How do I adress it correctly?
如何正确处理?
You can write: 你可以写:
gca()[:yaxis][:set_label_position]("right")
to get what you want 得到你想要的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.