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 code formatting for Uncrustify 0.69. · core-plot/core-plot@e717543

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • QCPlugin
    • CPTScatterPlotPlugin.m
    • CorePlotQCPlugin.m
  • examples
    • AAPLot/Classes
      • MainViewController.m
    • CPTTestApp/Source
      • CPTPlotSymbolTestController.m
      • Controller.m
      • RotationView.m
    • CorePlotGallery/src
      • ios
        • AppDelegate.m
        • RootViewController.m
        • main.m
      • mac
        • PlotGalleryController.m
      • plots
        • CandlestickPlot.m
        • ColoredBarChart.m
        • CompositePlot.m
        • ControlChart.m
        • CurvedInterpolationDemo.m
        • CurvedScatterPlot.m
        • DatePlot.m
        • DonutChart.m
        • FunctionPlot.m
        • OHLCPlot.m
        • RangePlot.m
        • RealTimePlot.m
        • SimplePieChart.m
        • VerticalBarChart.m
      • shared
        • PiNumberFormatter.m
        • PlotItem.m
      • tvOS
        • main.m
    • DropPlot
      • CPTPlotDocument.m
    • StockPlot/Classes
      • APYahooDataPuller.m
  • framework
    • MacOnly
      • CPTGraphHostingView.m
      • CPTPlatformSpecificCategories.m
    • Source
      • CPTAnimation.h
      • CPTAnimation.m
      • CPTAxis.m
      • CPTAxisLabel.m
      • CPTAxisLabelTests.m
      • CPTAxisTitle.m
      • CPTBarPlot.m
      • CPTBorderedLayer.m
      • CPTColor.m
      • CPTDataSourceTestCase.m
      • CPTDefinitions.h
      • CPTFunctionDataSource.h
      • CPTFunctionDataSource.m
      • CPTGradient.m
      • CPTGraph.m
      • CPTImage.m
      • CPTLayer.h
      • CPTLayer.m
      • CPTLayerAnnotation.m
      • CPTLayerTests.m
      • CPTLegend.m
      • CPTLegendEntry.m
      • CPTLineCap.m
      • CPTLineStyle.m
      • CPTMutableNumericData.m
      • CPTMutableNumericDataTests.m
      • CPTMutableNumericDataTypeConversionTests.m
      • CPTMutablePlotRange.m
      • CPTNumericData+TypeConversion.m
      • CPTNumericData.m
      • CPTNumericDataTests.m
      • CPTNumericDataType.m
      • CPTNumericDataTypeConversionPerformanceTests.m
      • CPTNumericDataTypeConversionTests.m
      • CPTPathExtensions.m
      • CPTPieChart.m
      • CPTPlot.h
      • CPTPlot.m
      • CPTPlotArea.m
      • CPTPlotRange.m
      • CPTPlotRangeTests.m
      • CPTPlotSpace.m
      • CPTPlotSpaceAnnotation.m
      • CPTPlotSymbol.m
      • CPTRangePlot.m
      • CPTScatterPlot.m
      • CPTScatterPlotTests.m
      • CPTShadow.m
      • CPTTextLayer.m
      • CPTTradingRangePlot.m
      • CPTUtilities.m
      • CPTUtilitiesTests.m
      • CPTXYAxis.m
      • CPTXYPlotSpace.m
      • CPTXYPlotSpaceTests.m
      • NSCoderExtensions.m
      • _CPTAnimationCGFloatPeriod.m
      • _CPTAnimationNSDecimalPeriod.m
      • _CPTAnimationNSNumberPeriod.m
      • _CPTAnimationPlotRangePeriod.m
      • _CPTAnimationTimingFunctions.m
      • _CPTConstraintsFixed.m
      • _CPTConstraintsRelative.m
      • _CPTMaskLayer.m
    • iPhoneOnly
      • CPTGraphHostingView.m
      • CPTPlatformSpecificCategories.m
  • scripts
    • uncrustify.cfg

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎QCPlugin/CPTScatterPlotPlugin.m‎

