I struggled with a strange problem that occurred while using the CorePlot infrastructure, but I suspect that this is not a mistake in the structure itself. I hope someone here sees something similar, and can point me in a productive direction.
I have a tab that displays graphs. A bookmark that is initially active has no problems at all, but often, when I open the next tab, I see the following:

Please note that there are several labels in the upper graph. If I go back to the original tab and then to the second tab, everything will be fine every time. I put various diagnostic log entries and determined that:
- The view is inactive until the graph is created; and
- The drawInContext method is called: the method of each label, including those that are missing. In fact, axis labels refer to the last things displayed, so I expect them to show that something will happen, and some of the missing labels will appear after (and before) those that are present.
Since the rendering seems to be going forward, as it should be, and because this thing looks great "the second time", I suspect the problem is how I connect this to the views or in my time there, rather than in the kernel itself (or, for example, in cropping). I have no ideas on how to debug this, and would like to hear from anyone who has experience with a similar problem.
Thanks!
source share