@@ -612,8 +612,6 @@ type Options() =
612
612
? Label0 ,
613
613
? dLabel ,
614
614
? Marker ,
615
- ? Text , //: seq<#IConvertible>,
616
- ? Textposition ,//: StyleOption.TextPosition ,
617
615
? Scalegroup ,
618
616
? Textinfo ,
619
617
? Textfont : FontOptions ,
@@ -627,8 +625,6 @@ type Options() =
627
625
? Pull : float ,
628
626
? Labelssrc : string ,
629
627
? Valuessrc : string ,
630
- ? Textsrc : string ,
631
- ? Textpositionsrc ,
632
628
? Pullsrc
633
629
634
630
) =
@@ -638,10 +634,8 @@ type Options() =
638
634
Labels |> Option.iter pie.set_ labels
639
635
Label0 |> Option.iter pie.set_ label0
640
636
dLabel |> Option.iter pie.set_ dlabel//-- temporarily
641
- // Text |> Option.iter pie.set_text
642
637
Scalegroup |> Option.iter pie.set_ scalegroup
643
- Textinfo |> Option.iter pie.set_ textinfo
644
- // Textposition |> Option.iter (StyleOption.TextPosition.toString >> pie.set_textposition) -- temporarily
638
+ Textinfo |> Option.iter pie.set_ textinfo
645
639
646
640
Domain |> Option.iter pie.set_ domain
647
641
Hole |> Option.iter pie.set_ hole
@@ -651,8 +645,6 @@ type Options() =
651
645
Pull |> Option.iter pie.set_ pull
652
646
Labelssrc |> Option.iter pie.set_ labelssrc
653
647
Valuessrc |> Option.iter pie.set_ valuessrc
654
- // Textsrc |> Option.iter pie.set_textsrc -- temporarily
655
- // Textpositionsrc |> Option.iter pie.set_textpositionsrc -- temporarily
656
648
Pullsrc |> Option.iter pie.set_ pullsrc
657
649
658
650
// Update
@@ -715,29 +707,10 @@ type Options() =
715
707
)
716
708
717
709
718
- // let mutable _z : seq<#seq<#System.IConvertible>> option = None
719
- // let mutable _x : seq<#System.IConvertible> option = None
720
- // let mutable _y : seq<#System.IConvertible> option = None
721
- // let mutable _transpose : bool option = None
722
- // let mutable _zauto : bool option = None
723
- // let mutable _zmin : float option = None
724
- // let mutable _zmax : float option = None
725
- // let mutable _colorscale : _ option = None
726
- // let mutable _autocolorscale : bool option = None
727
- // let mutable _reversescale : bool option = None
728
- // let mutable _showscale : bool option = None
729
- // let mutable _zsmooth : _ option = None
730
- // let mutable _colorbar : Colorbar option = None
731
- // let mutable _zsrc : string option = None
732
- // let mutable _xsrc : string option = None
733
- // let mutable _ysrc : string option = None
734
-
735
- // // Applies the styles to TraceObjects with IColormap interface
710
+ // Applies the styles to TraceObjects with IColormap interface
736
711
static member IColormap
737
712
(
738
- ? Z : seq < #seq < #IConvertible >>,
739
- ? X : seq < #IConvertible >,
740
- ? Y : seq < #IConvertible >,
713
+
741
714
? Transpose ,
742
715
? zAuto ,
743
716
? zMin ,
@@ -747,16 +720,11 @@ type Options() =
747
720
? Reversescale ,
748
721
? Showscale ,
749
722
? zSmooth ,
750
- ? Colorbar ,
751
- ? Zsrc ,
752
- ? Xsrc ,
753
- ? Ysrc
723
+ ? Colorbar
724
+
754
725
) =
755
726
( fun ( colorMap :( 'T : > IColormap )) ->
756
-
757
- Z |> Option.iter colorMap.set_ z
758
- X |> Option.iter colorMap.set_ x
759
- Y |> Option.iter colorMap.set_ y
727
+
760
728
Transpose |> Option.iter colorMap.set_ transpose
761
729
zAuto |> Option.iter colorMap.set_ zauto
762
730
zMin |> Option.iter colorMap.set_ zmin
@@ -766,94 +734,99 @@ type Options() =
766
734
Reversescale |> Option.iter colorMap.set_ reversescale
767
735
Showscale |> Option.iter colorMap.set_ showscale
768
736
zSmooth |> Option.iter ( StyleOption.SmoothAlg.convert >> colorMap.set_ zsmooth)
769
- Colorbar |> Option.iter colorMap.set_ colorbar
770
- Zsrc |> Option.iter colorMap.set_ zsrc
771
- Xsrc |> Option.iter colorMap.set_ xsrc
772
- Ysrc |> Option.iter colorMap.set_ ysrc
737
+ Colorbar |> Option.iter colorMap.set_ colorbar
773
738
774
739
// out ->
775
740
colorMap
776
741
)
777
-
778
-
779
-
780
- // Applies the styles to Heatmap() and Contour()
781
- static member Colormap
742
+
743
+ // Applies the styles to TraceObjects with IMapZ interface
744
+ static member IMapZ
782
745
(
746
+ ? Z : seq < #seq < #IConvertible >>,
747
+ ? X : seq < #IConvertible >,
748
+ ? Y : seq < #IConvertible >,
783
749
? X0 ,
784
750
? dX ,
785
751
? Y0 ,
786
752
? dY ,
787
753
? xType ,
788
754
? yType ,
789
- ? Connectgaps ,
790
755
? xAxis ,
791
- ? yAxis
756
+ ? yAxis ,
757
+ ? Zsrc ,
758
+ ? Xsrc ,
759
+ ? Ysrc
792
760
) =
793
761
( fun ( colorMap :( 'T : > Colormap )) ->
794
-
762
+
763
+ Z |> Option.iter colorMap.set_ z
764
+ X |> Option.iter colorMap.set_ x
765
+ Y |> Option.iter colorMap.set_ y
795
766
X0 |> Option.iter colorMap.set_ x0
796
767
dX |> Option.iter colorMap.set_ dx
797
768
Y0 |> Option.iter colorMap.set_ y0
798
769
dY |> Option.iter colorMap.set_ dy
799
770
xType |> Option.iter colorMap.set_ xtype
800
- yType |> Option.iter colorMap.set_ ytype
801
- Connectgaps |> Option.iter colorMap.set_ connectgaps
771
+ yType |> Option.iter colorMap.set_ ytype
802
772
xAxis |> Option.iter colorMap.set_ xaxis
803
773
yAxis |> Option.iter colorMap.set_ yaxis
774
+ Zsrc |> Option.iter colorMap.set_ zsrc
775
+ Xsrc |> Option.iter colorMap.set_ xsrc
776
+ Ysrc |> Option.iter colorMap.set_ ysrc
804
777
805
778
// out ->
806
779
colorMap
807
780
)
808
781
809
782
810
- // Applies the styles to Histogram2d()
811
- static member Histogram2d
812
- (
813
- ? TraceOptions : TraceOptions < _ >,
814
- ? Y ,
815
- ? X ,
816
- ? X0 ,
817
- ? Y0 ,
818
- ? Whiskerwidth ,
819
- ? Boxpoints ,
820
- ? Boxmean ,
821
- ? Jitter ,
822
- ? Pointpos ,
823
- ? Orientation ,
824
- ? Line : LineOptions ,
825
- ? Marker : MarkerOptions ,
826
- ? Fillcolor ,
827
- ? xAxis ,
828
- ? yAxis ,
829
- ? Ysrc ,
830
- ? Xsrc
831
-
832
- ) =
833
- ( fun ( boxPlot :( 'T : > Box )) ->
834
-
835
- Y |> Option.iter boxPlot.set_ y
836
- X |> Option.iter boxPlot.set_ x
837
- X0 |> Option.iter boxPlot.set_ x0
838
- Y0 |> Option.iter boxPlot.set_ y0
839
- Whiskerwidth |> Option.iter boxPlot.set_ whiskerwidth
840
- Boxpoints |> Option.iter ( StyleOption.Boxpoints.convert >> boxPlot.set_ boxpoints)
841
- Boxmean |> Option.iter ( StyleOption.BoxMean.convert >> boxPlot.set_ boxmean)
842
- Jitter |> Option.iter boxPlot.set_ jitter
843
- Pointpos |> Option.iter boxPlot.set_ pointpos
844
- Orientation |> Option.iter ( StyleOption.Orientation.convert >> boxPlot.set_ orientation)
845
- Fillcolor |> Option.iter boxPlot.set_ fillcolor
846
- xAxis |> Option.iter boxPlot.set_ xaxis
847
- yAxis |> Option.iter boxPlot.set_ yaxis
848
- Ysrc |> Option.iter boxPlot.set_ ysrc
849
- Xsrc |> Option.iter boxPlot.set_ xsrc
850
- // Update
851
- Line |> Option.iter ( updatePropertyValueAndIgnore boxPlot <@ boxPlot.line @>)
852
- Marker |> Option.iter ( updatePropertyValueAndIgnore boxPlot <@ boxPlot.marker @>)
853
-
854
- // out ->
855
- boxPlot |> ( optApply TraceOptions)
856
- )
783
+ // // Applies the styles to Histogram2d()
784
+ // static member Histogram2d
785
+ // (
786
+ // ?TraceOptions:TraceOptions<_>,
787
+ // ?Y,
788
+ // ?X,
789
+ // ?X0,
790
+ // ?Y0,
791
+ // ?Whiskerwidth,
792
+ // ?Boxpoints,
793
+ // ?Boxmean,
794
+ // ?Jitter,
795
+ // ?Pointpos,
796
+ // ?Orientation,
797
+ // ?Line : LineOptions,
798
+ // ?Marker : MarkerOptions,
799
+ // ?Fillcolor,
800
+ // ?xAxis,
801
+ // ?yAxis,
802
+ // ?Ysrc,
803
+ // ?Xsrc
804
+ //
805
+ // ) =
806
+ // (fun (boxPlot:('T :> Box)) ->
807
+ //
808
+ // Y |> Option.iter boxPlot.set_y
809
+ // X |> Option.iter boxPlot.set_x
810
+ // X0 |> Option.iter boxPlot.set_x0
811
+ // Y0 |> Option.iter boxPlot.set_y0
812
+ // Whiskerwidth |> Option.iter boxPlot.set_whiskerwidth
813
+ // Boxpoints |> Option.iter (StyleOption.Boxpoints.convert >> boxPlot.set_boxpoints)
814
+ // Boxmean |> Option.iter (StyleOption.BoxMean.convert >> boxPlot.set_boxmean)
815
+ // Jitter |> Option.iter boxPlot.set_jitter
816
+ // Pointpos |> Option.iter boxPlot.set_pointpos
817
+ // Orientation |> Option.iter (StyleOption.Orientation.convert >> boxPlot.set_orientation)
818
+ // Fillcolor |> Option.iter boxPlot.set_fillcolor
819
+ // xAxis |> Option.iter boxPlot.set_xaxis
820
+ // yAxis |> Option.iter boxPlot.set_yaxis
821
+ // Ysrc |> Option.iter boxPlot.set_ysrc
822
+ // Xsrc |> Option.iter boxPlot.set_xsrc
823
+ // // Update
824
+ // Line |> Option.iter (updatePropertyValueAndIgnore boxPlot <@ boxPlot.line @>)
825
+ // Marker |> Option.iter (updatePropertyValueAndIgnore boxPlot <@ boxPlot.marker @>)
826
+ //
827
+ // // out ->
828
+ // boxPlot |> (optApply TraceOptions)
829
+ // )
857
830
858
831
859
832
// ######################## 3d-Charts
0 commit comments