From 6cd82b3b80ce134e8b60c47e1cf53f205e76e9ac Mon Sep 17 00:00:00 2001 From: monty Date: Fri, 6 May 2022 15:02:30 -0600 Subject: [PATCH] plot --- Project.toml | 2 +- src/NMFkPlot.jl | 26 +------------------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/Project.toml b/Project.toml index 0249901..e464bb2 100644 --- a/Project.toml +++ b/Project.toml @@ -65,7 +65,7 @@ Interpolations = "0.12, 0.13, 0.14" JLD = "0.10, 0.11, 0.12, 0.13" JLD2 = "0.2, 0.3, 0.4, 0.5" JuMP = "0.21, 0.22, 0.23, 1" -Mads = "1" +Mads = "1.3.1" Measures = "0.3, 0.4" MultivariateStats = "0.7, 0.8, 0.9" NLopt = "0.6, 0.7" diff --git a/src/NMFkPlot.jl b/src/NMFkPlot.jl index 0c0159b..82521b5 100644 --- a/src/NMFkPlot.jl +++ b/src/NMFkPlot.jl @@ -714,29 +714,5 @@ function r2matrix(X::AbstractArray, Y::AbstractArray; normalize::Symbol=:none, k return D end -""" -Set image file `format` based on the `filename` extension, or sets the `filename` extension based on the requested `format`. The default `format` is `PNG`. `SVG`, `PDF`, `ESP`, and `PS` are also supported. - -$(DocumentFunction.documentfunction(setplotfileformat; argtext=Dict("filename"=>"output file name"))) - -Returns: - -- output file name -- output plot format (`png`, `pdf`, etc.) -""" -function setplotfileformat(filename::AbstractString, format::AbstractString="PNG") - d = splitdir(filename) - root, extension = splitext(d[end]) - if extension == "" - extension = lowercase(format) - filename = joinpath(d[1], root * "." * extension) - else - format = uppercase(extension[2:end]) - end - if format == "EPS" - format = "PS" - end - return filename, Symbol(format) -end - +setplotfileformat = Mads.setplotfileformat plotfileformat = Mads.plotfileformat \ No newline at end of file