Chris Brown [email protected] """ # python modules import os import sys import argparse import numpy as np from scipy import signal from itertools import cycle, product # plotting modules from matplotlib import use as mplUse mplUse('Agg') import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages plt.rcParams['pdf.fonttype'] = 42 from matplotlib import rc rc('font', **{'family': 'sans-serif', 'sans-serif': ['Helvetica']}) # ctb from ctbBio.fasta import iterate_fasta as parse_fasta def plot_two(title, subtitle, A, B, labels, legend, vert=False): """ plot with differnt y axes title = title for chart A = data for left axis [[x], [y]]
libLiFFT is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. libLiFFT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with libLiFFT. If not, see <www.gnu.org/licenses/>. """ from matplotlib import use as mplUse mplUse('Agg') from matplotlib import cm from matplotlib import pyplot as plt from matplotlib.colors import LogNorm import numpy as np import sys import argparse delta_x = 1. delta_y = 1. def drawGraphic(data, figure, xLabel = None, yLabel = None, title = None, logPlot = True, extent = None): if logPlot: norm = LogNorm() else: