import warnings

import matplotlib as mpl

from pygenomeviz.genomeviz import GenomeViz
from pygenomeviz.parser import Genbank, Gff
from pygenomeviz.utils import load_dataset, load_example_gff

warnings.filterwarnings("ignore")

__version__ = "0.4.0"

__all__ = [
    "GenomeViz",
    "Genbank",
    "Gff",
    "load_dataset",
    "load_example_gff",
]

# Setting matplotlib rc(runtime configuration) parameters
# https://matplotlib.org/stable/tutorials/introductory/customizing.html
mpl_rc_params = {
    # Legend
    "legend.loc": "upper left",  # Default: best
    "legend.frameon": False,  # Default: True
    "legend.handlelength": 1,  # Default: 2.0
    "legend.handleheight": 1,  # Default: 0.7
    # Savefig
    "savefig.bbox": "tight",  # Default: None
    "savefig.pad_inches": 0.5,  # Default: 0.1
    # SVG
    "svg.fonttype": "none",
}
mpl.rcParams.update(mpl_rc_params)