Copy file name to clipboardExpand all lines: QCPlugin/CPTScatterPlotPlugin.m
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ -(BOOL)configurePlots
197197
if ( fillColor ) {
198198
plot.areaFill = [CPTFill fillWithColor:[CPTColor colorWithCGColor:fillColor]];
199199
}
200-
plot.areaBaseValue = @(MAX(self.inputYMin, MIN(self.inputYMax, 0.0) ) );
200+
plot.areaBaseValue = @( MAX( self.inputYMin, MIN(self.inputYMax, 0.0) ) );
201201

202202
[plot reloadData];
203203
}
Collapse file

‎QCPlugin/CorePlotQCPlugin.m‎

Copy file name to clipboardExpand all lines: QCPlugin/CorePlotQCPlugin.m
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,11 @@ -(BOOL)configureAxis
451451
set.xAxis.labelTextStyle = textStyle;
452452

453453
double xrange = self.inputXMax - self.inputXMin;
454-
set.xAxis.majorIntervalLength = @(xrange / (self.inputXMajorIntervals) );
454+
set.xAxis.majorIntervalLength = @( xrange / (self.inputXMajorIntervals) );
455455
set.xAxis.minorTicksPerInterval = self.inputXMinorIntervals;
456456

457457
double yrange = self.inputYMax - self.inputYMin;
458-
set.yAxis.majorIntervalLength = @(yrange / (self.inputYMajorIntervals) );
458+
set.yAxis.majorIntervalLength = @( yrange / (self.inputYMajorIntervals) );
459459
set.yAxis.minorTicksPerInterval = self.inputYMinorIntervals;
460460

461461
set.xAxis.minorTickLength = self.inputAxisMinorTickLength;
@@ -577,7 +577,7 @@ -(void)createImageResourcesWithContext:(nonnull id<QCPlugInContext>)context
577577
size_t rowBytes = (size_t)boundsSize.width * 4;
578578

579579
if ( rowBytes % 16 ) {
580-
rowBytes = ( (rowBytes / 16) + 1 ) * 16;
580+
rowBytes = ( (rowBytes / 16) + 1) * 16;
581581
}
582582

583583
if ( !self.imageData ) {
@@ -610,7 +610,7 @@ -(void)createImageResourcesWithContext:(nonnull id<QCPlugInContext>)context
610610
CGContextRelease(newContext);
611611

612612
if ( rowBytes % 16 ) {
613-
rowBytes = ( (rowBytes / 16) + 1 ) * 16;
613+
rowBytes = ( (rowBytes / 16) + 1) * 16;
614614
}
615615

616616
// Note: I don't have a PPC to test on so this may or may not cause some color issues
@@ -751,7 +751,7 @@ -(BOOL)configureGraph
751751
*/
752752

753753
// Configure the graph area
754-
CGRect frame = CPTRectMake(0.0, 0.0, MAX(1, self.inputPixelsWide), MAX(1, self.inputPixelsHigh) );
754+
CGRect frame = CPTRectMake( 0.0, 0.0, MAX(1, self.inputPixelsWide), MAX(1, self.inputPixelsHigh) );
755755

756756
self.graph.bounds = frame;
757757

@@ -812,17 +812,17 @@ -(BOOL)execute:(nonnull id<QCPlugInContext>)context atTime:(NSTimeInterval)time
812812
// Draw the plot ...
813813
CGSize boundsSize = self.graph.bounds.size;
814814
CGContextRef bmContext = self.bitmapContext;
815-
CGContextClearRect(bmContext, CPTRectMake(0.0, 0.0, boundsSize.width, boundsSize.height) );
815+
CGContextClearRect( bmContext, CPTRectMake(0.0, 0.0, boundsSize.width, boundsSize.height) );
816816
CGContextSetRGBFillColor(bmContext, 0.0, 0.0, 0.0, 0.0);
817-
CGContextFillRect(bmContext, CPTRectMake(0, 0, boundsSize.width, boundsSize.height) );
817+
CGContextFillRect( bmContext, CPTRectMake(0, 0, boundsSize.width, boundsSize.height) );
818818
CGContextSetAllowsAntialiasing(bmContext, true);
819819

820820
if ( configurationCheck ) {
821821
[self configurePlots];
822822
[self.graph recursivelyRenderInContext:bmContext];
823823
}
824824
else {
825-
drawErrorText(bmContext, CPTRectMake(0, 0, self.inputPixelsWide, self.inputPixelsHigh) );
825+
drawErrorText( bmContext, CPTRectMake(0, 0, self.inputPixelsWide, self.inputPixelsHigh) );
826826
}
827827

828828
// CGContextSetAllowsAntialiasing(bitmapContext, false);
Collapse file

‎examples/AAPLot/Classes/MainViewController.m‎

Copy file name to clipboardExpand all lines: examples/AAPLot/Classes/MainViewController.m
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ -(nullable CPTNumericData *)dataForPlot:(nonnull CPTPlot *)plot recordIndexRange
155155
numFields = 2;
156156
}
157157

