Anonymous
Anonymous

Reputation: 1820

Drawing a scatterplot with Cocoa

How should I best approach drawing a scatter plot diagram in Cocoa?

Upvotes: 1

Views: 254

Answers (2)

cobbal
cobbal

Reputation: 70753

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:

Upvotes: 3

Joshua Nozzi
Joshua Nozzi

Reputation: 61228

I believe Core Plot offers scatter plots.

Upvotes: 5

Related Questions