@@ -117,8 +117,8 @@ impl HLine {
117
117
}
118
118
119
119
/// Highlight this line in the plot by scaling up the line.
120
- pub fn highlight ( mut self ) -> Self {
121
- self . highlight = true ;
120
+ pub fn highlight ( mut self , highlight : bool ) -> Self {
121
+ self . highlight = highlight ;
122
122
self
123
123
}
124
124
@@ -227,8 +227,8 @@ impl VLine {
227
227
}
228
228
229
229
/// Highlight this line in the plot by scaling up the line.
230
- pub fn highlight ( mut self ) -> Self {
231
- self . highlight = true ;
230
+ pub fn highlight ( mut self , highlight : bool ) -> Self {
231
+ self . highlight = highlight ;
232
232
self
233
233
}
234
234
@@ -338,8 +338,8 @@ impl Line {
338
338
}
339
339
340
340
/// Highlight this line in the plot by scaling up the line.
341
- pub fn highlight ( mut self ) -> Self {
342
- self . highlight = true ;
341
+ pub fn highlight ( mut self , highlight : bool ) -> Self {
342
+ self . highlight = highlight ;
343
343
self
344
344
}
345
345
@@ -506,8 +506,8 @@ impl Polygon {
506
506
507
507
/// Highlight this polygon in the plot by scaling up the stroke and reducing the fill
508
508
/// transparency.
509
- pub fn highlight ( mut self ) -> Self {
510
- self . highlight = true ;
509
+ pub fn highlight ( mut self , highlight : bool ) -> Self {
510
+ self . highlight = highlight ;
511
511
self
512
512
}
513
513
@@ -635,8 +635,8 @@ impl Text {
635
635
}
636
636
637
637
/// Highlight this text in the plot by drawing a rectangle around it.
638
- pub fn highlight ( mut self ) -> Self {
639
- self . highlight = true ;
638
+ pub fn highlight ( mut self , highlight : bool ) -> Self {
639
+ self . highlight = highlight ;
640
640
self
641
641
}
642
642
@@ -763,8 +763,8 @@ impl Points {
763
763
}
764
764
765
765
/// Highlight these points in the plot by scaling up their markers.
766
- pub fn highlight ( mut self ) -> Self {
767
- self . highlight = true ;
766
+ pub fn highlight ( mut self , highlight : bool ) -> Self {
767
+ self . highlight = highlight ;
768
768
self
769
769
}
770
770
@@ -979,8 +979,8 @@ impl Arrows {
979
979
}
980
980
981
981
/// Highlight these arrows in the plot.
982
- pub fn highlight ( mut self ) -> Self {
983
- self . highlight = true ;
982
+ pub fn highlight ( mut self , highlight : bool ) -> Self {
983
+ self . highlight = highlight ;
984
984
self
985
985
}
986
986
@@ -1105,8 +1105,8 @@ impl PlotImage {
1105
1105
}
1106
1106
1107
1107
/// Highlight this image in the plot.
1108
- pub fn highlight ( mut self ) -> Self {
1109
- self . highlight = true ;
1108
+ pub fn highlight ( mut self , highlight : bool ) -> Self {
1109
+ self . highlight = highlight ;
1110
1110
self
1111
1111
}
1112
1112
@@ -1295,8 +1295,8 @@ impl BarChart {
1295
1295
}
1296
1296
1297
1297
/// Highlight all plot elements.
1298
- pub fn highlight ( mut self ) -> Self {
1299
- self . highlight = true ;
1298
+ pub fn highlight ( mut self , highlight : bool ) -> Self {
1299
+ self . highlight = highlight ;
1300
1300
self
1301
1301
}
1302
1302
@@ -1458,8 +1458,8 @@ impl BoxPlot {
1458
1458
}
1459
1459
1460
1460
/// Highlight all plot elements.
1461
- pub fn highlight ( mut self ) -> Self {
1462
- self . highlight = true ;
1461
+ pub fn highlight ( mut self , highlight : bool ) -> Self {
1462
+ self . highlight = highlight ;
1463
1463
self
1464
1464
}
1465
1465
0 commit comments