GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Updated the Mac CPTTestApp example app to support Dark Mode. · core-plot/core-plot@c280cb3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • examples/CPTTestApp
    • CPTTestApp.xcodeproj
      • project.pbxproj
    • Resources
      • Base.lproj
        • CPTTestApp.xib
      • BlueTexture.png
    • Source
      • Controller.m
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎examples/CPTTestApp/CPTTestApp.xcodeproj/project.pbxproj‎

Copy file name to clipboardExpand all lines: examples/CPTTestApp/CPTTestApp.xcodeproj/project.pbxproj
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
/* Begin PBXBuildFile section */
1010
077382B10F3DC1FB002F10E2 /* Controller.m in Sources */ = {isa = PBXBuildFile; fileRef = 077382B00F3DC1FB002F10E2 /* Controller.m */; };
11-
07C13BBB0FF9322A00BEE616 /* BlueTexture.png in Resources */ = {isa = PBXBuildFile; fileRef = 07C13BBA0FF9322A00BEE616 /* BlueTexture.png */; };
1211
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
1312
8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
1413
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
@@ -118,7 +117,6 @@
118117
0761854B0F3CB3CB00A89A76 /* CorePlot.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = CorePlot.framework; path = ../../../../framework/build/Debug/CorePlot.framework; sourceTree = BUILT_PRODUCTS_DIR; };
119118
077382AF0F3DC1FB002F10E2 /* Controller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Controller.h; path = Source/Controller.h; sourceTree = "<group>"; };
120119
077382B00F3DC1FB002F10E2 /* Controller.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Controller.m; path = Source/Controller.m; sourceTree = "<group>"; };
121-
07C13BBA0FF9322A00BEE616 /* BlueTexture.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = BlueTexture.png; path = Resources/BlueTexture.png; sourceTree = "<group>"; };
122120
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
123121
13E42FB307B3F0F600E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; };
124122
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Source/main.m; sourceTree = "<group>"; };
@@ -250,7 +248,6 @@
250248
children = (
251249
C3D3935B19FD653300148319 /* Images.xcassets */,
252250
C37A40A720E030C000C4FF48 /* Info.plist */,
253-
07C13BBA0FF9322A00BEE616 /* BlueTexture.png */,
254251
089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
255252
C3D0A18D20E017C500BA2921 /* AxisDemo.xib */,
256253
C3D0A19C20E017CC00BA2921 /* CPTTestApp.xib */,
@@ -395,7 +392,6 @@
395392
8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */,
396393
C3D3935C19FD653300148319 /* Images.xcassets in Resources */,
397394
C3D0A19A20E017CC00BA2921 /* CPTTestApp.xib in Resources */,
398-
07C13BBB0FF9322A00BEE616 /* BlueTexture.png in Resources */,
399395
C3D0A19D20E017D100BA2921 /* PlotSymbolDemo.xib in Resources */,
400396
C3D0A18B20E017C500BA2921 /* AxisDemo.xib in Resources */,
401397
C3D0A1A020E017D600BA2921 /* SelectionDemo.xib in Resources */,
Collapse file

‎examples/CPTTestApp/Resources/Base.lproj/CPTTestApp.xib‎

Copy file name to clipboardExpand all lines: examples/CPTTestApp/Resources/Base.lproj/CPTTestApp.xib
+4-10Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="15505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="15702" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15505"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15702"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<objects>
@@ -673,15 +673,9 @@
673673
<autoresizingMask key="autoresizingMask"/>
674674
</tableHeaderView>
675675
</scrollView>
676-
<customView fixedFrame="YES" id="485">
676+
<customView fixedFrame="YES" id="485" customClass="CPTGraphHostingView">
677677
<rect key="frame" x="354" y="0.0" width="559" height="492"/>
678678
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
679-
<subviews>
680-
<customView fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="517" customClass="CPTGraphHostingView">
681-
<rect key="frame" x="0.0" y="0.0" width="559" height="492"/>
682-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
683-
</customView>
684-
</subviews>
685679
</customView>
686680
</subviews>
687681
<holdingPriorities>
@@ -747,7 +741,7 @@
747741
<string>y</string>
748742
</declaredKeys>
749743
<connections>
750-
<outlet property="hostView" destination="517" id="518"/>
744+
<outlet property="hostView" destination="485" id="Try-RJ-lNM"/>
751745
</connections>
752746
</arrayController>
753747
</objects>
Collapse file

