@@ -1490,7 +1490,8 @@ def _make_linear_colorscale(colors):
14901490 @staticmethod
14911491 def create_2D_density (x , y , colorscale = 'Earth' , ncontours = 20 ,
14921492 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 ):
14941495 """
14951496 Returns figure for a 2D density plot
14961497
@@ -1507,6 +1508,7 @@ def create_2D_density(x, y, colorscale='Earth', ncontours=20,
15071508 :param (str) hist_color: the color of the plotted histograms
15081509 :param (str) point_color: the color of the scatter points
15091510 :param (str) point_size: the color of the scatter points
1511+ :param (str) title: set the title for the plot
15101512 :param (float) height: the height of the chart
15111513 :param (float) width: the width of the chart
15121514
@@ -1602,7 +1604,7 @@ def create_2D_density(x, y, colorscale='Earth', ncontours=20,
16021604 layout = graph_objs .Layout (
16031605 showlegend = False ,
16041606 autosize = False ,
1605- title = 'Love' ,
1607+ title = title ,
16061608 height = height ,
16071609 width = width ,
16081610 xaxis = dict (
0 commit comments