158-
NSMutableData *data = [[NSMutableData alloc] initWithLength:indexRange.length * numFields * (useDoubles ? sizeof(double) : sizeof(NSDecimal) )];
158+
NSMutableData *data = [[NSMutableData alloc] initWithLength:indexRange.length * numFields * ( useDoubles ? sizeof(double) : sizeof(NSDecimal) )];
159159

160160
const NSUInteger maxIndex = NSMaxRange(indexRange);
161161

@@ -376,7 +376,7 @@ -(nullable CPTNumericData *)dataForPlot:(nonnull CPTPlot *)plot recordIndexRange
376376
numFields = 2;
377377
}
378378

379-
NSMutableData *data = [[NSMutableData alloc] initWithLength:indexRange.length * numFields * (useDoubles ? sizeof(double) : sizeof(NSDecimal) )];
379+
NSMutableData *data = [[NSMutableData alloc] initWithLength:indexRange.length * numFields * ( useDoubles ? sizeof(double) : sizeof(NSDecimal) )];
380380

381381
const NSUInteger maxIndex = NSMaxRange(indexRange);
382382

@@ -652,7 +652,7 @@ -(void)dataPullerDidFinishFetch:(nonnull APYahooDataPuller *)dp
652652
animationOperation = [CPTAnimation animate:volumePlotSpace
653653
property:@"yRange"
654654
fromPlotRange:[CPTPlotRange plotRangeWithLocationDecimal:volumeLowDisplayLocation.decimalValue
655-
lengthDecimal:CPTDecimalMultiply(volumeLengthDisplayLocation.decimalValue, CPTDecimalFromInteger(10) )]
655+
lengthDecimal:CPTDecimalMultiply( volumeLengthDisplayLocation.decimalValue, CPTDecimalFromInteger(10) )]
656656
toPlotRange:[CPTPlotRange plotRangeWithLocation:volumeLowDisplayLocation
657657
length:volumeLengthDisplayLocation]
658658
duration:2.5];
Collapse file

‎examples/CPTTestApp/Source/CPTPlotSymbolTestController.m‎

Copy file name to clipboardExpand all lines: examples/CPTTestApp/Source/CPTPlotSymbolTestController.m
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ -(nullable id)numberForPlot:(nonnull CPTPlot *)plot field:(NSUInteger)fieldEnum
8282
break;
8383

8484
case CPTScatterPlotFieldY:
85-
num = @( ( (NSString *)plot.identifier ).integerValue );
85+
num = @( ( (NSString *)plot.identifier).integerValue);
8686
break;
8787

8888
default:
@@ -103,7 +103,7 @@ -(nullable CPTPlotSymbol *)symbolForScatterPlot:(nonnull CPTScatterPlot *)plot r
103103
symbolShadow.shadowColor = [CPTColor blackColor];
104104

