Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
@@ -2,7 +2,7 @@ import plotly.graph_objects as go
|
|
2 |
import plotly.express as px
|
3 |
import numpy as np
|
4 |
|
5 |
-
|
6 |
X, Y = np.meshgrid(trait, trait)
|
7 |
f_projection = (np.min(fitness) - 0.5) * np.ones(fitness.shape)
|
8 |
axis = dict(
|
|
|
2 |
import plotly.express as px
|
3 |
import numpy as np
|
4 |
|
5 |
+
def plot_3D_invfitness(trait, fitness, resident, range, color="RdBu"):
|
6 |
X, Y = np.meshgrid(trait, trait)
|
7 |
f_projection = (np.min(fitness) - 0.5) * np.ones(fitness.shape)
|
8 |
axis = dict(
|