<commit_before>"""Imshow utility"""
from sequana.viz.core import VizInputSquare
from sequana.lazy import pylab
import pandas as pd


__all__ = ['imshow', 'Imshow']


class Imshow(VizInputSquare):
    """Wrapper around the matplotlib.imshow function

    Very similar to matplotlib but set interpolation to None, and aspect
    to automatic and accepts input as a dataframe, in whic case
    x and y labels are set automatically.


    .. plot::
        :width: 80%
        :include-source:

        import pandas as pd
        data = dict([ (letter,np.random.randn(10)) for letter in 'ABCDEFGHIJK'])
        df = pd.DataFrame(data)

        from sequana.viz import Imshow<commit_msg>Fix __all__ variable<commit_after>"""Imshow utility"""
from sequana.viz.core import VizInputSquare
from sequana.lazy import pylab
import pandas as pd


__all__ = ['Imshow']


class Imshow(VizInputSquare):
    """Wrapper around the matplotlib.imshow function

    Very similar to matplotlib but set interpolation to None, and aspect
    to automatic and accepts input as a dataframe, in whic case
    x and y labels are set automatically.


    .. plot::
        :width: 80%
        :include-source:

        import pandas as pd
        data = dict([ (letter,np.random.randn(10)) for letter in 'ABCDEFGHIJK'])
        df = pd.DataFrame(data)

        from sequana.viz import Imshow
{'fraction_non_alphanumeric': 0.08437270726338958, 'fraction_numerical': 0.00586940572267058, 'mean_word_length': 3.0838323353293413, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3910290', 'n_tokens_mistral': 431, 'n_tokens_neox': 406, 'n_words': 148}