Commit 6bb1e98a authored by Viktor Reshniak's avatar Viktor Reshniak
Browse files

update plot

parent 98eabad7
Loading
Loading
Loading
Loading
+19 −1
Original line number Diff line number Diff line
@@ -2256,7 +2256,25 @@ class PeakHistogram(object):
	def plot(self, bins, plot_path='output', prefix=None, peak_std=4, bkgr_std=10, log=False):
		start = time.time()

		styles = [':','-.','--','-']
		styles = OrderedDict(
		    [('solid',               (0, ())),
		     # ('loosely dotted',      (0, (1, 10))),
		     ('dotted',              (0, (1, 5))),
		     ('densely dotted',      (0, (1, 1))),

		     # ('loosely dashed',      (0, (5, 10))),
		     ('dashed',              (0, (5, 5))),
		     ('densely dashed',      (0, (5, 1))),

		     # ('loosely dashdotted',  (0, (3, 10, 1, 10))),
		     ('dashdotted',          (0, (3, 5, 1, 5))),
		     ('densely dashdotted',  (0, (3, 1, 1, 1))),

		     # ('loosely dashdotdotted', (0, (3, 10, 1, 10, 1, 10))),
		     ('dashdotdotted',         (0, (3, 5, 1, 5, 1, 5))),
		     ('densely dashdotdotted', (0, (3, 1, 1, 1, 1, 1)))])
		styles = list(styles.values())[-1::-1]
		# styles = [';',':','-.','--','-']

		# create output directory for plots
		Path(plot_path).mkdir(parents=True, exist_ok=True)