# Makie: problem with line plots?

**URL:** <https://discourse.julialang.org/t/makie-problem-with-line-plots/72534>\
**Category:** Visualization\
**Tags:** bug, makie\
**Created:** [December 3, 2021, 4:59pm UTC](https://discourse.julialang.org/t/makie-problem-with-line-plots/72534 "2021-12-03T16:59:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nchisholm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nchisholm/32/37414_2.png) [@nchisholm](https://discourse.julialang.org/u/nchisholm)\
**Post date:** [December 3, 2021, 4:59pm UTC](https://discourse.julialang.org/t/makie-problem-with-line-plots/72534/1 "2021-12-03T16:59:57Z")

</div>

I am encountering an issue with `GLMakie` where lines on plots are drawn incorrectly as shown below. Only tiny segments of the line appear. Strangely, the plot is rendered correctly the first time the plotting command is called, but after that things break.

The code below produces the problem for me when run in a Jupyter notebook or in the terminal.

```julia
using GLMakie

lines(-8π..8π, sin) # first call is ok

```

 ![output_1_0](https://global.discourse-cdn.com/julialang/original/3X/6/8/68c8353282558b57c1685e07a505c14e51480f64.png)

```julia
lines(-8π..8π, sin) # second call

```

 ![output_2_0](https://global.discourse-cdn.com/julialang/original/3X/a/5/a58fce147b30b5c469863d272abd3d80941ba8c4.png)

I am using `julia v1.7.0` and `GLMakie v0.4.7`.

Anyone else having this issue? It also occurs with other type of plots like `contour`.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [December 3, 2021, 7:19pm UTC](https://discourse.julialang.org/t/makie-problem-with-line-plots/72534/2 "2021-12-03T19:19:22Z")

</div>

What GPU and OS is this?

---

<div class="post-metadata">

**Author:** ![nchisholm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nchisholm/32/37414_2.png) [@nchisholm](https://discourse.julialang.org/u/nchisholm)\
**Post date:** [December 3, 2021, 7:37pm UTC](https://discourse.julialang.org/t/makie-problem-with-line-plots/72534/3 "2021-12-03T19:37:21Z")

</div>

OS: Fedora Linux 35  
Processor / Graphics: AMD® Ryzen 7 pro 4750u  
AMD RENOIR (DRM 3.42.0, 5.15.6-200.fc35.x86\_64, LLVM 13.0.0)

Let me know what else I can provide.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [December 4, 2021, 11:22am UTC](https://discourse.julialang.org/t/makie-problem-with-line-plots/72534/4 "2021-12-04T11:22:55Z")

</div>

Looks like this amd driver bug:  
[https://github.com/JuliaPlots/Makie.jl/issues/1460](https://github.com/JuliaPlots/Makie.jl/issues/1460)

---

<div class="post-metadata">

**Author:** ![nchisholm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nchisholm/32/37414_2.png) [@nchisholm](https://discourse.julialang.org/u/nchisholm)\
**Post date:** [December 4, 2021, 5:23pm UTC](https://discourse.julialang.org/t/makie-problem-with-line-plots/72534/5 "2021-12-04T17:23:03Z")

</div>

Definitely looks like the same issue - thanks for clearing things up. I must have missed that bug report. Thankfully, CairoMakie works just fine.

Curious - since this is like driver issue, does that mean the AMD driver itself is somehow broken or that Makie is not communicating properly with the driver?

Many thanks for your efforts on Makie. It is a wonderful visualization tool!

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [December 4, 2021, 5:39pm UTC](https://discourse.julialang.org/t/makie-problem-with-line-plots/72534/6 "2021-12-04T17:39:04Z")

</div>

The OpenGL spec is a bit fuzzy here and there, so there is a chance that amd simply is the only one who differs a bit, while not being strictly wrong…  
But there is also a good chance that it’s straight up a driver bug - will need some investigation, which is hard without being able to reproduce
