Drawing a scatterplot with Cocoa
How should I best approach drawing a scatter plot diagram in C开发者_JS百科ocoa?
I believe Core Plot offers scatter plots.
You will probably want to create a custom subclass of NSView and override the drawRect:
method.
You can draw primitives using many of NSBezierPath's class methods such as bezierPathWithOvalInRect:
and strokeLineFromPoint:toPoint:
精彩评论