‎examples/CPTTestApp/Resources/BlueTexture.png‎

Copy file name to clipboard
-360 KB
Binary file not shown.
Collapse file

‎examples/CPTTestApp/Source/Controller.m‎

Copy file name to clipboardExpand all lines: examples/CPTTestApp/Source/Controller.m
+51-36Lines changed: 51 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ -(void)setupGraph
9797
{
9898
// Create graph and apply a dark theme
9999
CPTXYGraph *newGraph = [[CPTXYGraph alloc] initWithFrame:NSRectToCGRect(self.hostView.bounds)];
100-
CPTTheme *theme = [CPTTheme themeNamed:kCPTDarkGradientTheme];
101100

102-
[newGraph applyTheme:theme];
103101
self.hostView.hostedGraph = newGraph;
104102
self.graph = newGraph;
105103

@@ -108,8 +106,8 @@ -(void)setupGraph
108106
NSString *lineTwo = @"This is the Second Line of the Title";
109107

110108
NSMutableAttributedString *graphTitle = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@\n%@", lineOne, lineTwo]];
111-
[graphTitle addAttribute:NSForegroundColorAttributeName value:[NSColor grayColor] range:NSMakeRange(0, lineOne.length)];
112-
[graphTitle addAttribute:NSForegroundColorAttributeName value:[NSColor darkGrayColor] range:NSMakeRange(lineOne.length + 1, lineTwo.length)];
109+
[graphTitle addAttribute:NSForegroundColorAttributeName value:[NSColor labelColor] range:NSMakeRange(0, lineOne.length)];
110+
[graphTitle addAttribute:NSForegroundColorAttributeName value:[NSColor secondaryLabelColor] range:NSMakeRange(lineOne.length + 1, lineTwo.length)];
113111
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
114112
paragraphStyle.alignment = CPTTextAlignmentCenter;
115113
[graphTitle addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, graphTitle.length)];
@@ -122,11 +120,14 @@ -(void)setupGraph
122120
newGraph.titleDisplacement = CGPointMake(0.0, 50.0);
123121
newGraph.titlePlotAreaFrameAnchor = CPTRectAnchorTop;
124122

123+
// newGraph.fill = [CPTFill fillWithColor:[CPTColor colorWithNSColor:[NSColor windowBackgroundColor]]];
124+
newGraph.plotAreaFrame.fill = [CPTFill fillWithColor:[CPTColor colorWithNSColor:[NSColor controlBackgroundColor]]];
125+
125126
// Graph padding
126-
newGraph.paddingLeft = 60.0;
127+
newGraph.paddingLeft = 10.0;
127128
newGraph.paddingTop = 60.0;
128-
newGraph.paddingRight = 60.0;
129-
newGraph.paddingBottom = 60.0;
129+
newGraph.paddingRight = 10.0;
130+
newGraph.paddingBottom = 10.0;
130131

131132
// Plot area delegate
132133
newGraph.plotAreaFrame.plotArea.delegate = self;
@@ -143,20 +144,25 @@ -(void)setupAxes
143144
// Grid line styles
144145
CPTMutableLineStyle *majorGridLineStyle = [CPTMutableLineStyle lineStyle];
145146
majorGridLineStyle.lineWidth = 0.75;
146-
majorGridLineStyle.lineColor = [[CPTColor colorWithGenericGray:0.2] colorWithAlphaComponent:0.75];
147+
majorGridLineStyle.lineColor = [[CPTColor colorWithNSColor:[NSColor gridColor]] colorWithAlphaComponent:0.75];
147148

148149
CPTMutableLineStyle *minorGridLineStyle = [CPTMutableLineStyle lineStyle];
149150
minorGridLineStyle.lineWidth = 0.25;
150-
minorGridLineStyle.lineColor = [[CPTColor whiteColor] colorWithAlphaComponent:0.1];
151+
minorGridLineStyle.lineColor = [[CPTColor colorWithNSColor:[NSColor gridColor]] colorWithAlphaComponent:0.1];
151152

152153
CPTMutableLineStyle *redLineStyle = [CPTMutableLineStyle lineStyle];
153154
redLineStyle.lineWidth = 10.0;
154-
redLineStyle.lineColor = [[CPTColor redColor] colorWithAlphaComponent:0.5];
155+
redLineStyle.lineColor = [[CPTColor colorWithNSColor:[NSColor systemRedColor]] colorWithAlphaComponent:0.5];
155156

