Hello Everyone,
I was trying to save my plot as png images using Makie.jl in a for loop which constantly updates the plot.
Here is my code snippet which saves the plot:
where file_no is the iterable variable in the for loop and changes value.
This is the error I get:
SystemError: opening file "Frame:\\ 1.png": Invalid argument
var"#systemerror#69"(::Nothing, ::typeof(systemerror), ::String, ::Int32)@error.jl:174
#systemerror#68@error.jl:173[inlined]
systemerror@error.jl:173[inlined]
var"#open#636"(::Bool, ::Nothing, ::Nothing, ::Nothing, ::Bool, ::Nothing, ::typeof(open), ::String)@iostream.jl:293
var"#open#637"(::Bool, ::typeof(open), ::String, ::String)@iostream.jl:355
open(::String, ::String)@iostream.jl:355
var"#open#355"(::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, ::typeof(open), ::Makie.var"#931#932"{Float64, Float64, DataType, Makie.Scene}, ::String, ::Vararg{String})@io.jl:328
open@io.jl:328[inlined]
#save#930@display.jl:241[inlined]
save(::FileIO.File{FileIO.DataFormat{:PNG}, String}, ::Makie.Figure)@display.jl:226
var"#save#929"(::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, ::typeof(FileIO.save), ::String, ::Makie.Figure)@display.jl:217
save(::String, ::Makie.Figure)@display.jl:217
top-level scope@Local: 133
I can't figure out the error, any help would be appreciated. Thanks.