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

Confusing heatmap data input #175

Closed
andrewkhardy opened this issue Jul 30, 2021 · 2 comments
Closed

Confusing heatmap data input #175

andrewkhardy opened this issue Jul 30, 2021 · 2 comments

Comments

@andrewkhardy
Copy link

andrewkhardy commented Jul 30, 2021

I find the documentation for def heatmap(data, scale, vmin=None, vmax=None, cmap=None, ax=None, scientific=False, style='triangular', colorbar=True, permutation=None, use_rgba=False, cbarlabel=None, cb_kwargs=None): quite confusing.

If I have a dictionary (or Pandas dataframe) with four columns, where the first three are i,j,k such that i+j+k = scale and the fourth is my colormap, it seems there should be an obvious way to input heatmap(i,j,k, data) like how Plottly does for contour plots. However, I don't see how to format my dictionary to match the requirements of

data: dictionary
        A dictionary mapping the i, j polygon to the heatmap color, where
        i + j + k = scale.
@andrewkhardy
Copy link
Author

Why did you close this?

@marcharper
Copy link
Owner

(1) There are several explicit examples in the documentation / examples notebook on how to input data to the heatmap functions
(2) This is the wrong place to ask for help about transforming data from pandas dataframes to other formats, try stack overflow or just searching
(3) There's already another issue requesting essentially this (#109)

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

2 participants