File tree 2 files changed +10
-0
lines changed
plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/scale
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ import org.jetbrains.letsPlot.intern.Scale
23
23
* @param lablim The maximum label length (in characters) before trimming is applied.
24
24
* @param limits A Pair of Numbers specifying the data range for the scale.
25
25
* Use null to refer to default min/max.
26
+ * @param expand A numeric vector of length two giving multiplicative and additive expansion constants.
27
+ * The vector size == 1 => only multiplicative expand (and additive expand by default).
28
+ * Defaults: multiplicative = 0.05, additive = 0.
26
29
* @param naValue Missing values will be replaced with this value.
27
30
* @param format Specifies the format pattern for labels on the scale.
28
31
* @param guide Guide to use for this scale.
@@ -53,6 +56,7 @@ fun scaleContinuous(
53
56
labels : Any? = null,
54
57
lablim : Int? = null,
55
58
limits : Pair <Number ?, Number ?>? = null,
59
+ expand : Any? = null,
56
60
naValue : Any? = null,
57
61
format : String? = null,
58
62
guide : Any? = null,
@@ -66,6 +70,7 @@ fun scaleContinuous(
66
70
labels = labels,
67
71
lablim = lablim,
68
72
limits = limits,
73
+ expand = expand,
69
74
naValue = naValue,
70
75
format = format,
71
76
guide = guide,
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ import org.jetbrains.letsPlot.intern.Scale
25
25
* @param lablim The maximum label length (in characters) before trimming is applied.
26
26
* @param limits List of data values.
27
27
* A vector specifying values to display with the scale and their order in guides (axis).
28
+ * @param expand A numeric vector of length two giving multiplicative and additive expansion constants.
29
+ * The vector size == 1 => only multiplicative expand (and additive expand by default).
30
+ * Defaults: multiplicative = 0, additive = 0.2.
28
31
* @param naValue Missing values will be replaced with this value.
29
32
* @param format Specifies the format pattern for labels on the scale.
30
33
* @param guide Guide to use for this scale.
@@ -56,6 +59,7 @@ fun scaleDiscrete(
56
59
labels : Any? = null,
57
60
lablim : Int? = null,
58
61
limits : List <Any >? = null,
62
+ expand : Any? = null,
59
63
naValue : Any? = null,
60
64
format : String? = null,
61
65
guide : Any? = null,
@@ -68,6 +72,7 @@ fun scaleDiscrete(
68
72
labels = labels,
69
73
lablim = lablim,
70
74
limits = limits,
75
+ expand = expand,
71
76
naValue = naValue,
72
77
format = format,
73
78
guide = guide,
You can’t perform that action at this time.
0 commit comments