You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| title::String | "" | title="My Title" | The Title of The Figure, |
32
-
| colormap |:viridis| colormap=:thermal| The Colors of the [Lines](https://docs.makie.org/dev/explanations/colors)|
33
-
| color_feature | nothing | color_feature="weight" | The Color of the Lines will be based on the values of this selected feature. If nothing, the last feature will be used |
34
-
| feature_labels | nothing | feature_labels=["Weight","Age"]| Add your own Axis labels, just use the exact amount of labes as you have axis |
35
-
| feature_selection | nothing | feature_selection=["weight","age"]| Select, which features should be Displayed. If color_feature is not in this List, use the last one |
36
-
| curve | false | curve=true | Show the Lines Curved |
37
-
| show_color_legend | nothing | show_color_legend=true | Show the Color Legend. If parameter not set & color_feature not shown, it will be displayed automaticly |
| title::String | "" | title="My Title" | The Title of The Figure, |
32
+
| colormap |:viridis| colormap=:thermal| The Colors of the [Lines](https://docs.makie.org/dev/explanations/colors)|
33
+
| color_feature | nothing | color_feature="weight" | The Color of the Lines will be based on the values of this selected feature. If nothing, the last feature will be used |
34
+
| feature_labels | nothing | feature_labels=["Weight","Age"]| Add your own Axis labels, just use the exact amount of labes as you have axis |
35
+
| feature_selection | nothing | feature_selection=["weight","age"]| Select, which features should be Displayed. If color_feature is not in this List, use the last one |
36
+
| curve | false | curve=true | Show the Lines Curved |
37
+
| show_color_legend | nothing | show_color_legend=true | Show the Color Legend. If parameter not set & color_feature not shown, it will be displayed automaticly |
38
+
| scale | nothing | scale=[log2, identity, log10]| Choose, how each Axis should be scaled. In the Example. The first Axis will be log2, the second linear and the third log10 |
| title::String | "" | title="My Title" | The Title of The Figure, |
19
-
| colormap |:viridis| colormap=:thermal| The Colors of the [Lines](https://docs.makie.org/dev/explanations/colors)|
20
-
| color_feature | nothing | color_feature="weight" | The Color of the Lines will be based on the values of this selected feature. If nothing, the last feature will be used |
21
-
| feature_labels | nothing | feature_labels=["Weight","Age"]| Add your own Axis labels, just use the exact amount of labes as you have axis |
22
-
| feature_selection | nothing | feature_selection=["weight","age"]| Select, which features should be Displayed. If color_feature is not in this List, use the last one |
23
-
| curve | false | curve=true | Show the Lines Curved |
24
-
| show_color_legend | nothing | show_color_legend=true | Show the Color Legend. If parameter not set & color_feature not shown, it will be displayed automaticly |
| title::String | "" | title="My Title" | The Title of The Figure, |
19
+
| colormap |:viridis| colormap=:thermal| The Colors of the [Lines](https://docs.makie.org/dev/explanations/colors)|
20
+
| color_feature | nothing | color_feature="weight" | The Color of the Lines will be based on the values of this selected feature. If nothing, the last feature will be used |
21
+
| feature_labels | nothing | feature_labels=["Weight","Age"]| Add your own Axis labels, just use the exact amount of labes as you have axis |
22
+
| feature_selection | nothing | feature_selection=["weight","age"]| Select, which features should be Displayed. If color_feature is not in this List, use the last one |
23
+
| curve | false | curve=true | Show the Lines Curved |
24
+
| show_color_legend | nothing | show_color_legend=true | Show the Color Legend. If parameter not set & color_feature not shown, it will be displayed automaticly |
25
+
| scale | nothing | scale=[log2, identity, log10]| Choose, how each Axis should be scaled. In the Example. The first Axis will be log2, the second linear and the third log10 |
| title | "" | title="My Title" | The Title of The Figure, |
44
-
| colormap | :viridis | colormap=:thermal | The Colors of the [Lines](https://docs.makie.org/dev/explanations/colors) |
45
-
| color_feature | nothing | color_feature="weight" | The Color of the Lines will be based on the values of this selected feature. If nothing, the last feature will be used |
46
-
| feature_labels | nothing | feature_labels=["Weight","Age"] | Add your own Axis labels, just use the exact amount of labes as you have axis |
47
-
| feature_selection | nothing | feature_selection=["weight","age"] | Select, which features should be Displayed. If color_feature is not in this List, use the last one |
48
-
| curve | false | curve=true | Show the Lines Curved |
49
-
| show_color_legend | nothing | show_color_legend=true | Show the Color Legend. If parameter not set & color_feature not shown, it will be displayed automaticly |
| title::String | "" | title="My Title" | The Title of The Figure, |
44
+
| colormap | :viridis | colormap=:thermal | The Colors of the [Lines](https://docs.makie.org/dev/explanations/colors) |
45
+
| color_feature | nothing | color_feature="weight" | The Color of the Lines will be based on the values of this selected feature. If nothing, the last feature will be used |
46
+
| feature_labels | nothing | feature_labels=["Weight","Age"] | Add your own Axis labels, just use the exact amount of labes as you have axis |
47
+
| feature_selection | nothing | feature_selection=["weight","age"] | Select, which features should be Displayed. If color_feature is not in this List, use the last one |
48
+
| curve | false | curve=true | Show the Lines Curved |
49
+
| show_color_legend | nothing | show_color_legend=true | Show the Color Legend. If parameter not set & color_feature not shown, it will be displayed automaticly |
50
+
| scale | nothing | scale=[log2, identity, log10] | Choose, how each Axis should be scaled. In the Example. The first Axis will be log2, the second linear and the third log10 |
50
51
51
52
52
53
# Examples
@@ -133,6 +134,13 @@ parallelplot(df,
133
134
show_color_legend = true
134
135
)
135
136
```
137
+
```
138
+
# Adjust the Axis scale
139
+
parallelplot(df,
140
+
feature_selection=["height","age","income"],
141
+
scale=[log2, identity, log10]
142
+
)
143
+
```
136
144
137
145
"""
138
146
@recipe(ParallelPlot, df) do scene
@@ -145,7 +153,8 @@ parallelplot(df,
145
153
feature_selection =nothing, # which features should be shown, default: nothing --> show all features
146
154
curve =false, # If Lines should be curved between the axis. Default false
147
155
# if colorlegend/ ColorBar should be shown. Default: when color_feature is not visible, true, else false
148
-
show_color_legend =nothing
156
+
show_color_legend =nothing,
157
+
scale =nothing
149
158
)
150
159
end
151
160
@@ -232,6 +241,9 @@ function Makie.plot!(pp::ParallelPlot)
232
241
numberFeatures =length(parsed_data) # Number of features, equivalent to the X Axis
233
242
sampleSize =size(data, 1) # Number of samples, equivalent to the Y Axis
@assertlength(scale_list) === numberFeatures "The Number of given scales ("*string(length(scale_list))*") does not match the amount of axis/features ("*string(numberFeatures)*")"
335
+
return scale_list
336
+
end
337
+
end
300
338
301
339
"""
302
340
@@ -371,6 +409,8 @@ function show_color_legend!(pp) :: Bool
371
409
returntrue
372
410
elseif pp.show_color_legend[] ==false
373
411
returnfalse
412
+
elseifisnothing(pp.color_feature[])
413
+
returnfalse
374
414
elseif!isnothing(pp.feature_selection[]) &&!(pp.color_feature[] in pp.feature_selection[])
0 commit comments