mnultitool.plot package¶
Submodules¶
mnultitool.plot.plot module¶
Functions:
|
Plots a colormap presenting matrix A and a colorbar presenting vector b, with a legend of the range of values |
|
Plots a vector colorbar in a transposed form, with an additional legend of values, if needed |
-
mnultitool.plot.plot.
plotMatrixAndVector
(A, b, bigTitle='Visualization of matrix A & vector b', matrixTitle='Matrix A', vectorTitle='Vector b', figsize=None)¶ Plots a colormap presenting matrix A and a colorbar presenting vector b, with a legend of the range of values
- Parameters
A (
ndarray
) – the matrix to be presentedb (
ndarray
) – the vector to be presented; note: the vector will be copied & transposed for visualizationbigTitle (
str
) – the suptitle of the figure, optionalmatrixTitle (
str
) – the title of the subplot of the matrix, optionalvectorTitle (
str
) – the title of the subplot of the vector, optionalfigsize – the size of the plot, optional
- Return type
Any
,Axes
,Axes
]]- Returns
a tuple containing the figure and a tuple of the two axes
-
mnultitool.plot.plot.
plotVector
(title, ax, vec, showLegendColorbar=True)¶ Plots a vector colorbar in a transposed form, with an additional legend of values, if needed
- Parameters
title (
str
) – the title of the figure (or axes, if on a subplot)ax – Axes object
vec (
ndarray
) – the vectorshowLegendColorbar (
bool
) – whether to show the legend colorbar, optional
- Return type
None