简体   繁体   中英

Pyplot Labelposition Y-axis in Julia

I basically want the Y label (using PyPlot) on the right side with it's ticks. For Python I found the comand ax.yaxis.set_label_position("right") .

But if I do

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

or 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. How do I adress it correctly?

You can write:

gca()[:yaxis][:set_label_position]("right")

to get what you want

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM