Skip to content

Commit f590c28

Browse files
committed
Relax type of xlim, ylim parameters in coord.systems to allow date-time values to be passed.
1 parent b38a4fa commit f590c28

File tree

1 file changed

+8
-8
lines changed
  • plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/coord

1 file changed

+8
-8
lines changed

plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/coord/coord.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ fun coordFixed(
5252
* so that horizontal axis becomes vertical and vice versa.
5353
*/
5454
fun coordCartesian(
55-
xlim: Pair<Number?, Number?>? = null,
56-
ylim: Pair<Number?, Number?>? = null,
55+
xlim: Pair<Any?, Any?>? = null,
56+
ylim: Pair<Any?, Any?>? = null,
5757
flip: Boolean = false
5858
): OptionsMap {
5959
return OptionsMap(
@@ -78,8 +78,8 @@ fun coordCartesian(
7878
* so that horizontal axis becomes vertical and vice versa.
7979
*/
8080
fun coordMap(
81-
xlim: Pair<Number?, Number?>? = null,
82-
ylim: Pair<Number?, Number?>? = null,
81+
xlim: Pair<Any?, Any?>? = null,
82+
ylim: Pair<Any?, Any?>? = null,
8383
flip: Boolean = false
8484
): OptionsMap {
8585
return OptionsMap(
@@ -107,8 +107,8 @@ fun coordMap(
107107
* @param ylim Limits for y-axes.
108108
*/
109109
fun coordFlip(
110-
xlim: Pair<Number?, Number?>? = null,
111-
ylim: Pair<Number?, Number?>? = null
110+
xlim: Pair<Any?, Any?>? = null,
111+
ylim: Pair<Any?, Any?>? = null,
112112
): OptionsMap {
113113
return OptionsMap(
114114
Option.Plot.COORD,
@@ -137,8 +137,8 @@ fun coordFlip(
137137
* @param transformBkgr If true, the background is transformed to a circle, rectangle otherwise, default = true.
138138
*/
139139
fun coordPolar(
140-
xlim: Pair<Number?, Number?>? = null,
141-
ylim: Pair<Number?, Number?>? = null,
140+
xlim: Pair<Any?, Any?>? = null,
141+
ylim: Pair<Any?, Any?>? = null,
142142
theta: String? = null,
143143
start: Number? = null,
144144
direction: Int? = null,

0 commit comments

Comments
 (0)