# Julia Pyplot: how to draw thick inside graph?

**URL:** <https://discourse.julialang.org/t/julia-pyplot-how-to-draw-thick-inside-graph/85525>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [August 9, 2022, 11:49am UTC](https://discourse.julialang.org/t/julia-pyplot-how-to-draw-thick-inside-graph/85525 "2022-08-09T11:49:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi\_Marongiu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luigi_marongiu/32/7909_2.png) [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Post date:** [August 9, 2022, 11:49am UTC](https://discourse.julialang.org/t/julia-pyplot-how-to-draw-thick-inside-graph/85525/1 "2022-08-09T11:49:00Z")

</div>

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

```julia
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`:

```julia
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

---

<div class="post-metadata">

**Author:** ![SteffenPL](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/steffenpl/32/206270_2.png) [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Post date:** [August 9, 2022, 12:39pm UTC](https://discourse.julialang.org/t/julia-pyplot-how-to-draw-thick-inside-graph/85525/2 "2022-08-09T12:39:54Z")

</div>

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

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

```

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

---

<div class="post-metadata">

**Author:** ![Luigi\_Marongiu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luigi_marongiu/32/7909_2.png) [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Post date:** [August 9, 2022, 12:42pm UTC](https://discourse.julialang.org/t/julia-pyplot-how-to-draw-thick-inside-graph/85525/3 "2022-08-09T12:42:37Z")

</div>

> [@SteffenPL](#):
>
> `ax.tick_params(axis="y", which="both", direction="in")`

Thank you!
