Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started