156157
// Axes
157158
// Label x axis with a fixed interval policy
158159
CPTXYAxisSet *axisSet = (CPTXYAxisSet *)self.graph.axisSet;
159160
CPTXYAxis *x = axisSet.xAxis;
161+
162+
CPTMutableTextStyle *textStyle = [x.titleTextStyle mutableCopy];
163+
textStyle.color = [CPTColor colorWithNSColor:[NSColor secondaryLabelColor]];
164+
165+
x.labelTextStyle = textStyle;
160166
x.majorIntervalLength = @0.5;
161167
x.orthogonalPosition = @2.0;
162168
x.minorTicksPerInterval = 2;
@@ -168,8 +174,8 @@ -(void)setupAxes
168174
x.labelExclusionRanges = exclusionRanges;
169175

170176
NSMutableAttributedString *xTitle = [[NSMutableAttributedString alloc] initWithString:@"X Axis\nLine 2"];
171-
[xTitle addAttribute:NSForegroundColorAttributeName value:[NSColor whiteColor] range:NSMakeRange(0, 6)];
172-
[xTitle addAttribute:NSForegroundColorAttributeName value:[NSColor grayColor] range:NSMakeRange(7, 6)];
177+
[xTitle addAttribute:NSForegroundColorAttributeName value:[NSColor secondaryLabelColor] range:NSMakeRange(0, 6)];
178+
[xTitle addAttribute:NSForegroundColorAttributeName value:[NSColor tertiaryLabelColor] range:NSMakeRange(7, 6)];
173179
NSMutableParagraphStyle *xParagraphStyle = [[NSMutableParagraphStyle alloc] init];
174180
xParagraphStyle.alignment = CPTTextAlignmentCenter;
175181
[xTitle addAttribute:NSParagraphStyleAttributeName value:xParagraphStyle range:NSMakeRange(0, xTitle.length)];
@@ -181,6 +187,7 @@ -(void)setupAxes
181187
// Label y with an automatic label policy.
182188
CPTXYAxis *y = axisSet.yAxis;
183189
y.labelingPolicy = CPTAxisLabelingPolicyAutomatic;
190+
y.labelTextStyle = textStyle;
184191
y.orthogonalPosition = @2.0;
185192
y.minorTicksPerInterval = 2;
186193
y.preferredNumberOfMajorTicks = 8;
@@ -193,8 +200,8 @@ -(void)setupAxes
193200
y.labelExclusionRanges = exclusionRanges;
194201

195202
NSMutableAttributedString *yTitle = [[NSMutableAttributedString alloc] initWithString:@"Y Axis\nLine 2"];
196-
[yTitle addAttribute:NSForegroundColorAttributeName value:[NSColor whiteColor] range:NSMakeRange(0, 6)];
197-
[yTitle addAttribute:NSForegroundColorAttributeName value:[NSColor grayColor] range:NSMakeRange(7, 6)];
203+
[yTitle addAttribute:NSForegroundColorAttributeName value:[NSColor secondaryLabelColor] range:NSMakeRange(0, 6)];
204+
[yTitle addAttribute:NSForegroundColorAttributeName value:[NSColor tertiaryLabelColor] range:NSMakeRange(7, 6)];
198205
NSMutableParagraphStyle *yParagraphStyle = [[NSMutableParagraphStyle alloc] init];
199206
yParagraphStyle.alignment = CPTTextAlignmentCenter;
200207
[yTitle addAttribute:NSParagraphStyleAttributeName value:yParagraphStyle range:NSMakeRange(0, yTitle.length)];
@@ -209,6 +216,7 @@ -(void)setupAxes
209216
// Add an extra y axis (red)
210217
// We add constraints to this axis below
211218
CPTXYAxis *y2 = [[CPTXYAxis alloc] initWithFrame:CGRectZero];
219+
212220
y2.labelingPolicy = CPTAxisLabelingPolicyAutomatic;
213221
y2.orthogonalPosition = @3.0;
214222
y2.minorTicksPerInterval = 0;
@@ -223,8 +231,10 @@ -(void)setupAxes
223231
y2.minorTickLineStyle = nil;
224232
y2.labelTextStyle = nil;
225233
y2.visibleRange = [CPTPlotRange plotRangeWithLocation:@2.0 length:@3.0];
234+
y2.titleTextStyle = textStyle;
226235
y2.title = @"Y2 title";
227236
y2.titleLocation = @3.0;
237+
228238
// Set axes
229239
self.graph.axisSet.axes = @[x, y, y2];
230240
}
@@ -249,17 +259,19 @@ -(void)setupScatterPlots
249259
[boundLinePlot bind:CPTScatterPlotBindingYValues toObject:self withKeyPath:@"arrangedObjects.y" options:nil];
250260

251261
// Put an area gradient under the plot above
252-
CPTImage *fillImage = [CPTImage imageNamed:@"BlueTexture"];
253-
fillImage.tiled = YES;
254-
CPTFill *areaImageFill = [CPTFill fillWithImage:fillImage];
255-
boundLinePlot.areaFill = areaImageFill;
262+
CPTColor *areaColor = [CPTColor colorWithComponentRed:0.3 green:0.3 blue:1.0 alpha:0.8];
263+
CPTGradient *areaGradient = [CPTGradient gradientWithBeginningColor:areaColor endingColor:[CPTColor clearColor]];
264+
areaGradient.angle = -90.0;
265+
CPTFill *areaGradientFill = [CPTFill fillWithGradient:areaGradient];
266+
267+
boundLinePlot.areaFill = areaGradientFill;
256268
boundLinePlot.areaBaseValue = @1.0;
257269

258270
// Add plot symbols
259271
CPTMutableLineStyle *symbolLineStyle = [CPTMutableLineStyle lineStyle];
260272
symbolLineStyle.lineColor = [CPTColor blackColor];
261273
CPTPlotSymbol *plotSymbol = [CPTPlotSymbol ellipsePlotSymbol];
262-
plotSymbol.fill = [CPTFill fillWithColor:[CPTColor blueColor]];
274+
plotSymbol.fill = [CPTFill fillWithColor:[CPTColor colorWithNSColor:[NSColor systemBlueColor]]];
263275
plotSymbol.lineStyle = symbolLineStyle;
264276
plotSymbol.size = CGSizeMake(10.0, 10.0);
265277
boundLinePlot.plotSymbol = plotSymbol;
@@ -276,14 +288,14 @@ -(void)setupScatterPlots
276288

277289
lineStyle = [dataSourceLinePlot.dataLineStyle mutableCopy];
278290
lineStyle.lineWidth = 1.0;
279-
lineStyle.lineColor = [CPTColor greenColor];
291+
lineStyle.lineColor = [CPTColor colorWithNSColor:[NSColor systemGreenColor]];
280292
dataSourceLinePlot.dataLineStyle = lineStyle;
281293

282294
dataSourceLinePlot.dataSource = self;
283295

284-
CPTMutableTextStyle *whiteTextStyle = [CPTMutableTextStyle textStyle];
285-
whiteTextStyle.color = [CPTColor whiteColor];
286-
dataSourceLinePlot.labelTextStyle = whiteTextStyle;
296+
CPTMutableTextStyle *textStyle = [CPTMutableTextStyle textStyle];
297+
textStyle.color = [CPTColor colorWithNSColor:[NSColor secondaryLabelColor]];
298+
dataSourceLinePlot.labelTextStyle = textStyle;
287299

288300
dataSourceLinePlot.labelOffset = 5.0;
289301
dataSourceLinePlot.labelRotation = M_PI_4;
@@ -293,10 +305,11 @@ -(void)setupScatterPlots
293305
dataSourceLinePlot.interpolation = CPTScatterPlotInterpolationStepped;
294306

295307
// Put an area gradient under the plot above
296-
CPTColor *areaColor = [CPTColor colorWithComponentRed:0.3 green:1.0 blue:0.3 alpha:0.8];
297-
CPTGradient *areaGradient = [CPTGradient gradientWithBeginningColor:areaColor endingColor:[CPTColor clearColor]];
308+
areaColor = [CPTColor colorWithComponentRed:0.3 green:1.0 blue:0.3 alpha:0.8];
309+
areaGradient = [CPTGradient gradientWithBeginningColor:areaColor endingColor:[CPTColor clearColor]];
298310
areaGradient.angle = -90.0;
299-
CPTFill *areaGradientFill = [CPTFill fillWithGradient:areaGradient];
311+
areaGradientFill = [CPTFill fillWithGradient:areaGradient];
312+
300313
dataSourceLinePlot.areaFill = areaGradientFill;
301314
dataSourceLinePlot.areaBaseValue = @1.75;
302315