105105
CPTPlotSymbol *symbol = [[CPTPlotSymbol alloc] init];
106-
symbol.symbolType = (CPTPlotSymbolType)( (NSString *)plot.identifier ).intValue;
106+
symbol.symbolType = (CPTPlotSymbolType)( (NSString *)plot.identifier).intValue;
107107
symbol.fill = [CPTFill fillWithGradient:gradientFill];
108108
symbol.shadow = symbolShadow;
109109

@@ -116,9 +116,9 @@ -(nullable CPTPlotSymbol *)symbolForScatterPlot:(nonnull CPTScatterPlot *)plot r
116116
CGMutablePathRef path = CGPathCreateMutable();
117117
CGPathMoveToPoint(path, NULL, 0., 0.);
118118

119-
CGPathAddEllipseInRect(path, NULL, CGRectMake(0., 0., 10., 10.) );
120-
CGPathAddEllipseInRect(path, NULL, CGRectMake(1.5, 4., 3., 3.) );
121-
CGPathAddEllipseInRect(path, NULL, CGRectMake(5.5, 4., 3., 3.) );
119+
CGPathAddEllipseInRect( path, NULL, CGRectMake(0., 0., 10., 10.) );
120+
CGPathAddEllipseInRect( path, NULL, CGRectMake(1.5, 4., 3., 3.) );
121+
CGPathAddEllipseInRect( path, NULL, CGRectMake(5.5, 4., 3., 3.) );
122122
CGPathMoveToPoint(path, NULL, 5., 2.);
123123
CGPathAddArc(path, NULL, 5., 3.3, 2.8, 0., M_PI, TRUE);
124124
CGPathCloseSubpath(path);
Collapse file

‎examples/CPTTestApp/Source/Controller.m‎

Copy file name to clipboardExpand all lines: examples/CPTTestApp/Source/Controller.m
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ -(void)awakeFromNib
6464

