for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""
Plots.
from collections import Mapping
Mapping
collections
from dataclasses import dataclass
from typing import Any
try:
import seaborn as sns
from matplotlib.axes import Axes
from matplotlib.figure import Figure
from matplotlib.gridspec import GridSpec
import umap
umap
except ImportError:
sns = None
Axes = None
Figure = None
umap = None
GridSpec = None
from mandos.analysis.io_defns import SimilarityDfLongForm
from mandos.analysis.concordance import ConcordanceDf
@dataclass(frozen=True, repr=True)
class CorrPlotter:
""""""
def plot(self, phis: SimilarityDfLongForm, psis: SimilarityDfLongForm):
If a method does not access any attributes of the class, it could also be implemented as a function or static method. This can help improve readability. For example
class Foo: def some_method(self, x, y): return x + y;
could be written as
class Foo: @classmethod def some_method(cls, x, y): return x + y;
gs = GridSpec(len(phis), len(psis))
gs
This check looks for invalid names for a range of different identifiers.
You can set regular expressions to which the identifiers must conform if the defaults do not match your requirements.
If your project includes a Pylint configuration file, the settings contained in that file take precedence.
To find out more about Pylint, please refer to their site.
for phi in phis["key"]:
phi
for psi in psis["key"]:
psi
pass
g.map_dataframe(sns.histplot, x="total_bill")
g
__all__ = ["CorrPlotter"]