I'm using a custom image symbol, as described in Showing images on Scattering Graph as plot symbols in Core plot iOS. Also refer to Positioning label on CPTBarPlot (Core-Plot) regarding positioning of the data label in a CPTPlot
.
However, I'm not seeing the behavior from CPTScatterPlot.labelOffset
that I need. Positive values increase the distance between the image bottom and the point, while negative values increase the distance between the image top and the point. I need to center the image on the point. See screenshots:
- positive labelOffset values:
- negative labelOffset values:
My solution is hacky and requires me to modify the image frame in my CustomImageForScatterPlot
's drawInContext
method. Any ideas on how to make labelOffset
work how I want?