# Vline! alters y-axis labels using Plots with GR

**URL:** <https://discourse.julialang.org/t/vline-alters-y-axis-labels-using-plots-with-gr/20918>\
**Category:** Visualization\
**Created:** [February 18, 2019, 12:43am UTC](https://discourse.julialang.org/t/vline-alters-y-axis-labels-using-plots-with-gr/20918 "2019-02-18T00:43:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![colintbowers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colintbowers/32/8033_2.png) [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Post date:** [February 18, 2019, 12:43am UTC](https://discourse.julialang.org/t/vline-alters-y-axis-labels-using-plots-with-gr/20918/1 "2019-02-18T00:43:27Z")

</div>

Hi all,

An MWE follows:

```julia
using Plots
dt = [today() + Day(10*n) for n = 1:100];
x = randn(100);
p = plot(dt, x);
savefig(p, "/home/colin/TempPlot/a1.svg");
dtlab = dt[1:20:100];
vline!(p, dtlab);
savefig(p, "/home/colin/TempPlot/a2.svg");

```

In the second plot, the vertical lines are inserted in the correct location, but for some reason the y-axis labels have changed from floating point numbers to dates…

Is this expected behaviour? Am I overlooking something obvious here?

Cheers,

Colin
