Plotly

public enum Plotly

Color scales imported from Plotly.js and Plotly.py.

JavaScript

  • Sequential color scale.

    Note

    Original name is Greys.

    Declaration

    Swift

    public static let grays: ColorScale
  • Sequential color scale.

    Note

    Original name is YlGnBu.

    Declaration

    Swift

    public static let blueGreenYellow: ColorScale
  • Sequential color scale.

    Note

    Original name is Greens.

    Declaration

    Swift

    public static let greens: ColorScale
  • Sequential color scale.

    Note

    Original name is YlOrRd.

    Declaration

    Swift

    public static let redOrangeYellow: ColorScale
  • Sequential color scale.

    Note

    Original name is Bluered.

    Declaration

    Swift

    public static let blueRed: ColorScale
  • Sequential color scale.

    Note

    Original name is RdBu.

    Declaration

    Swift

    public static let redBlue: ColorScale
  • Sequential color scale for non-negative numeric values.

    Note

    Original name is Reds.

    Declaration

    Swift

    public static let reds: ColorScale
  • Sequential color scale for non-positive numeric values.

    Note

    Original name is Blues.

    Declaration

    Swift

    public static let blues: ColorScale
  • Diverging color scale.

    Note

    Original name is Picnic.

    Declaration

    Swift

    public static let picnic: ColorScale
  • Sequential color scale.

    Note

    Original name is Rainbow.

    Declaration

    Swift

    public static let rainbow: ColorScale
  • Diverging color scale.

    Note

    Original name is Portland.

    Declaration

    Swift

    public static let portland: ColorScale
  • jet

    Sequential color scale similar to Matlab 2014.

    Note

    Original name is Jet.

    Declaration

    Swift

    public static let jet: ColorScale
  • hot

    Sequential color scale.

    Note

    Original name is Hot.

    Declaration

    Swift

    public static let hot: ColorScale
  • Sequential color scale.

    Note

    Original name is Blackbody.

    Declaration

    Swift

    public static let blackBody: ColorScale
  • Sequential color scale.

    Note

    Original name is Earth.

    Declaration

    Swift

    public static let earth: ColorScale
  • Sequential color scale.

    Note

    Original name is Electric.

    Declaration

    Swift

    public static let electric: ColorScale
  • Sequential color scale originating from Matplotlib.

    Note

    Original name is Viridis.

    Declaration

    Swift

    public static let viridis: ColorScale
  • Sequential color scale.

    Note

    Original name is Cividis.

    Declaration

    Swift

    public static let cividis: ColorScale

Python

  • Default sequential color scale for figures created with Plotly 3.x.

    Note

    Original name is Plotly3.

    Declaration

    Swift

    public static let plotly3: ColorScale
  • Sequential color scale originating from Matplotlib.

    Note

    Original name is Inferno.

    Declaration

    Swift

    public static let inferno: ColorScale
  • Sequential color scale originating from Matplotlib.

    Note

    Original name is Magma.

    Declaration

    Swift

    public static let magma: ColorScale
  • Sequential color scale originating from Matplotlib.

    Note

    Original name is Plasma.

    Declaration

    Swift

    public static let plasma: ColorScale
  • Cyclical color scale.

    Declaration

    Swift

    public static let twilight: ColorScale
  • Cyclical color scale.

    Declaration

    Swift

    public static let iceFire: ColorScale
  • Cyclical color scale.

    Declaration

    Swift

    public static let edge: ColorScale
  • hsv

    Cyclical color scale.

    Declaration

    Swift

    public static let hsv: ColorScale
  • Cyclical color scale.

    Declaration

    Swift

    public static let magentaRedYellowBlue: ColorScale
  • Cyclical color scale.

    Declaration

    Swift

    public static let magentaYellowGreenBlue: ColorScale
  • Creates a figure that shows all Plotly color scales next to each other.

    Declaration

    Swift

    public static func swatch() -> Figure