@@ -228,20 +228,29 @@ type Chart =
228228 )
229229 GenericChart.Chart ( trace, None)
230230
231- /// Compute the bi-dimensional histogram of two data samples.
232- static member Histogram2d ( x , y ) =
233- //let marker = Marker() |> Helpers.ApplyMarkerStyles(?color=Color)
231+
232+
233+ /// Computes the bi-dimensional histogram of two data samples and auto-determines the bin size.
234+ static member Histogram2d ( x , y ,? Name ,? HistNorm ,? HistFunc ,? Colorscale ,? Showscale ,? zSmooth ,? Colorbar ,? zAuto ,? zMin ,? zMax ,? nBinsx ,? nBinsy ,? Xbins ,? Ybins ) =
234235 let trace =
235236 Trace()
236- |> Helpers.ApplyTraceStyles( " histogram2d" , x= x, y= y //?labels=labels,?name=Name,marker=marker,hole=hole
237-
238- // hoverinfo: 'label+percent+name',
239- // textinfo: 'none'
240- // text
241- // textposition
242- )
237+ |> Helpers.ApplyTraceStyles( " histogram2d" , x= x, y= y,? name= Name,? histnorm= HistNorm,? histfunc= HistFunc,
238+ ?colorScale= Colorscale,? showscale= Showscale,? zsmooth= zSmooth,? colorbar= Colorbar,
239+ ?zauto= zAuto,? zmin= zMin,? zmax= zMax,
240+ ?nbinsx= nBinsx,? nbinsy= nBinsy,? xbins= Xbins,? ybins= Ybins
241+ )
242+
243243 GenericChart.Chart ( trace, None)
244244
245+ /// Computes the bi-dimensional histogram of two data samples and auto-determines the bin size.
246+ static member Histogram2d ( xy ,? Name ,? HistNorm ,? HistFunc ,? Colorscale ,? Showscale ,? zSmooth ,? Colorbar ,? zAuto ,? zMin ,? zMax ,? nBinsx ,? nBinsy ,? Xbins ,? Ybins ) =
247+ let x , y = Seq.unzip xy
248+ Chart.Histogram2d( x, y,? Name= Name,? HistNorm= HistNorm,? HistFunc= HistFunc,? Colorscale= Colorscale,
249+ ?Showscale= Showscale,? Colorbar= Colorbar,? zSmooth= zSmooth,? zAuto= zAuto,? zMin= zMin,? zMax= zMax,
250+ ?nBinsx= nBinsx,? nBinsy= nBinsy,? Xbins= Xbins,? Ybins= Ybins
251+ )
252+
253+
245254
246255
247256// static member Point3D(x, y, z, ?Name,?ShowMarkers,?Showlegend,?Color,?Opacity,?Labels) =
@@ -266,7 +275,5 @@ type Chart =
266275
267276
268277
269- //pie
270- ///
271278
272279
0 commit comments