Julia Pyplot: how to draw thick inside graph?

Hello,
what is the syntax for drawing thicks inward? I can do this:

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

But if I use tick_direction = :in:

p = plot(x, y,
           linestyle = "-", color = "red", linewidth=2, 
           tick_direction = :in) 
ERROR: PyError ($(Expr(:escape, :(ccall(#= /home/gigiux/.julia/packages/PyCall/7a7w0/src/pyfncall.jl:43 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'AttributeError'>
AttributeError("'Line2D' object has no property 'tick_direction'")

Thnak you

If the ticks refer to the axis ticks, than this would probably do the job:

ax.tick_params(axis="y", which="both", direction="in")

Here "both" refers to "minor" and "major" ticks (in case of log scale).

1 Like

Thank you!