boyfarrell.com

16 August 2007

ChocPlot 1: Axis Model

ChocPlot is my very poorly named framework/application for plotting using Cocoa. It is still very much a work in progress, so far I have written a class called AxisModel. It can be used to generate nicely spacing axis tic marks from just two variables; the start and stop values of the axis.

Please read the on-line documentation and get the source . Alternatively, download the whole XCode Project.

Example


/*
axis with automatically positioned tic marks but with the number supplied by the user
*/
CPAxisModel *axis = [CPAxisModel axisWithStart:1 stop:10];
NSLog([axis description]);
// (0, 2, 4, 6, 8, 10)

No Comments currently posted.

Post a comment on this entry: