Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use deterministic series IDs in PGFPlotsX #4933

Merged
merged 1 commit into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading