imshow: alternative to heatmap for easy facetgrid implementation? #206
coxipi
announced in
Announcements
Replies: 1 comment
-
I realize
I'm investigating... EDIT: Replacing all my dimensions on ticks by integers, I can get no error and this: ds2 = ds.copy()
for d in [ "bc", "multivar"]:
ds2[d] = np.arange(ds2[d].size)
fg.gridmap(ds2, plot_kw = dict(col="period", row="step",figsize=(14,6)),divergent=0.5) So I don't think this use-case was planned for, correct? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was trying to use
fg.heatmap
in the same way asfg.gridmap
, supplyingplot_kw = dict(row="experiment", col="period")
, but it seems in this case we need a two-dimensional dataset, already prepared for asns.heatmap
call, correct? Is the idea of a grid of heatmaps something that was of interest for other people? How do we proceed withfiganos
in this case?An alternative can be to work:
xarray.DataArray.imshow
. I don't know if we lose many useful features fromsns.heatmap
, but with just a few lines of code I was already satisfied with the result:(in the bottom plot, I am missing data, tha's why there are blank lines)

Beta Was this translation helpful? Give feedback.
All reactions