@@ -355,15 +368,16 @@ -(void)setupBarPlots
355368
[self.graph addPlotSpace:barPlotSpace];
356369

357370
// First bar plot
358-
CPTMutableTextStyle *whiteTextStyle = [CPTMutableTextStyle textStyle];
359-
whiteTextStyle.color = [CPTColor whiteColor];
371+
CPTMutableTextStyle *textStyle = [CPTMutableTextStyle textStyle];
372+
textStyle.color = [CPTColor colorWithNSColor:[NSColor secondaryLabelColor]];
373+
360374
CPTBarPlot *barPlot = [CPTBarPlot tubularBarPlotWithColor:[CPTColor darkGrayColor] horizontalBars:YES];
361375
barPlot.baseValue = @20.0;
362376
barPlot.dataSource = self;
363377
barPlot.barOffset = @(-0.25);
364378
barPlot.identifier = barPlot1;
365379
barPlot.plotRange = [CPTPlotRange plotRangeWithLocation:@0.0 length:@7.0];
366-
barPlot.labelTextStyle = whiteTextStyle;
380+
barPlot.labelTextStyle = textStyle;
367381
[self.graph addPlot:barPlot toPlotSpace:barPlotSpace];
368382

369383
// Second bar plot
@@ -476,7 +490,7 @@ -(void)scatterPlot:(nonnull CPTScatterPlot *)plot plotSymbolWasSelectedAtRecordI
476490

477491
// Setup a style for the annotation
478492
CPTMutableTextStyle *hitAnnotationTextStyle = [CPTMutableTextStyle textStyle];
479-
hitAnnotationTextStyle.color = [CPTColor whiteColor];
493+
hitAnnotationTextStyle.color = [CPTColor colorWithNSColor:[NSColor labelColor]];
480494
hitAnnotationTextStyle.fontSize = CPTFloat(16.0);
481495
hitAnnotationTextStyle.fontName = @"Helvetica-Bold";
482496

@@ -521,14 +535,15 @@ -(void)barPlot:(nonnull CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUIntege
521535

522536
// Setup a style for the annotation
523537
CPTMutableTextStyle *hitAnnotationTextStyle = [CPTMutableTextStyle textStyle];
524-
hitAnnotationTextStyle.color = [CPTColor redColor];
538+
hitAnnotationTextStyle.color = [CPTColor colorWithNSColor:[NSColor labelColor]];
525539
hitAnnotationTextStyle.fontSize = 16.0;
526540
hitAnnotationTextStyle.fontName = @"Helvetica-Bold";
527541

528542
// Determine point of symbol in plot coordinates
529543

530-
NSNumber *x = @0;
531-
NSNumber *y = [self numberForPlot:plot field:0 recordIndex:index];
544+
NSNumber *x = @0;
545+
NSNumber *y = [self numberForPlot:plot field:CPTBarPlotFieldBarLocation recordIndex:index];
546+
532547
CPTNumberArray *anchorPoint = @[x, @(index)];
533548

534549
// Add annotation
@@ -538,10 +553,10 @@ -(void)barPlot:(nonnull CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUIntege
538553
NSString *yString = [formatter stringFromNumber:y];
539554

540555
// Now add the annotation to the plot area
541-
CPTPlotSpace *defaultSpace = self.graph.defaultPlotSpace;
542-
if ( defaultSpace ) {
556+
CPTPlotSpace *plotSpace = plot.plotSpace;
557+
if ( plotSpace ) {
543558
CPTTextLayer *textLayer = [[CPTTextLayer alloc] initWithText:yString style:hitAnnotationTextStyle];
544-
annotation = [[CPTPlotSpaceAnnotation alloc] initWithPlotSpace:defaultSpace anchorPlotPoint:anchorPoint];
559+
annotation = [[CPTPlotSpaceAnnotation alloc] initWithPlotSpace:plotSpace anchorPlotPoint:anchorPoint];
545560
annotation.contentLayer = textLayer;
546561
annotation.displacement = CGPointMake(0.0, 0.0);
547562
[self.graph.plotAreaFrame.plotArea addAnnotation:annotation];

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.