When printing an off-screen CPTGraphHostingView on the Mac, the resulting
preview in the print panel does not contain axis labels.
Steps to reproduce:
- Build and run the attached "DatePlot" example with Xcode
- Check the preview in the upcoming print panel
Expected result:
There should be labels on the axis ticks.
Actual result:
There are no labels
Regression:
The problem seems to come from the fact that the labels are generated by the
-relabel call in -[CPTXYAxis renderAsVectorInContext:]. But for the first
vector rendering, this is too late, as pass through
-recursivelyRenderInContext: has already passed the point where the labels
should have been.
I can work around the problem by adding a [self relabel] call to -[CPTAxis
layoutSublayers] (like in -[CPTPlot layoutSublayers]) but I doubt that this is
the correct fix for the issue.
Original issue reported on code.google.com by frank.il...@googlemail.com on 16 Jan 2013 at 4:30
Original issue reported on code.google.com by
frank.il...@googlemail.com
on 16 Jan 2013 at 4:30Attachments: