Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTPlotSpace Class Reference

Defines the coordinate system of a plot. More...

#import <CPTPlotSpace.h>

+ Inheritance diagram for CPTPlotSpace:
+ Collaboration diagram for CPTPlotSpace:

Public Instance Methods

(CGPoint- plotAreaViewPointForPlotPoint: [implementation]
 Converts a data point to plot area drawing coordinates. More...
 
(CGPoint- plotAreaViewPointForPlotPoint:numberOfCoordinates: [implementation]
 Converts a data point to plot area drawing coordinates. More...
 
(CGPoint- plotAreaViewPointForDoublePrecisionPlotPoint:numberOfCoordinates: [implementation]
 Converts a data point to plot area drawing coordinates. More...
 
(nullable CPTNumberArray *) - plotPointForPlotAreaViewPoint: [implementation]
 Converts a point given in plot area drawing coordinates to the data coordinate space. More...
 
(void) - plotPoint:numberOfCoordinates:forPlotAreaViewPoint: [implementation]
 Converts a point given in plot area drawing coordinates to the data coordinate space. More...
 
(void) - doublePrecisionPlotPoint:numberOfCoordinates:forPlotAreaViewPoint: [implementation]
 Converts a point given in drawing coordinates to the data coordinate space. More...
 
(CGPoint- plotAreaViewPointForEvent: [implementation]
 Converts the interaction point of an OS event to plot area drawing coordinates. More...
 
(nullable CPTNumberArray *) - plotPointForEvent: [implementation]
 Converts the interaction point of an OS event to the data coordinate space. More...
 
(void) - plotPoint:numberOfCoordinates:forEvent: [implementation]
 Converts the interaction point of an OS event to the data coordinate space. More...
 
(void) - doublePrecisionPlotPoint:numberOfCoordinates:forEvent: [implementation]
 Converts the interaction point of an OS event to the data coordinate space. More...
 
(void) - setPlotRange:forCoordinate: [implementation]
 Sets the range of values for a given coordinate. More...
 
(nullable CPTPlotRange *) - plotRangeForCoordinate: [implementation]
 Gets the range of values for a given coordinate. More...
 
(void) - setScaleType:forCoordinate: [implementation]
 Sets the scale type for a given coordinate. More...
 
(CPTScaleType- scaleTypeForCoordinate: [implementation]
 Gets the scale type for a given coordinate. More...
 
(void) - scaleToFitPlots: [implementation]
 Scales the plot ranges so that the plots just fit in the visible space. More...
 
(void) - scaleToFitEntirePlots: [implementation]
 Scales the plot ranges so that the plots just fit in the visible space. More...
 
(void) - scaleBy:aboutPoint: [implementation]
 Zooms the plot space equally in each dimension. More...
 
Categorical Data
(void) - addCategory:forCoordinate:
 Add a new category name for the given coordinate. More...
 
(void) - removeCategory:forCoordinate:
 Removes the named category for the given coordinate. More...
 
(void) - insertCategory:forCoordinate:atIndex:
 Add a new category name for the given coordinate at the given index in the list of category names. More...
 
(void) - setCategories:forCoordinate:
 Replace all category names for the given coordinate with the names in the supplied array. More...
 
(void) - removeAllCategories
 Remove all categories for every coordinate. More...
 
(nonnull CPTStringArray *) - categoriesForCoordinate:
 Returns a list of all category names for the given coordinate. More...
 
(nullable NSString *) - categoryForCoordinate:atIndex:
 Returns the category name for the given coordinate at the given index in the list of category names. More...
 
(NSUInteger- indexOfCategory:forCoordinate:
 Returns the index of the given category name in the list of category names for the given coordinate. More...
 
Initialization
(nonnull instancetype) - init
 Initializes a newly allocated CPTPlotSpace object. More...
 
(nullable instancetype) - initWithCoder:
 Returns an object initialized from data in a given unarchiver. More...
 
User Interaction
(BOOL- pointingDeviceDownEvent:atPoint: [implementation]
 Informs the receiver that the user has touched the screen. More...
 
(BOOL- pointingDeviceUpEvent:atPoint: [implementation]
 Informs the receiver that the user has lifted their finger off the screen. More...
 
(BOOL- pointingDeviceDraggedEvent:atPoint: [implementation]
 Informs the receiver that the user has moved their finger while touching the screen. More...
 
(BOOL- pointingDeviceCancelledEvent: [implementation]
 Informs the receiver that tracking of touches has been cancelled for any reason. More...
 
Coordinate Space Conversions
(CGPoint- plotAreaViewPointForPlotPoint:
 
(CGPoint- plotAreaViewPointForPlotPoint:numberOfCoordinates:
 
(CGPoint- plotAreaViewPointForDoublePrecisionPlotPoint:numberOfCoordinates:
 
(nullable CPTNumberArray *) - plotPointForPlotAreaViewPoint:
 
(void) - plotPoint:numberOfCoordinates:forPlotAreaViewPoint:
 
(void) - doublePrecisionPlotPoint:numberOfCoordinates:forPlotAreaViewPoint:
 
(CGPoint- plotAreaViewPointForEvent:
 
(nullable CPTNumberArray *) - plotPointForEvent:
 
(void) - plotPoint:numberOfCoordinates:forEvent:
 
(void) - doublePrecisionPlotPoint:numberOfCoordinates:forEvent:
 
Coordinate Range
(void) - setPlotRange:forCoordinate:
 
(nullable CPTPlotRange *) - plotRangeForCoordinate:
 
Scale Types
(void) - setScaleType:forCoordinate:
 
(CPTScaleType- scaleTypeForCoordinate:
 
Adjusting Ranges
(void) - scaleToFitPlots:
 
(void) - scaleToFitPlots:forCoordinate:
 Scales the plot range for the given coordinate so that the plots just fit in the visible space. More...
 
(void) - scaleToFitEntirePlots:
 
(void) - scaleToFitEntirePlots:forCoordinate:
 Scales the plot range for the given coordinate so that the plots just fit in the visible space. More...
 
(void) - scaleBy:aboutPoint:
 
- Public Instance Methods inherited from NSObject
(Class- classForCoder
 
(id- copy
 
(void) - dealloc
 
(void) - finalize
 
(id- init
 
(id- mutableCopy
 
- Public Instance Methods inherited from <NSObject>
(NSString *) - description
 
(NSUInteger- hash
 
(BOOL- isEqual:
 
User Interaction
- Public Instance Methods inherited from <NSCoding>
(id- initWithCoder:
 
(void) - encodeWithCoder:
 

Properties

id< NSCopying, NSCoding, NSObjectidentifier
 An object used to identify the plot in collections. More...
 
BOOL allowsUserInteraction
 Determines whether user can interactively change plot range and/or zoom. More...
 
BOOL isDragging
 Returns YES when the user is actively dragging the plot space. More...
 
CPTGraphgraph
 The graph of the space. More...
 
id< CPTPlotSpaceDelegatedelegate
 The plot space delegate. More...
 
NSUInteger numberOfCoordinates
 The number of coordinate values that determine a point in the plot space. More...
 

Additional Inherited Members

- Public Class Methods inherited from NSObject
(id+ alloc
 
(Class+ class
 
(void) + initialize
 
(void) + load
 
(id+ new
 
- Public Class Methods inherited from <NSSecureCoding>
(BOOL+ supportsSecureCoding:
 

Detailed Description

Defines the coordinate system of a plot.

A plot space determines the mapping between data coordinates and device coordinates in the plot area.

Method Documentation

◆ addCategory:forCoordinate:

- (void) addCategory: (nonnull NSString *)  category
forCoordinate: (CPTCoordinate coordinate 

Add a new category name for the given coordinate.

Category names must be unique for each coordinate. Adding the same name more than once has no effect.

Parameters
categoryThe category name.
coordinateThe axis coordinate.

◆ categoriesForCoordinate:

- (nonnull CPTStringArray *) categoriesForCoordinate: (CPTCoordinate coordinate

Returns a list of all category names for the given coordinate.

Parameters
coordinateThe axis coordinate.
Returns
An array of category names.

◆ categoryForCoordinate:atIndex:

- (nullable NSString *) categoryForCoordinate: (CPTCoordinate coordinate
atIndex: (NSUInteger idx 

Returns the category name for the given coordinate at the given index in the list of category names.

Parameters
coordinateThe axis coordinate.
idxThe index in the list of category names.
Returns
The category name.

◆ doublePrecisionPlotPoint:numberOfCoordinates:forEvent: [1/2]

- (void) doublePrecisionPlotPoint: (nonnull double *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count
forEvent: (nonnull CPTNativeEvent *__unused)  event 
implementation

Converts the interaction point of an OS event to the data coordinate space.

Parameters
plotPointA c-style array of data point coordinates (as double values).
countThe number of coordinate values in the plotPoint array.
eventThe event.

Provided by category CPTPlotSpace(AbstractMethods).

◆ doublePrecisionPlotPoint:numberOfCoordinates:forEvent: [2/2]

- (void) doublePrecisionPlotPoint: (nonnull double *)  plotPoint
numberOfCoordinates: (NSUInteger count
forEvent: (nonnull CPTNativeEvent *)  event 

Provided by category CPTPlotSpace(AbstractMethods).

◆ doublePrecisionPlotPoint:numberOfCoordinates:forPlotAreaViewPoint: [1/2]

- (void) doublePrecisionPlotPoint: (nonnull double *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count
forPlotAreaViewPoint: (CGPoint __unused)  point 
implementation

Converts a point given in drawing coordinates to the data coordinate space.

Parameters
plotPointA c-style array of data point coordinates (as double values).
countThe number of coordinate values in the plotPoint array.
pointThe drawing coordinates of the data point.

Provided by category CPTPlotSpace(AbstractMethods).

◆ doublePrecisionPlotPoint:numberOfCoordinates:forPlotAreaViewPoint: [2/2]

- (void) doublePrecisionPlotPoint: (nonnull double *)  plotPoint
numberOfCoordinates: (NSUInteger count
forPlotAreaViewPoint: (CGPoint point 

Provided by category CPTPlotSpace(AbstractMethods).

◆ indexOfCategory:forCoordinate:

- (NSUInteger) indexOfCategory: (nonnull NSString *)  category
forCoordinate: (CPTCoordinate coordinate 

Returns the index of the given category name in the list of category names for the given coordinate.

Parameters
categoryThe category name.
coordinateThe axis coordinate.
Returns
The category index.

◆ init

- (nonnull instancetype) init

Initializes a newly allocated CPTPlotSpace object.

The initialized object will have the following properties:

Returns
The initialized object.

Reimplemented in CPTXYPlotSpace.

◆ initWithCoder:

- (nullable instancetype) initWithCoder: (nonnull NSCoder *)  coder

Returns an object initialized from data in a given unarchiver.

Parameters
coderAn unarchiver object.
Returns
An object initialized from data in a given unarchiver.

◆ insertCategory:forCoordinate:atIndex:

- (void) insertCategory: (nonnull NSString *)  category
forCoordinate: (CPTCoordinate coordinate
atIndex: (NSUInteger idx 

Add a new category name for the given coordinate at the given index in the list of category names.

Category names must be unique for each coordinate. Adding the same name more than once has no effect.

Parameters
categoryThe category name.
coordinateThe axis coordinate.
idxThe index in the list of category names.

◆ plotAreaViewPointForDoublePrecisionPlotPoint:numberOfCoordinates: [1/2]

- (CGPoint) plotAreaViewPointForDoublePrecisionPlotPoint: (nonnull double *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count 
implementation

Converts a data point to plot area drawing coordinates.

Parameters
plotPointA c-style array of data point coordinates (as double values).
countThe number of coordinate values in the plotPoint array.
Returns
The drawing coordinates of the data point.

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotAreaViewPointForDoublePrecisionPlotPoint:numberOfCoordinates: [2/2]

- (CGPoint) plotAreaViewPointForDoublePrecisionPlotPoint: (nonnull double *)  plotPoint
numberOfCoordinates: (NSUInteger count 

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotAreaViewPointForEvent: [1/2]

- (CGPoint) plotAreaViewPointForEvent: (nonnull CPTNativeEvent *__unused)  event
implementation

Converts the interaction point of an OS event to plot area drawing coordinates.

Parameters
eventThe event.
Returns
The drawing coordinates of the point.

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotAreaViewPointForEvent: [2/2]

- (CGPoint) plotAreaViewPointForEvent: (nonnull CPTNativeEvent *)  event

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotAreaViewPointForPlotPoint: [1/2]

- (CGPoint) plotAreaViewPointForPlotPoint: (nonnull CPTNumberArray *cpt_unused plotPoint
implementation

Converts a data point to plot area drawing coordinates.

Parameters
plotPointAn array of data point coordinates (as NSNumber values).
Returns
The drawing coordinates of the data point.

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotAreaViewPointForPlotPoint: [2/2]

- (CGPoint) plotAreaViewPointForPlotPoint: (nonnull CPTNumberArray *)  plotPoint

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotAreaViewPointForPlotPoint:numberOfCoordinates: [1/2]

- (CGPoint) plotAreaViewPointForPlotPoint: (nonnull NSDecimal *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count 
implementation

Converts a data point to plot area drawing coordinates.

Parameters
plotPointA c-style array of data point coordinates (as NSDecimal structs).
countThe number of coordinate values in the plotPoint array.
Returns
The drawing coordinates of the data point.

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotAreaViewPointForPlotPoint:numberOfCoordinates: [2/2]

- (CGPoint) plotAreaViewPointForPlotPoint: (nonnull NSDecimal *)  plotPoint
numberOfCoordinates: (NSUInteger count 

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotPoint:numberOfCoordinates:forEvent: [1/2]

- (void) plotPoint: (nonnull NSDecimal *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count
forEvent: (nonnull CPTNativeEvent *__unused)  event 
implementation

Converts the interaction point of an OS event to the data coordinate space.

Parameters
plotPointA c-style array of data point coordinates (as NSDecimal structs).
countThe number of coordinate values in the plotPoint array.
eventThe event.

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotPoint:numberOfCoordinates:forEvent: [2/2]

- (void) plotPoint: (nonnull NSDecimal *)  plotPoint
numberOfCoordinates: (NSUInteger count
forEvent: (nonnull CPTNativeEvent *)  event 

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotPoint:numberOfCoordinates:forPlotAreaViewPoint: [1/2]

- (void) plotPoint: (nonnull NSDecimal *__unused)  plotPoint
numberOfCoordinates: (NSUInteger cpt_unused count
forPlotAreaViewPoint: (CGPoint __unused)  point 
implementation

Converts a point given in plot area drawing coordinates to the data coordinate space.

Parameters
plotPointA c-style array of data point coordinates (as NSDecimal structs).
countThe number of coordinate values in the plotPoint array.
pointThe drawing coordinates of the data point.

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotPoint:numberOfCoordinates:forPlotAreaViewPoint: [2/2]

- (void) plotPoint: (nonnull NSDecimal *)  plotPoint
numberOfCoordinates: (NSUInteger count
forPlotAreaViewPoint: (CGPoint point 

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotPointForEvent: [1/2]

- (nullable CPTNumberArray *) plotPointForEvent: (nonnull CPTNativeEvent *__unused)  event
implementation

Converts the interaction point of an OS event to the data coordinate space.

Parameters
eventThe event.
Returns
An array of data point coordinates (as NSNumber values).

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotPointForEvent: [2/2]

- (nullable CPTNumberArray *) plotPointForEvent: (nonnull CPTNativeEvent *)  event

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotPointForPlotAreaViewPoint: [1/2]

- (nullable CPTNumberArray *) plotPointForPlotAreaViewPoint: (CGPoint __unused)  point
implementation

Converts a point given in plot area drawing coordinates to the data coordinate space.

Parameters
pointThe drawing coordinates of the data point.
Returns
An array of data point coordinates (as NSNumber values).

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotPointForPlotAreaViewPoint: [2/2]

- (nullable CPTNumberArray *) plotPointForPlotAreaViewPoint: (CGPoint point

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotRangeForCoordinate: [1/2]

- (nullable CPTPlotRange *) plotRangeForCoordinate: (CPTCoordinate __unused)  coordinate
implementation

Gets the range of values for a given coordinate.

Parameters
coordinateThe axis coordinate.
Returns
The range of values.

Provided by category CPTPlotSpace(AbstractMethods).

◆ plotRangeForCoordinate: [2/2]

- (nullable CPTPlotRange *) plotRangeForCoordinate: (CPTCoordinate coordinate

Provided by category CPTPlotSpace(AbstractMethods).

◆ pointingDeviceCancelledEvent:

- (BOOL) pointingDeviceCancelledEvent: (nonnull CPTNativeEvent *)  event
implementation

Informs the receiver that tracking of touches has been cancelled for any reason.

If the receiver does not have a delegate, this method always returns NO. Otherwise, the -plotSpace:shouldHandlePointingDeviceCancelledEvent: delegate method is called. If it returns NO, this method returns YES to indicate that the event has been handled and no further processing should occur.

Parameters
eventThe OS event.
Returns
Whether the event was handled or not.

Reimplemented from <CPTResponder>.

◆ pointingDeviceDownEvent:atPoint:

- (BOOL) pointingDeviceDownEvent: (nonnull CPTNativeEvent *)  event
atPoint: (CGPoint interactionPoint 
implementation

Informs the receiver that the user has touched the screen.

If the receiver does not have a delegate, this method always returns NO. Otherwise, the -plotSpace:shouldHandlePointingDeviceDownEvent:atPoint: delegate method is called. If it returns NO, this method returns YES to indicate that the event has been handled and no further processing should occur.

Parameters
eventThe OS event.
interactionPointThe coordinates of the interaction.
Returns
Whether the event was handled or not.

Reimplemented from <CPTResponder>.

Reimplemented in CPTXYPlotSpace.

◆ pointingDeviceDraggedEvent:atPoint:

- (BOOL) pointingDeviceDraggedEvent: (nonnull CPTNativeEvent *)  event
atPoint: (CGPoint interactionPoint 
implementation

Informs the receiver that the user has moved their finger while touching the screen.

If the receiver does not have a delegate, this method always returns NO. Otherwise, the -plotSpace:shouldHandlePointingDeviceDraggedEvent:atPoint: delegate method is called. If it returns NO, this method returns YES to indicate that the event has been handled and no further processing should occur.

Parameters
eventThe OS event.
interactionPointThe coordinates of the interaction.
Returns
Whether the event was handled or not.

Reimplemented from <CPTResponder>.

Reimplemented in CPTXYPlotSpace.

◆ pointingDeviceUpEvent:atPoint:

- (BOOL) pointingDeviceUpEvent: (nonnull CPTNativeEvent *)  event
atPoint: (CGPoint interactionPoint 
implementation

Informs the receiver that the user has lifted their finger off the screen.

If the receiver does not have a delegate , this method always returns NO. Otherwise, the -plotSpace:shouldHandlePointingDeviceUpEvent:atPoint: delegate method is called. If it returns NO, this method returns YES to indicate that the event has been handled and no further processing should occur.

Parameters
eventThe OS event.
interactionPointThe coordinates of the interaction.
Returns
Whether the event was handled or not.

Reimplemented from <CPTResponder>.

Reimplemented in CPTXYPlotSpace.

◆ removeAllCategories

- (void) removeAllCategories

Remove all categories for every coordinate.

◆ removeCategory:forCoordinate:

- (void) removeCategory: (nonnull NSString *)  category
forCoordinate: (CPTCoordinate coordinate 

Removes the named category for the given coordinate.

Parameters
categoryThe category name.
coordinateThe axis coordinate.

◆ scaleBy:aboutPoint: [1/2]

- (void) scaleBy: (CGFloat __unused)  interactionScale
aboutPoint: (CGPoint __unused)  interactionPoint 
implementation

Zooms the plot space equally in each dimension.

Parameters
interactionScaleThe scaling factor. One (1) gives no scaling.
interactionPointThe plot area view point about which the scaling occurs.

Provided by category CPTPlotSpace(AbstractMethods).

◆ scaleBy:aboutPoint: [2/2]

- (void) scaleBy: (CGFloat interactionScale
aboutPoint: (CGPoint interactionPoint 

Provided by category CPTPlotSpace(AbstractMethods).

◆ scaleToFitEntirePlots: [1/2]

- (void) scaleToFitEntirePlots: (nullable CPTPlotArray *__unused)  plots
implementation

Scales the plot ranges so that the plots just fit in the visible space.

Parameters
plotsAn array of the plots that have to fit in the visible area.

Provided by category CPTPlotSpace(AbstractMethods).

◆ scaleToFitEntirePlots: [2/2]

- (void) scaleToFitEntirePlots: (nullable CPTPlotArray *)  plots

Provided by category CPTPlotSpace(AbstractMethods).

◆ scaleToFitEntirePlots:forCoordinate:

- (void) scaleToFitEntirePlots: (nullable CPTPlotArray *)  plots
forCoordinate: (CPTCoordinate coordinate 

Scales the plot range for the given coordinate so that the plots just fit in the visible space.

Parameters
plotsAn array of the plots that have to fit in the visible area.
coordinateThe axis coordinate.

Provided by category CPTPlotSpace(AbstractMethods).

◆ scaleToFitPlots: [1/2]

- (void) scaleToFitPlots: (nullable CPTPlotArray *__unused)  plots
implementation

Scales the plot ranges so that the plots just fit in the visible space.

Parameters
plotsAn array of the plots that have to fit in the visible area.

Provided by category CPTPlotSpace(AbstractMethods).

◆ scaleToFitPlots: [2/2]

- (void) scaleToFitPlots: (nullable CPTPlotArray *)  plots

Provided by category CPTPlotSpace(AbstractMethods).

◆ scaleToFitPlots:forCoordinate:

- (void) scaleToFitPlots: (nullable CPTPlotArray *)  plots
forCoordinate: (CPTCoordinate coordinate 

Scales the plot range for the given coordinate so that the plots just fit in the visible space.

Parameters
plotsAn array of the plots that have to fit in the visible area.
coordinateThe axis coordinate.

Provided by category CPTPlotSpace(AbstractMethods).

◆ scaleTypeForCoordinate: [1/2]

- (CPTScaleType) scaleTypeForCoordinate: (CPTCoordinate __unused)  coordinate
implementation

Gets the scale type for a given coordinate.

Parameters
coordinateThe axis coordinate.
Returns
The scale type.

Provided by category CPTPlotSpace(AbstractMethods).

◆ scaleTypeForCoordinate: [2/2]

- (CPTScaleType) scaleTypeForCoordinate: (CPTCoordinate coordinate

Provided by category CPTPlotSpace(AbstractMethods).

◆ setCategories:forCoordinate:

- (void) setCategories: (nullable CPTStringArray *)  newCategories
forCoordinate: (CPTCoordinate coordinate 

Replace all category names for the given coordinate with the names in the supplied array.

Parameters
newCategoriesAn array of category names.
coordinateThe axis coordinate.

◆ setPlotRange:forCoordinate: [1/2]

- (void) setPlotRange: (nonnull CPTPlotRange *__unused)  newRange
forCoordinate: (CPTCoordinate __unused)  coordinate 
implementation

Sets the range of values for a given coordinate.

Parameters
newRangeThe new plot range.
coordinateThe axis coordinate.

Provided by category CPTPlotSpace(AbstractMethods).

◆ setPlotRange:forCoordinate: [2/2]

- (void) setPlotRange: (nonnull CPTPlotRange *)  newRange
forCoordinate: (CPTCoordinate coordinate 

Provided by category CPTPlotSpace(AbstractMethods).

◆ setScaleType:forCoordinate: [1/2]

- (void) setScaleType: (CPTScaleType __unused)  newType
forCoordinate: (CPTCoordinate __unused)  coordinate 
implementation

Sets the scale type for a given coordinate.

Parameters
newTypeThe new scale type.
coordinateThe axis coordinate.

Provided by category CPTPlotSpace(AbstractMethods).

◆ setScaleType:forCoordinate: [2/2]

- (void) setScaleType: (CPTScaleType newType
forCoordinate: (CPTCoordinate coordinate 

Provided by category CPTPlotSpace(AbstractMethods).

Property Documentation

◆ allowsUserInteraction

- (BOOL) allowsUserInteraction
readwritenonatomicassign

Determines whether user can interactively change plot range and/or zoom.

◆ delegate

- (nullable id< CPTPlotSpaceDelegate >) delegate
readwritenonatomicweak

The plot space delegate.

◆ graph

- (nullable CPTGraph *) graph
readwritenonatomicweak

The graph of the space.

◆ identifier

- (nullable id< NSCopying, NSCoding, NSObject >) identifier
readwritenonatomiccopy

An object used to identify the plot in collections.

◆ isDragging

- (BOOL) isDragging
readnonatomicassign

Returns YES when the user is actively dragging the plot space.

◆ numberOfCoordinates

- (NSUInteger) numberOfCoordinates
readnonatomicassign

The number of coordinate values that determine a point in the plot space.


The documentation for this class was generated from the following files: