Commit f31ff4be authored by fabrice's avatar fabrice
Browse files

Bug fixe: save_fig flag doesn't work with refmaplot

parent cff3bc2a
...@@ -126,7 +126,7 @@ whatif_executable: whatif ...@@ -126,7 +126,7 @@ whatif_executable: whatif
; Plot settings ; Plot settings
n_factor: 1.5 n_factor: 1.5
groupby_method: min groupby_method: min
save_fig: True save_fig: False
size_fig: 10 size_fig: 10
plot_ext: pdf plot_ext: pdf
plot_dpi: 200 plot_dpi: 200
......
No preview for this file type
...@@ -89,9 +89,10 @@ class AriaEcContactMap(object): ...@@ -89,9 +89,10 @@ class AriaEcContactMap(object):
if mapt == self.reftype: if mapt == self.reftype:
refmap.write_contacts("_".join((self.outprefix, mapt)), refmap.write_contacts("_".join((self.outprefix, mapt)),
outdir=outdir) outdir=outdir)
refmap.saveplot(outdir=outdir, if self.settings.contactmap.config.get("save_fig"):
outprefix="_".join((self.outprefix, mapt)), refmap.saveplot(outdir=outdir,
**plotparams) outprefix="_".join((self.outprefix, mapt)),
**plotparams)
continue continue
if self.allresmap[mapt].get("contactmap") is not None and \ if self.allresmap[mapt].get("contactmap") is not None and \
......
No preview for this file type
No preview for this file type
...@@ -16,8 +16,6 @@ import operator ...@@ -16,8 +16,6 @@ import operator
import pandas as pd import pandas as pd
import seaborn as sns import seaborn as sns
import numpy as np import numpy as np
import matplotlib
matplotlib.use('pdf')
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import aria.ConversionTable as ConversionTable import aria.ConversionTable as ConversionTable
import aria.legacy.AminoAcid as AminoAcid import aria.legacy.AminoAcid as AminoAcid
......
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment