Plot
Plot functions for somap.Som objects.
plot(som, *args, **kwargs)
Returns a graph/plot object of the SOM.
Extra args depend on the chosen backend.
See .plot_backends.{name_of_backend}
for details.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
som |
AbstractSom
|
Self-Organizing Map as a Som object. |
required |
args |
Positional arguments passed to the |
()
|
|
kwargs |
Keyword arguments passed to the |
{}
|
Source code in src/somap/plot.py
save_plot(som, filename, *args, **kwargs)
Saves a graph/plot image of the SOM.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
som |
AbstractSom
|
Self-Organizing Map as a Som object. |
required |
filename |
str | IO
|
File in which to write the chart. |
required |
args |
Positional arguments passed to the |
()
|
|
kwargs |
Keyword arguments passed to the |
{}
|