# Problem with plotting large time series data sets with GLMakie

**URL:** <https://discourse.julialang.org/t/problem-with-plotting-large-time-series-data-sets-with-glmakie/109136>\
**Category:** General Usage\
**Tags:** plotting, glmakie\
**Created:** [January 23, 2024, 12:22pm UTC](https://discourse.julialang.org/t/problem-with-plotting-large-time-series-data-sets-with-glmakie/109136 "2024-01-23T12:22:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marast](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@marast](https://discourse.julialang.org/u/marast)\
**Post date:** [January 23, 2024, 12:22pm UTC](https://discourse.julialang.org/t/problem-with-plotting-large-time-series-data-sets-with-glmakie/109136/1 "2024-01-23T12:22:19Z")

</div>

Hello,

I am plotting large time series data sets with GLMakie. In some cases I get a time out from my graphics driver. Then the plotting fails and sometimes julia freezes or crashes. I use the integrated graphics of my CPU (AMD 7950X). I checked the memory usage. The small dedicated memory of the graphics unit is used up but there is plenty of shared memory (system RAM) available. I managed to reduce the problem to the following example:

```julia
using GLMakie

# data generation
num_data_points = 10000000
num_periods = 1000000
time = LinRange(0.0, 2 * π * num_periods, num_data_points)
signal = sin.(time)

# plotting
fig = Figure()
ax = Axis(fig[1,1])
lines!(ax, time, signal)
display(fig)

```

It is interesting that the number of periods and not the number of data points appears to be the problem. Is there a way to fix this without down sampling below the oscillation period? Is this a device specific problem or a problem of GLMakie?

---

<div class="post-metadata">

**Author:** ![marast](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@marast](https://discourse.julialang.org/u/marast)\
**Post date:** [January 24, 2024, 4:25pm UTC](https://discourse.julialang.org/t/problem-with-plotting-large-time-series-data-sets-with-glmakie/109136/2 "2024-01-24T16:25:55Z")

</div>

I figured it out. Windows prompts the graphics card every 2 seconds. If a task takes longer than 2 seconds, windows thinks there is a problem and resets the graphics card (killing the task). This is what happend on my computer with the above code example. I solved the problem by increasing the time interval between prompts in the registry ([Timeout detection and recovery (TDR) - Windows drivers | Microsoft Learn](https://learn.microsoft.com/en-us/windows-hardware/drivers/display/timeout-detection-and-recovery)). I hope this thread helps those who run into the same issue.
