Skip to content

Commit

Permalink
filename_ext fix
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Mar 4, 2024
1 parent 071efbf commit d13bb6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MadsPlot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ function scatterplotsamples(madsdata::AbstractDict, samples::AbstractMatrix, fil
Gadfly.Theme(major_label_font_size=major_label_font_size, minor_label_font_size=minor_label_font_size)
)
if separate_files
fn = filename_root * "_histogram_" * "$(lpad(i, nz, '0'))_" * plotlabels[i] * "." * filename_ext
fn = filename_root * "_histogram_" * "$(lpad(i, nz, '0'))_" * plotlabels[i] * filename_ext
plotfileformat(p, fn, hsize, vsize; format=format, dpi=dpi)
else
cs[j, i] = Gadfly.render(p)
Expand All @@ -469,7 +469,7 @@ function scatterplotsamples(madsdata::AbstractDict, samples::AbstractMatrix, fil
Gadfly.Theme(major_label_font_size=major_label_font_size, minor_label_font_size=minor_label_font_size, point_size=pointsize, highlight_width=highlight_width)
)
if separate_files
fn = filename_root * "_scatter_" * "$(lpad(i, nz, '0'))_" * "$(lpad(j, nz, '0'))_" * plotlabels[i] * "_" * plotlabels[j] * "." * filename_ext
fn = filename_root * "_scatter_" * "$(lpad(i, nz, '0'))_" * "$(lpad(j, nz, '0'))_" * plotlabels[i] * "_" * plotlabels[j] * filename_ext
plotfileformat(p, fn, hsize, vsize; format=format, dpi=dpi)
else
cs[j, i] = Gadfly.render(p)
Expand Down

0 comments on commit d13bb6b

Please sign in to comment.