PGFPlotsX.jl icon indicating copy to clipboard operation
PGFPlotsX.jl copied to clipboard

`copy` does not work with type TikzDocument

Open rs7q5 opened this issue 1 year ago • 2 comments

For some reason copy does not work with type TikzDocument, but does for something like TikzPicture and AxisLike objects. I think it is because the other axis elements are of OptionType. But was wondering if we could add a method so TikzDocument could be copied.

Edit: doing Base(td::TikzDocument) = deepcopy(td) seems to work. Let me know if this would be acceptable and I can cut a PR.

rs7q5 avatar Jun 27 '23 00:06 rs7q5