@@ -104,13 +104,12 @@ extension GraphLayout {
104
104
105
105
// 3. Now that we have the final sizes of everything, we can calculate their locations.
106
106
let plotRect = layoutPlotRect ( plotSize: plotSize, componentSizes: sizes)
107
- let roundedMarkers = markers. map { var m = $0; roundMarkers ( & m) ; return m } ?? PlotMarkers ( )
108
107
109
108
var plan = LayoutPlan ( totalSize: size,
110
109
plotBorderRect: plotRect,
111
110
allComponents: components,
112
111
sizes: sizes,
113
- plotMarkers: roundedMarkers ,
112
+ plotMarkers: markers ?? PlotMarkers ( ) ,
114
113
legendLabels: legendInfo ?? [ ] )
115
114
calcMarkerTextLocations ( renderer: renderer, plan: & plan)
116
115
calcLegend ( plan. legendLabels, renderer: renderer, plan: & plan)
@@ -222,19 +221,6 @@ extension GraphLayout {
222
221
return plotSize
223
222
}
224
223
225
- /// Rounds the given markers to integer pixel locations, for sharper gridlines.
226
- private func roundMarkers( _ markers: inout PlotMarkers ) {
227
- // for i in markers.xMarkers.indices {
228
- // markers.xMarkers[i].round(.down)
229
- // }
230
- // for i in markers.yMarkers.indices {
231
- // markers.yMarkers[i].round(.down)
232
- // }
233
- // for i in markers.y2Markers.indices {
234
- // markers.y2Markers[i].round(.down)
235
- // }
236
- }
237
-
238
224
private func calcMarkerTextLocations( renderer: Renderer , plan: inout LayoutPlan ) {
239
225
let xLabelOffset = plotBorder. thickness + Self. markerStemLength + Self. xMarkerSpace
240
226
let yLabelOffset = plotBorder. thickness + Self. markerStemLength + Self. yMarkerSpace
0 commit comments