Romero Azzalini
Romero Azzalini

Reputation: 304

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?

Upvotes: 1

Views: 356

Answers (1)

Bogumił Kamiński
Bogumił Kamiński

Reputation: 69819

You can write:

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

to get what you want

Upvotes: 2

Related Questions