Internal utility functions
ColorDefinitions
[source]¶Bases: object
A class storing all color definitions for the various plots for fast and easy handling
AA_ENCODING
= {‘A’: ‘#882D17’, ‘C’: ‘#F3C300’, ‘E’: ‘#F38400’, ‘D’: ‘#875692’, ‘G’: ‘#BE0032’, ‘F’: ‘#A1CAF1’, ‘I’: ‘#848482’, ‘H’: ‘#C2B280’, ‘K’: ‘#008856’, ‘M’: ‘#0067A5’, ‘L’: ‘#E68FAC’, ‘N’: ‘#F99379’, ‘Q’: ‘#F6A600’, ‘P’: ‘#604E97’, ‘S’: ‘#DCD300’, ‘R’: ‘#B3446C’, ‘T’: ‘#8DB600’, ‘W’: ‘#E25822’, ‘V’: ‘#654522’, ‘Y’: ‘#2B3D26’, ‘X’: ‘#000000’}¶FACTOR1
= ‘#B5DD2B’¶GENERAL
= ‘#000000’¶L20CUTOFF
= ‘#B5DD2B’¶L5CUTOFF
= ‘#3F4587’¶MATCH
= ‘#0F0B2C’¶MISMATCH
= ‘#DC4869’¶PRECISION50
= ‘#3F4587’¶STRUCTURAL
= ‘#D8D6D6’¶find_minima
(data, order=1)[source]¶Find the minima in a 1-D list
Parameters: | |
---|---|
Returns: | A list of indices for minima |
Return type: |
Warning
For multi-dimensional problems, see argrelmin()
.
Raises: |
|
---|
get_adjusted_aspect
(ax, aspect_ratio)[source]¶Adjust the aspect ratio
Parameters: | |
---|---|
Returns: | The required aspect ratio to achieve the desired one |
Return type: |
Warning
This function only works for non-logarithmic axes.