# How to Plot Direction Field with 4 places of decimal for the y-axis

**URL:** <https://discourse.julialang.org/t/how-to-plot-direction-field-with-4-places-of-decimal-for-the-y-axis/88109>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [October 2, 2022, 4:50am UTC](https://discourse.julialang.org/t/how-to-plot-direction-field-with-4-places-of-decimal-for-the-y-axis/88109 "2022-10-02T04:50:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [October 2, 2022, 4:50am UTC](https://discourse.julialang.org/t/how-to-plot-direction-field-with-4-places-of-decimal-for-the-y-axis/88109/1 "2022-10-02T04:50:33Z")

</div>

Hi all,

I wonder is Julia plotting can’t plot the tickers for y-axis for number with lots of decimals `0.0001` etc.

It is only plotting 0.2 0.4 …

For the simple differential equation:

\frac{dq}{dt} = 300 ( 0.01 - 10^{-6})q

this is my code:

```julia
using LinearAlgebra, Plots

xs = 0:5:50
ys = -5*10^(-4):5*10^(-5):2*10^(-4)

# dx/dy = f(y,x)
df(x, y) = normalize([3-(3*10^(-4)y), 3-(3*10^(-4)y)])  

xxs = [x for x in xs for y in ys]
yys = [y for x in xs for y in ys]

Plots.quiver(xxs, yys, quiver=df)
plot!([10^(-4)], seriestype="hline", linestyle=:dash, color=:green, label="y(t)", legend=:outerright)

```

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [October 2, 2022, 3:39pm UTC](https://discourse.julialang.org/t/how-to-plot-direction-field-with-4-places-of-decimal-for-the-y-axis/88109/2 "2022-10-02T15:39:21Z")

</div>

Not sure what the question is but if you want to plot yticks with 4 decimals you can do `yticks = 0:0.0001:1` (or whatever the range of your function is) but you might end up with loads of ticks.
