Gadfly Performance Issue

gadfly

#1

I’m trying to create a QQ plot for about 400 000 inter-arrival times, but the resulting plot takes far too long to open or julia crashes. Is there a way to plot more efficiently?

plot_test = plot(
    x = test1[:ita],
    y = Exponential(mu),
    Stat.qq,
    Geom.point,
    style(default_color = colorant"green",
    highlight_width = 0pt,
    point_size=0.5pt));

#2

Do you mean something like this:

Pkg.add("Makie")
Pkg.checkout("Makie")
Pkg.checkout("AbstractPlotting")
using Makie
scatter(test1[:ita], Exponential(mu), markersize = 1.0, markercolor = (:green, 0.4))

should get you that - possibly without the Stat.qq! :wink: Not sure what exactly that will add to the plot!


#3

Thanks. It seems the issue was that I was rendering the plot using SVG and when I used PNG the file size was much more managable and nothing crashed