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

Plotly causes errors in utilities.py #1013

Closed
BJWiley233 opened this issue Nov 12, 2020 · 2 comments
Closed

Plotly causes errors in utilities.py #1013

BJWiley233 opened this issue Nov 12, 2020 · 2 comments

Comments

@BJWiley233
Copy link

Hi,
When I try to run plotly output with the heatmap I get error in utilities.py TypeError: 'map' object is not subscriptable because you are trying to subscript a map which is not allowed in Python 3. We need to update this if using Python 3 to C = list(map(np.uint8, np.array(cmap(k * h)[:3]) * 255))

In addition may want to look at matplotlib deprecation warning at correlation.py:306


MatplotlibDeprecationWarning:

You are modifying the state of a globally registered colormap. In future versions, you will not be able to modify a registered colormap in-place. To remove this warning, you can make a copy of the colormap first. cmap = copy.copy(mpl.cm.get_cmap("jet"))
@BJWiley233
Copy link
Author

Also with the scatterplot for plotly you can no longer set at line 424 in correlation.py the trace using the code fig['data'] = data. You have to use the add_traces() function as indicated at link below as in fig.add_traces(data)

https://community.plotly.com/t/heatmap-with-dendrogram-not-working/11634

LeilyR pushed a commit that referenced this issue Nov 16, 2020
@LeilyR LeilyR mentioned this issue Nov 16, 2020
LeilyR added a commit that referenced this issue Jan 20, 2021
@LeilyR
Copy link
Contributor

LeilyR commented Jan 20, 2021

it has been taken care of in #1018. already in develop.

@LeilyR LeilyR closed this as completed Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants