@@ -204,13 +204,13 @@ private string CreateBarPlot(string title, string fileName, string yLabel, strin
204
204
. ToDictionary ( t => t . jobId , t => palette . GetColor ( t . index ) ) ;
205
205
206
206
plt . Legend . IsVisible = true ;
207
- plt . Legend . Location = Alignment . UpperRight ;
208
- plt . Legend . Font . Size = this . FontSize ;
207
+ plt . Legend . Alignment = Alignment . UpperRight ;
208
+ plt . Legend . FontSize = this . FontSize ;
209
209
var legend = data . Select ( d => d . JobId )
210
210
. Distinct ( )
211
211
. Select ( ( label , index ) => new LegendItem ( )
212
212
{
213
- Label = label ,
213
+ LabelText = label ,
214
214
FillColor = legendPalette [ label ]
215
215
} )
216
216
. ToList ( ) ;
@@ -236,7 +236,7 @@ private string CreateBarPlot(string title, string fileName, string yLabel, strin
236
236
float largestLabelWidth = 0 ;
237
237
foreach ( Tick tick in ticks )
238
238
{
239
- PixelSize size = plt . Axes . Bottom . TickLabelStyle . Measure ( tick . Label ) ;
239
+ PixelSize size = plt . Axes . Bottom . TickLabelStyle . Measure ( tick . Label ) . Size ;
240
240
largestLabelWidth = Math . Max ( largestLabelWidth , size . Width ) ;
241
241
}
242
242
@@ -253,7 +253,7 @@ private string CreateBarPlot(string title, string fileName, string yLabel, strin
253
253
Error = d . StdError ,
254
254
FillColor = legendPalette [ d . JobId ]
255
255
} ) ;
256
- plt . Add . Bars ( bars ) ;
256
+ plt . Add . Bars ( bars . ToList ( ) ) ;
257
257
258
258
// Tell the plot to autoscale with no padding beneath the bars
259
259
plt . Axes . Margins ( bottom : 0 , right : .2 ) ;
@@ -279,13 +279,13 @@ private string CreateBoxPlot(string title, string fileName, string yLabel, strin
279
279
. ToDictionary ( t => t . jobId , t => palette . GetColor ( t . index ) ) ;
280
280
281
281
plt . Legend . IsVisible = true ;
282
- plt . Legend . Location = Alignment . UpperRight ;
283
- plt . Legend . Font . Size = this . FontSize ;
282
+ plt . Legend . Alignment = Alignment . UpperRight ;
283
+ plt . Legend . FontSize = this . FontSize ;
284
284
var legend = data . Select ( d => d . JobId )
285
285
. Distinct ( )
286
286
. Select ( ( label , index ) => new LegendItem ( )
287
287
{
288
- Label = label ,
288
+ LabelText = label ,
289
289
FillColor = legendPalette [ label ]
290
290
} )
291
291
. ToList ( ) ;
@@ -311,7 +311,7 @@ private string CreateBoxPlot(string title, string fileName, string yLabel, strin
311
311
float largestLabelWidth = 0 ;
312
312
foreach ( Tick tick in ticks )
313
313
{
314
- PixelSize size = plt . Axes . Bottom . TickLabelStyle . Measure ( tick . Label ) ;
314
+ PixelSize size = plt . Axes . Bottom . TickLabelStyle . Measure ( tick . Label ) . Size ;
315
315
largestLabelWidth = Math . Max ( largestLabelWidth , size . Width ) ;
316
316
}
317
317
@@ -326,8 +326,8 @@ private string CreateBoxPlot(string title, string fileName, string yLabel, strin
326
326
var boxes = targetGroup . Select ( job => ( job . JobId , Stats : job . CalculateBoxPlotStatistics ( ) ) ) . Select ( ( j , jobIndex ) => new Box ( )
327
327
{
328
328
Position = ticks [ globalIndex ++ ] . Position ,
329
- Fill = new FillStyle ( ) { Color = legendPalette [ j . JobId ] } ,
330
- Stroke = new LineStyle ( ) { Color = Colors . Black } ,
329
+ FillStyle = new FillStyle ( ) { Color = legendPalette [ j . JobId ] } ,
330
+ LineStyle = new LineStyle ( ) { Color = Colors . Black } ,
331
331
BoxMin = j . Stats . Q1 ,
332
332
BoxMax = j . Stats . Q3 ,
333
333
WhiskerMin = j . Stats . Min ,
@@ -356,7 +356,7 @@ private IReadOnlyList<Annotation> GetAnnotations(string version)
356
356
{
357
357
var versionAnnotation = new Annotation ( )
358
358
{
359
- Label =
359
+ LabelStyle =
360
360
{
361
361
Text = version ,
362
362
FontSize = 14 ,
0 commit comments