Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do I make a heat map using the seaborn library in python when I have separate arrays of data? For example, lets say I

How do I make a heat map using the seaborn library in python when I have separate arrays of data? For example, lets say I have two arrays:

xdat = np.linspace(0,10,10)

ydat = np.linspace(0,10,10)

And I want these to be my x and y data axes. And I want the color of the heat map correlated to some function:

def f(A,B):

return A*B

zvals = f(xdat,ydat)

So I want the x and y axis to be xdat and y dat, and the color corresponding to the value of f at those xdat and y dat. Suggestions?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

=+4 What are non-union workers representations?

Answered: 1 week ago

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago