Skip to content

Commit

Permalink
use deterministic series IDs in PGFPlotsX (#4933)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdunlap committed May 13, 2024
1 parent 0ab074b commit 83346a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions PlotsBase/ext/PGFPlotsXExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module PGFPlotsXExt
import PlotsBase: PlotsBase, pgfx_sanitize_string
import LaTeXStrings: LaTeXString
import Printf: @sprintf
import UUIDs: uuid4

import RecipesPipeline
import PlotUtils
Expand Down Expand Up @@ -465,8 +464,8 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
)
end
for (series_index, series) enumerate(series_list(sp))
# give each series a uuid for fillbetween
series_id = uuid4()
# give each series an id for fillbetween
series_id = maximum(values(_pgfplotsx_series_ids), init = 0) + 1
_pgfplotsx_series_ids[Symbol("$series_index")] = series_id
opt = series.plotattributes
st = series[:seriestype]
Expand Down

0 comments on commit 83346a6

Please sign in to comment.