Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About UMatrix visualization (question) #172

Open
rosaguilar opened this issue Sep 14, 2023 · 0 comments
Open

About UMatrix visualization (question) #172

rosaguilar opened this issue Sep 14, 2023 · 0 comments

Comments

@rosaguilar
Copy link

I am modelling a time series with a certain number of points (rows). I want to plot the UMatrix but filter the labels to specify only those belonging to a certain year. I know how many rows are per year. So, does passing a range to the _view_matrix make sense?
My code only has a little modification as follows:
if labels is not None:
for label, col, row in zip(_filter_array_local(som, labels, zoom),bmu_coords[:, 0], bmu_coords[:, 1]):
line 456--> if label is not None and label in label_range:
axes[i].annotate(label, xy=(col, row), xytext=(10, -5),
textcoords='offset points', ha='left', va='bottom',
bbox=dict(boxstyle='round,pad=0.3', fc='white', alpha=0.8))

Where label_range is the range of rows I want to plot.
Does it make sense? I am generating several plots, and effectively, low numbers are displayed corresponding to the first years (the numpy array is ordered per years).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant