@@ -38,6 +38,9 @@ module Trace =
38
38
let initContour ( applyStyle : Trace -> Trace ) =
39
39
Trace( " contour" ) |> applyStyle
40
40
41
+ /// Init trace for 2d-histogram
42
+ let initHistogram2d ( applyStyle : Trace -> Trace ) =
43
+ Trace( " histogram2d" ) |> applyStyle
41
44
42
45
/// Functions provide the styling of the Chart objects
43
46
type TraceStyle () =
@@ -520,3 +523,90 @@ module Trace =
520
523
)
521
524
522
525
526
+ // Applies the styles of histogram to TraceObjects
527
+
528
+
529
+
530
+ // let mutable _connectgaps: bool option = None
531
+ // let mutable _histfunc: _ option = None
532
+ // let mutable _histnorm: _ option = None
533
+ // let mutable _autobinx: bool option = None
534
+ // let mutable _nbinsx: int option = None
535
+ // let mutable _xbins: Xbins option = None
536
+ // let mutable _autobiny: bool option = None
537
+ // let mutable _nbinsy: int option = None
538
+ // let mutable _ybins: Ybins option = None
539
+
540
+ static member Histogram2d
541
+ (
542
+ ? Z : seq < #seq < #IConvertible >>,
543
+ ? X : seq < #IConvertible >,
544
+ ? Y : seq < #IConvertible >,
545
+ ? X0 ,
546
+ ? dX ,
547
+ ? Y0 ,
548
+ ? dY ,
549
+ ? xType ,
550
+ ? yType ,
551
+ ? xAxis ,
552
+ ? yAxis ,
553
+ ? Zsrc ,
554
+ ? Xsrc ,
555
+ ? Ysrc ,
556
+
557
+ ? Marker : Marker ,
558
+ ? Orientation ,
559
+
560
+ ? Xgap ,
561
+ ? Ygap ,
562
+ ? Transpose ,
563
+ ? zAuto ,
564
+ ? zMin ,
565
+ ? zMax ,
566
+ ? Colorscale ,
567
+ ? Autocolorscale ,
568
+ ? Reversescale ,
569
+ ? Showscale ,
570
+ ? zSmooth ,
571
+ ? Colorbar
572
+
573
+ ) =
574
+ ( fun ( histogram2d :( 'T : > Trace )) ->
575
+
576
+ Z |> DynObj.setValueOpt histogram2d " z"
577
+ X |> DynObj.setValueOpt histogram2d " x"
578
+ Y |> DynObj.setValueOpt histogram2d " y"
579
+ X0 |> DynObj.setValueOpt histogram2d " x0"
580
+ dX |> DynObj.setValueOpt histogram2d " dx"
581
+ Y0 |> DynObj.setValueOpt histogram2d " y0"
582
+ dY |> DynObj.setValueOpt histogram2d " dy"
583
+ xType |> DynObj.setValueOpt histogram2d " xtype"
584
+ yType |> DynObj.setValueOpt histogram2d " ytype"
585
+ xAxis |> DynObj.setValueOpt histogram2d " xaxis"
586
+ yAxis |> DynObj.setValueOpt histogram2d " yaxis"
587
+ Zsrc |> DynObj.setValueOpt histogram2d " zsrc"
588
+ Xsrc |> DynObj.setValueOpt histogram2d " xsrc"
589
+ Ysrc |> DynObj.setValueOpt histogram2d " ysrc"
590
+
591
+ Orientation |> DynObj.setValueOptBy histogram2d " orientation" StyleParam.Orientation.convert
592
+
593
+ Xgap |> DynObj.setValueOpt histogram2d " xgap"
594
+ Ygap |> DynObj.setValueOpt histogram2d " ygap"
595
+ Transpose |> DynObj.setValueOpt histogram2d " transpose"
596
+ zAuto |> DynObj.setValueOpt histogram2d " zauto"
597
+ zMin |> DynObj.setValueOpt histogram2d " zmin"
598
+ zMax |> DynObj.setValueOpt histogram2d " zmax"
599
+ Colorscale |> DynObj.setValueOptBy histogram2d " colorscale" StyleParam.Colorscale.convert
600
+ Autocolorscale |> DynObj.setValueOpt histogram2d " autocolorscale"
601
+ Reversescale |> DynObj.setValueOpt histogram2d " reversescale"
602
+ Showscale |> DynObj.setValueOpt histogram2d " showscale"
603
+ zSmooth |> DynObj.setValueOptBy histogram2d " zsmooth" StyleParam.SmoothAlg.convert
604
+ Colorbar |> DynObj.setValueOpt histogram2d " colorbar"
605
+
606
+ // Update
607
+ Marker |> DynObj.setValueOpt histogram2d " marker"
608
+
609
+ // out ->
610
+ histogram2d
611
+ )
612
+
0 commit comments