@@ -1490,7 +1490,8 @@ def _make_linear_colorscale(colors):
1490
1490
@staticmethod
1491
1491
def create_2D_density (x , y , colorscale = 'Earth' , ncontours = 20 ,
1492
1492
hist_color = (0 , 0 , 0.5 ), point_color = (0 , 0 , 0.5 ),
1493
- point_size = 2 , height = 600 , width = 600 ):
1493
+ point_size = 2 , title = '2D Density Plot' ,
1494
+ height = 600 , width = 600 ):
1494
1495
"""
1495
1496
Returns figure for a 2D density plot
1496
1497
@@ -1507,6 +1508,7 @@ def create_2D_density(x, y, colorscale='Earth', ncontours=20,
1507
1508
:param (str) hist_color: the color of the plotted histograms
1508
1509
:param (str) point_color: the color of the scatter points
1509
1510
:param (str) point_size: the color of the scatter points
1511
+ :param (str) title: set the title for the plot
1510
1512
:param (float) height: the height of the chart
1511
1513
:param (float) width: the width of the chart
1512
1514
@@ -1602,7 +1604,7 @@ def create_2D_density(x, y, colorscale='Earth', ncontours=20,
1602
1604
layout = graph_objs .Layout (
1603
1605
showlegend = False ,
1604
1606
autosize = False ,
1605
- title = 'Love' ,
1607
+ title = title ,
1606
1608
height = height ,
1607
1609
width = width ,
1608
1610
xaxis = dict (
0 commit comments