# Path: photometry/plots.py
# def plots_interactive(backend=('Qt5Agg', 'MacOSX', 'Qt4Agg', 'Qt5Cairo', 'TkAgg')):
# def plots_noninteractive():
# def plot_image(image, ax=None, scale='log', cmap=None, origin='lower', xlabel=None,
# 	ylabel=None, cbar=None, clabel='Flux ($e^{-}s^{-1}$)', cbar_ticks=None,
# 	cbar_ticklabels=None, cbar_pad=None, cbar_size='5%', title=None,
# 	percentile=95.0, vmin=None, vmax=None, offset_axes=None, color_bad='k', **kwargs):
# def plot_image_fit_residuals(fig, image, fit, residuals=None, percentile=95.0):
# def plot_outline(img, ax=None, threshold=0.5, **kwargs):
# def save_figure(path, fig=None, fmt='png', **kwargs):


import os.path
import h5py
import numpy as np
import sys
from tqdm import trange
from photometry.plots import plt, plots_interactive, plot_image
from matplotlib import animation

				ax.set_title(f"{dset:s} - {d[k,0]:f} - {d[k,2]:f}")

				writer.grab_frame()

		plt.close(fig)

	dsets = np.arange(N)

	fig, ax = plt.subplots()
	ax.plot(dsets, d[:,0], label='5')
	ax.plot(dsets, d[:,1], label='20')
	ax.plot(dsets, d[:,2], label='50')
	ax.plot(dsets, d[:,3], label='80')
	ax.plot(dsets, d[:,4], label='95')
	ax.plot(dsets, d[:,5], label='99')
	ax.set_ylabel('Rel. Difference')
	ax.set_xlabel('Dataset')
	plt.legend()

	fig, ax = plt.subplots()
	ax.plot(dsets, stdimg)
	ax.plot(dsets, stdimg_nocorner, label='No corner')
	ax.set_xlabel('Dataset')
	plt.legend()

	fig, ax = plt.subplots()
	ax.plot(dsets, stdimg / stdimg_nocorner)
	ax.set_xlabel('Dataset')


# Path: photometry/plots.py
# def plots_interactive(backend=('Qt5Agg', 'MacOSX', 'Qt4Agg', 'Qt5Cairo', 'TkAgg')):
# def plots_noninteractive():
# def plot_image(image, ax=None, scale='log', cmap=None, origin='lower', xlabel=None,
# 	ylabel=None, cbar=None, clabel='Flux ($e^{-}s^{-1}$)', cbar_ticks=None,
# 	cbar_ticklabels=None, cbar_pad=None, cbar_size='5%', title=None,
# 	percentile=95.0, vmin=None, vmax=None, offset_axes=None, color_bad='k', **kwargs):
# def plot_image_fit_residuals(fig, image, fit, residuals=None, percentile=95.0):
# def plot_outline(img, ax=None, threshold=0.5, **kwargs):
# def save_figure(path, fig=None, fmt='png', **kwargs):


# Path: notes/paper_background_compare.py
import os.path
import h5py
import numpy as np
import sys
from tqdm import trange
from photometry.plots import plt, plots_interactive, plot_image
from matplotlib import animation


				ax.set_title(f"{dset:s} - {d[k,0]:f} - {d[k,2]:f}")

				writer.grab_frame()

		plt.close(fig)

	dsets = np.arange(N)

	fig, ax = plt.subplots()
	ax.plot(dsets, d[:,0], label='5')
	ax.plot(dsets, d[:,1], label='20')
	ax.plot(dsets, d[:,2], label='50')
	ax.plot(dsets, d[:,3], label='80')
	ax.plot(dsets, d[:,4], label='95')
	ax.plot(dsets, d[:,5], label='99')
	ax.set_ylabel('Rel. Difference')
	ax.set_xlabel('Dataset')
	plt.legend()

	fig, ax = plt.subplots()
	ax.plot(dsets, stdimg)
	ax.plot(dsets, stdimg_nocorner, label='No corner')
	ax.set_xlabel('Dataset')
	plt.legend()

	fig, ax = plt.subplots()
	ax.plot(dsets, stdimg / stdimg_nocorner)
	ax.set_xlabel('Dataset')


	plt.show()