@@ -204,13 +204,13 @@ private string CreateBarPlot(string title, string fileName, string yLabel, strin
204204 . ToDictionary ( t => t . jobId , t => palette . GetColor ( t . index ) ) ;
205205
206206 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 ;
209209 var legend = data . Select ( d => d . JobId )
210210 . Distinct ( )
211211 . Select ( ( label , index ) => new LegendItem ( )
212212 {
213- Label = label ,
213+ LabelText = label ,
214214 FillColor = legendPalette [ label ]
215215 } )
216216 . ToList ( ) ;
@@ -236,7 +236,7 @@ private string CreateBarPlot(string title, string fileName, string yLabel, strin
236236 float largestLabelWidth = 0 ;
237237 foreach ( Tick tick in ticks )
238238 {
239- PixelSize size = plt . Axes . Bottom . TickLabelStyle . Measure ( tick . Label ) ;
239+ PixelSize size = plt . Axes . Bottom . TickLabelStyle . Measure ( tick . Label ) . Size ;
240240 largestLabelWidth = Math . Max ( largestLabelWidth , size . Width ) ;
241241 }
242242
@@ -253,7 +253,7 @@ private string CreateBarPlot(string title, string fileName, string yLabel, strin
253253 Error = d . StdError ,
254254 FillColor = legendPalette [ d . JobId ]
255255 } ) ;
256- plt . Add . Bars ( bars ) ;
256+ plt . Add . Bars ( bars . ToList ( ) ) ;
257257
258258 // Tell the plot to autoscale with no padding beneath the bars
259259 plt . Axes . Margins ( bottom : 0 , right : .2 ) ;
@@ -279,13 +279,13 @@ private string CreateBoxPlot(string title, string fileName, string yLabel, strin
279279 . ToDictionary ( t => t . jobId , t => palette . GetColor ( t . index ) ) ;
280280
281281 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 ;
284284 var legend = data . Select ( d => d . JobId )
285285 . Distinct ( )
286286 . Select ( ( label , index ) => new LegendItem ( )
287287 {
288- Label = label ,
288+ LabelText = label ,
289289 FillColor = legendPalette [ label ]
290290 } )
291291 . ToList ( ) ;
@@ -311,7 +311,7 @@ private string CreateBoxPlot(string title, string fileName, string yLabel, strin
311311 float largestLabelWidth = 0 ;
312312 foreach ( Tick tick in ticks )
313313 {
314- PixelSize size = plt . Axes . Bottom . TickLabelStyle . Measure ( tick . Label ) ;
314+ PixelSize size = plt . Axes . Bottom . TickLabelStyle . Measure ( tick . Label ) . Size ;
315315 largestLabelWidth = Math . Max ( largestLabelWidth , size . Width ) ;
316316 }
317317
@@ -326,8 +326,8 @@ private string CreateBoxPlot(string title, string fileName, string yLabel, strin
326326 var boxes = targetGroup . Select ( job => ( job . JobId , Stats : job . CalculateBoxPlotStatistics ( ) ) ) . Select ( ( j , jobIndex ) => new Box ( )
327327 {
328328 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 } ,
331331 BoxMin = j . Stats . Q1 ,
332332 BoxMax = j . Stats . Q3 ,
333333 WhiskerMin = j . Stats . Min ,
@@ -356,7 +356,7 @@ private IReadOnlyList<Annotation> GetAnnotations(string version)
356356 {
357357 var versionAnnotation = new Annotation ( )
358358 {
359- Label =
359+ LabelStyle =
360360 {
361361 Text = version ,
362362 FontSize = 14 ,
0 commit comments