|
Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
Go to the documentation of this file.
119 -(void)addPlot:(nonnull
CPTPlot *)plot;
121 -(void)removePlot:(nullable
CPTPlot *)plot;
122 -(void)removePlotWithIdentifier:(nullable
id<
NSCopying>)identifier;
137 -(void)removePlotSpace:(nullable
CPTPlotSpace *)plotSpace;
142 -(void)applyTheme:(nullable
CPTTheme *)theme;
CPTGraphPlotSpaceKey __nonnull const CPTGraphPlotSpaceNotificationKey
The userInfo dictionary key used by the CPTGraphDidAddPlotSpaceNotification and CPTGraphDidRemovePlot...
Definition: CPTGraph.m:28
CPTLegend * legend
The graph legend. Setting this property will automatically anchor the legend to the graph and positio...
Definition: CPTGraph.h:99
CPTGraphNotification __nonnull const CPTGraphDidRemovePlotSpaceNotification
Notification sent by a graph after removing a plot space.
Definition: CPTGraph.m:27
@ CPTGraphLayerTypeMajorGridLines
Major grid lines.
Definition: CPTGraph.h:64
nullable CPTAxisSet * newAxisSet()
Creates a new axis set for the graph.
Definition: CPTGraph.m:1392
CPTNumberArray * topDownLayerOrder
An array of graph layers to be drawn in an order other than the default.
Definition: CPTGraph.h:94
@ CPTGraphLayerTypeMinorGridLines
Minor grid lines.
Definition: CPTGraph.h:63
CPTTextStyle * titleTextStyle
The text style of the title.
Definition: CPTGraph.h:84
CPTAxisSet * axisSet
The axis set.
Definition: CPTGraph.h:91
Defines the coordinate system of a plot.
Definition: CPTPlotSpace.h:178
Immutable wrapper for various text style properties.
Definition: CPTTextStyle.h:18
NSString * title
The title string.
Definition: CPTGraph.h:82
void reloadDataIfNeeded()
Makes all plots reload their data if their data cache is out of date.
Definition: CPTGraph.m:467
CPTRectAnchor
Locations around the edge of a rectangle.
Definition: CPTDefinitions.h:194
@ CPTGraphLayerTypeAxisLabels
Axis labels.
Definition: CPTGraph.h:67
Positions a content layer relative to an anchor point in a reference layer.
Definition: CPTLayerAnnotation.h:7
CGPoint legendDisplacement
A vector giving the displacement of the legend from the edge location.
Definition: CPTGraph.h:101
@ CPTGraphLayerTypeAxisLines
Axis lines.
Definition: CPTGraph.h:65
CGPoint titleDisplacement
A vector giving the displacement of the title from the edge location.
Definition: CPTGraph.h:85
Creates a CPTGraph instance formatted with a predefined style.
Definition: CPTTheme.h:22
@ CPTGraphLayerTypeAxisTitles
Axis titles.
Definition: CPTGraph.h:68
A graph legend.
Definition: CPTLegend.h:185
A container view for displaying a CPTGraph.
Definition: CPTGraphHostingView.h:5
@ CPTGraphLayerTypePlots
Plots.
Definition: CPTGraph.h:66
An abstract plot class.
Definition: CPTPlot.h:258
CPTPlotAreaFrame * plotAreaFrame
The plot area frame.
Definition: CPTGraph.h:92
CPTGraphNotification __nonnull const CPTGraphNeedsRedrawNotification
Notification sent by various objects to tell the graph it should redraw itself.
Definition: CPTGraph.m:25
A layer with a border line and background fill.
Definition: CPTBorderedLayer.h:7
nonnull CPTPlotArray * allPlots()
All plots associated with the graph.
Definition: CPTGraph.m:475
CPTGraph abstract methods—must be overridden by subclasses.
Definition: CPTGraph.h:152
#define cpt_swift_struct
Marks a type definition to be imported into Swift as a structure.
Definition: CPTDefinitions.h:73
CPTGraphHostingView * hostingView
The hosting view that contains the graph.
Definition: CPTGraph.h:77
A layer drawn on top of the graph layer and behind all plot elements.
Definition: CPTPlotAreaFrame.h:8
nonnull CPTPlotSpaceArray * allPlotSpaces()
All plot spaces associated with the graph.
Definition: CPTGraph.m:603
#define cpt_weak_property
A custom definition for automatic reference counting (ARC) weak properties that falls back to assign ...
Definition: CPTDefinitions.h:32
CPTPlotSpace * defaultPlotSpace
The default plot space.
Definition: CPTGraph.h:93
nullable CPTPlotSpace * newPlotSpace()
Creates a new plot space for the graph.
Definition: CPTGraph.m:1384
CPTGraphNotification __nonnull const CPTGraphDidAddPlotSpaceNotification
Notification sent by a graph after adding a new plot space.
Definition: CPTGraph.m:26
NSAttributedString * attributedTitle
The styled title string.
Definition: CPTGraph.h:83
void reloadData()
Makes all plots reload their data.
Definition: CPTGraph.m:458
CPTRectAnchor titlePlotAreaFrameAnchor
The location of the title with respect to the plot area frame. Default is CPTRectAnchorTop.
Definition: CPTGraph.h:86
An abstract graph class.
Definition: CPTGraph.h:74
A container layer for the set of axes for a graph.
Definition: CPTAxisSet.h:7
CPTGraphLayerType
Enumeration of graph layers.
Definition: CPTGraph.h:62
CPTRectAnchor legendAnchor
The location of the legend with respect to the graph frame. Default is CPTRectAnchorBottom.
Definition: CPTGraph.h:100