Margin
public struct Margin : Encodable
Undocumented
-
Sets the left margin (in px).
Declaration
Swift
public var l: Double?
-
Sets the right margin (in px).
Declaration
Swift
public var r: Double?
-
Sets the top margin (in px).
Declaration
Swift
public var t: Double?
-
Sets the bottom margin (in px).
Declaration
Swift
public var b: Double?
-
Sets the amount of padding (in px) between the plotting area and the axis lines
Declaration
Swift
public var padding: Double?
-
Turns on/off margin expansion computations.
Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider are allowed to push the margins by defaults.
Declaration
Swift
public var autoExpand: Bool?
-
Creates
Margin
object with specified properties.Declaration
Swift
public init(l: Double? = nil, r: Double? = nil, t: Double? = nil, b: Double? = nil, padding: Double? = nil, autoExpand: Bool? = nil)
Parameters
l
Sets the left margin (in px).
r
Sets the right margin (in px).
t
Sets the top margin (in px).
b
Sets the bottom margin (in px).
padding
Sets the amount of padding (in px) between the plotting area and the axis lines
autoExpand
Turns on/off margin expansion computations.