Julia PyPlot: how to draw thicks on both sizes of axis?

Hello,
what is the syntax for drawing the axis on both sizes of the axis? That is, I would like the thicks not only on the bottom of the plot (x axis) but also on the upper size. Similarly, I would like the thicks on both left and right sizes:

using PyPlot
    clf()
    x = 1:10
    y = broadcast(^, 2, x)
    p = plot(x, y,
    linestyle = "-", color = "red", linewidth=2)

Thank you

The axis on the right can be drawn by adding

    ax = gca()
    ax.yaxis.set_ticks_position("both")
1 Like

Thank you!

1 Like

To add also the labels on the right, one can use

ax = gca()
ax.yaxis.set_ticks_position("both")
ax.tick_params(axis="y", left="on",labelleft="on", right="on", labelright="on")
1 Like