diff --git a/src/backends.jl b/src/backends.jl index 078468f6..e47085de 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -621,6 +621,9 @@ const HDF5PLOT_MAP_STR2TELEM = Dict{String, Type}() const HDF5PLOT_MAP_TELEM2STR = Dict{Type, String}() #Don't really like this global variable... Very hacky +mutable struct HDF5Plot_PlotRef + ref::Union{Plot, Nothing} +end const HDF5PLOT_PLOTREF = HDF5Plot_PlotRef(nothing) #Simple sub-structures that can just be written out using _hdf5plot_gwritefields: diff --git a/src/backends/hdf5.jl b/src/backends/hdf5.jl index 327d11c5..1dceedc0 100644 --- a/src/backends/hdf5.jl +++ b/src/backends/hdf5.jl @@ -37,10 +37,6 @@ import FixedPointNumbers: N0f8 #In core Julia struct HDF5PlotNative; end #Indentifies a data element that can natively be handled by HDF5 struct HDF5CTuple; end #Identifies a "complex" tuple structure -mutable struct HDF5Plot_PlotRef - ref::Union{Plot, Nothing} -end - #== ===============================================================================# is_marker_supported(::HDF5Backend, shape::Shape) = true