6565
-(id)newObject
6666
{
67-
NSNumber *x1 = @(1.0 + ( (NSMutableArray *)self.content ).count * 0.05);
67+
NSNumber *x1 = @(1.0 + ( (NSMutableArray *)self.content).count * 0.05);
6868
NSNumber *y1 = @(1.2 * arc4random() / (double)UINT32_MAX + 1.2);
6969

7070
return @{
@@ -780,7 +780,7 @@ -(void)setLabelRotation:(CGFloat)newRotation
780780
{
781781
labelRotation = newRotation;
782782

783-
( (CPTXYAxisSet *)self.graph.axisSet ).yAxis.labelRotation = newRotation;
783+
( (CPTXYAxisSet *)self.graph.axisSet).yAxis.labelRotation = newRotation;
784784
[self.graph plotWithIdentifier:dataSourcePlot].labelRotation = newRotation;
785785
}
786786

Collapse file

‎examples/CPTTestApp/Source/RotationView.m‎

Copy file name to clipboardExpand all lines: examples/CPTTestApp/Source/RotationView.m
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ -(void)mouseDragged:(nonnull NSEvent *)theEvent
5050
CGFloat totalRotation = sqrt(displacementInX * displacementInX + displacementInY * displacementInY);
5151

5252
CATransform3D oldTransform = self.rotationTransform;
53-
CATransform3D newTransform = CATransform3DRotate(oldTransform, totalRotation * M_PI / 180.0,
54-
( (displacementInX / totalRotation) * oldTransform.m12 + (displacementInY / totalRotation) * oldTransform.m11 ),
55-
( (displacementInX / totalRotation) * oldTransform.m22 + (displacementInY / totalRotation) * oldTransform.m21 ),
56-
( (displacementInX / totalRotation) * oldTransform.m32 + (displacementInY / totalRotation) * oldTransform.m31 ) );
53+
CATransform3D newTransform = CATransform3DRotate( oldTransform, totalRotation * M_PI / 180.0,
54+
( (displacementInX / totalRotation) * oldTransform.m12 + (displacementInY / totalRotation) * oldTransform.m11),
55+
( (displacementInX / totalRotation) * oldTransform.m22 + (displacementInY / totalRotation) * oldTransform.m21),
56+
( (displacementInX / totalRotation) * oldTransform.m32 + (displacementInY / totalRotation) * oldTransform.m31) );
5757

5858
id<CPTRotationDelegate> theDelegate = self.rotationDelegate;
5959

Collapse file

‎examples/CorePlotGallery/src/ios/AppDelegate.m‎

Copy file name to clipboardExpand all lines: examples/CorePlotGallery/src/ios/AppDelegate.m
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ -(BOOL)application:(nonnull UIApplication *)application didFinishLaunchingWithOp
3535

3636
-(BOOL)splitViewController:(UISplitViewController *)splitViewController collapseSecondaryViewController:(UIViewController *)secondaryViewController ontoPrimaryViewController:(UIViewController *)primaryViewController
3737
{
38-
if ( [secondaryViewController isKindOfClass:[UINavigationController class]] && [( (UINavigationController *)secondaryViewController ).topViewController isKindOfClass:[DetailViewController class]] && ( ( (DetailViewController *)( (UINavigationController *)secondaryViewController ).topViewController ).detailItem == nil ) ) {
38+
if ( [secondaryViewController isKindOfClass:[UINavigationController class]] && [( (UINavigationController *)secondaryViewController).topViewController isKindOfClass:[DetailViewController class]] && ( ( (DetailViewController *)( (UINavigationController *)secondaryViewController).topViewController).detailItem == nil) ) {
3939
// Return YES to indicate that we have handled the collapse by doing nothing; the secondary controller will be discarded.
4040
return YES;
4141
}
Collapse file

‎examples/CorePlotGallery/src/ios/RootViewController.m‎

Copy file name to clipboardExpand all lines: examples/CorePlotGallery/src/ios/RootViewController.m
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ -(void)dealloc
5050
-(void)prepareForSegue:(nonnull UIStoryboardSegue *)segue sender:(nullable id)sender
5151
{
5252
if ( [segue.identifier isEqualToString:@"showDetail"] ) {
53-
DetailViewController *controller = (DetailViewController *)( (UINavigationController *)segue.destinationViewController ).topViewController;
53+
DetailViewController *controller = (DetailViewController *)( (UINavigationController *)segue.destinationViewController).topViewController;
5454

5555
controller.navigationItem.leftBarButtonItem = self.splitViewController.displayModeButtonItem;
5656
controller.navigationItem.leftItemsSupplementBackButton = YES;
Collapse file

‎examples/CorePlotGallery/src/ios/main.m‎

Copy file name to clipboardExpand all lines: examples/CorePlotGallery/src/ios/main.m
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
int main(int argc, char *argv[])
99
{
1010
@autoreleasepool {
11-
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]) );
11+
return UIApplicationMain( argc, argv, nil, NSStringFromClass([AppDelegate class]) );
1212
}
1313
}
Collapse file

‎examples/CorePlotGallery/src/mac/PlotGalleryController.m‎

Copy file name to clipboardExpand all lines: examples/CorePlotGallery/src/mac/PlotGalleryController.m
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ -(void)exportTVImageWithSize:(CGSize)size toURL:(NSURL *)url showPlots:(BOOL)sho
167167
NSGraphicsContext *bitmapContext = [NSGraphicsContext graphicsContextWithBitmapImageRep:layerImage];
168168
CGContextRef context = (CGContextRef)bitmapContext.graphicsPort;
169169

170-
CGContextClearRect(context, CGRectMake(0.0, 0.0, boundsSize.width, boundsSize.height) );
170+
CGContextClearRect( context, CGRectMake(0.0, 0.0, boundsSize.width, boundsSize.height) );
171171
CGContextSetAllowsAntialiasing(context, true);
172172
CGContextSetShouldSmoothFonts(context, false);
173173
[imageView.layer renderInContext:context];

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.