File: plot-scatterproperties.texi

package info (click to toggle)
octave 10.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 145,388 kB
  • sloc: cpp: 335,976; ansic: 82,241; fortran: 20,963; objc: 9,402; sh: 8,756; yacc: 4,392; lex: 4,333; perl: 1,544; java: 1,366; awk: 1,259; makefile: 659; xml: 192
file content (386 lines) | stat: -rw-r--r-- 16,760 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
@c DO NOT EDIT!  Generated automatically by genpropdoc.m.

@c Copyright (C) 2014-2025 The Octave Project Developers
@c
@c See the file COPYRIGHT.md in the top-level directory of this
@c distribution or <https://octave.org/copyright/>.
@c
@c This file is part of Octave.
@c
@c Octave is free software: you can redistribute it and/or modify it
@c under the terms of the GNU General Public License as published by
@c the Free Software Foundation, either version 3 of the License, or
@c (at your option) any later version.
@c
@c Octave is distributed in the hope that it will be useful, but
@c WITHOUT ANY WARRANTY; without even the implied warranty of
@c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@c GNU General Public License for more details.
@c
@c You should have received a copy of the GNU General Public License
@c along with Octave; see the file COPYING.  If not, see
@c <https://www.gnu.org/licenses/>.

Properties of @code{scatter} objects (@pxref{XREFscatter,,scatter}):

@subsubheading Categories:

@ref{XREFscattercategoryCallbackExecution, , @w{Callback Execution}}@: | @ref{XREFscattercategoryColorData, , @w{Color Data}}@: | @ref{XREFscattercategoryCoordinateData, , @w{Coordinate Data}}@: | @ref{XREFscattercategoryCreation/Deletion, , @w{Creation/Deletion}}@: | @ref{XREFscattercategoryDisplay, , @w{Display}}@: | @ref{XREFscattercategoryLegendOptions, , @w{Legend Options}}@: | @ref{XREFscattercategoryMarkerAppearance, , @w{Marker Appearance}}@: | @ref{XREFscattercategoryMouseInteraction, , @w{Mouse Interaction}}@: | @ref{XREFscattercategoryObjectIdentification, , @w{Object Identification}}@: | @ref{XREFscattercategoryParent/Children, , @w{Parent/Children}}@: 

@anchor{XREFscattercategoryCallbackExecution}
@subsubheading Callback Execution

@table @asis

@anchor{XREFscatterbusyaction}
@prindex scatter busyaction
@item @code{busyaction}: @qcode{"cancel"} | @{@qcode{"queue"}@}
Define how Octave handles the execution of this object's callback properties when it is unable to interrupt another object's executing callback.  This is only relevant when the currently executing callback object has its @code{interruptible} property set to @qcode{"off"}.  The @code{busyaction} property of the interrupting callback object indicates whether the interrupting callback is queued (@qcode{"queue"} (default)) or discarded (@qcode{"cancel"}).
@xref{Callbacks, , @w{Callbacks section}}.


@anchor{XREFscatterinterruptible}
@prindex scatter interruptible
@item @code{interruptible}: @qcode{"off"} | @{@qcode{"on"}@}
Specify whether this object's callback functions may be interrupted by other callbacks.  By default @code{interruptible} is @qcode{"on"} and callbacks that make use of @code{drawnow}, @code{figure}, @code{waitfor}, @code{getframe} or @code{pause} functions are eventually interrupted.
@xref{Callbacks, , @w{Callbacks section}}.

@end table

@anchor{XREFscattercategoryColorData}
@subsubheading Color Data

@table @asis

@anchor{XREFscattercdata}
@prindex scatter cdata
@item @code{cdata}: scalar | matrix, def. @code{[0   0.4470   0.7410]}
Data defining the scatter object color.

If @code{cdata} is a scalar index into the current colormap or a RGB triplet, it defines the color of all scatter markers.

If @code{cdata} is an N-by-1 vector of indices or an N-by-3 (RGB) matrix, it defines the color of each one of the N scatter markers.


@anchor{XREFscattercdatamode}
@prindex scatter cdatamode
@item @code{cdatamode}: @{@qcode{"auto"}@} | @qcode{"manual"}
If @code{cdatamode} is @qcode{"auto"}, @code{cdata} is set to the color from the @code{colororder} of the ancestor axes corresponding to the @code{seriesindex}.


@anchor{XREFscattercdatasource}
@prindex scatter cdatasource
@item @code{cdatasource}: string, def. @qcode{""}
The name of a workspace variable that contains data that will be used for the @ref{XREFpatchcdata, , @w{@qcode{"cdata"} property}}.  Data is transferred into @qcode{"cdata"} using the @ref{XREFrefreshdata, , @w{refreshdata function}}.


@anchor{XREFscatterseriesindex}
@prindex scatter seriesindex
@item @code{seriesindex}: def. @code{1}
Each scatter object in the same axes is assigned an incrementing integer.  This corresponds to the index into the @code{colororder} of the ancestor axes that is used if @code{cdatamode} is set to @qcode{"auto"}.

@end table

@anchor{XREFscattercategoryCoordinateData}
@subsubheading Coordinate Data

@table @asis

@anchor{XREFscatterlatitudedata}
@prindex scatter latitudedata
@item @code{latitudedata}: def. @code{[](0x0)}
Geographic coordinate scatter plotting is not yet implemented for scatter objects.  @code{latitudedata} is unused.


@anchor{XREFscatterlatitudedatasource}
@prindex scatter latitudedatasource
@item @code{latitudedatasource}: def. @qcode{""}
Geographic coordinate scatter plotting is not yet implemented for scatter objects.  @code{latitudedatasource} is unused.


@anchor{XREFscatterlongitudedata}
@prindex scatter longitudedata
@item @code{longitudedata}: def. @code{[](0x0)}
Geographic coordinate scatter plotting is not yet implemented for scatter objects.  @code{longitudedata} is unused.


@anchor{XREFscatterlongitudedatasource}
@prindex scatter longitudedatasource
@item @code{longitudedatasource}: def. @qcode{""}
Geographic coordinate scatter plotting is not yet implemented for scatter objects.  @code{longitudedatasource} is unused.


@anchor{XREFscatterrdata}
@prindex scatter rdata
@item @code{rdata}: def. @code{[](0x0)}
Polar coordinates for scatter plotting is not yet implemented for scatter objects.  @code{rdata} is unused.


@anchor{XREFscatterrdatasource}
@prindex scatter rdatasource
@item @code{rdatasource}: def. @qcode{""}
Polar coordinates for scatter plotting is not yet implemented for scatter objects.  @code{rdatasource} is unused.


@anchor{XREFscatterthetadata}
@prindex scatter thetadata
@item @code{thetadata}: def. @code{[](0x0)}
Polar coordinates for scatter plotting is not yet implemented for scatter objects.  @code{thetadata} is unused.


@anchor{XREFscatterthetadatasource}
@prindex scatter thetadatasource
@item @code{thetadatasource}: def. @qcode{""}
Polar coordinates for scatter plotting is not yet implemented for scatter objects.  @code{thetadatasource} is unused.


@anchor{XREFscatterxdata}
@prindex scatter xdata
@item @code{xdata}: vector, def. @code{[](0x0)}
Vector with the x coordinates of the scatter object.


@anchor{XREFscatterxdatasource}
@prindex scatter xdatasource
@item @code{xdatasource}: string, def. @qcode{""}
The name of a workspace variable that contains data that will be used for the @ref{XREFscatterxdata, , @w{@qcode{"xdata"} property}}.  Data is transferred into @qcode{"xdata"} using the @ref{XREFrefreshdata, , @w{refreshdata function}}.


@anchor{XREFscatterydata}
@prindex scatter ydata
@item @code{ydata}: vector, def. @code{[](0x0)}
Vector with the y coordinates of the scatter object.


@anchor{XREFscatterydatasource}
@prindex scatter ydatasource
@item @code{ydatasource}: string, def. @qcode{""}
The name of a workspace variable that contains data that will be used for the @ref{XREFscatterydata, , @w{@qcode{"ydata"} property}}.  Data is transferred into @qcode{"ydata"} using the @ref{XREFrefreshdata, , @w{refreshdata function}}.


@anchor{XREFscatterzdata}
@prindex scatter zdata
@item @code{zdata}: [] | vector, def. @code{[](0x0)}
For 3D data, vector with the y coordinates of the scatter object.


@anchor{XREFscatterzdatasource}
@prindex scatter zdatasource
@item @code{zdatasource}: string, def. @qcode{""}
The name of a workspace variable that contains data that will be used for the @ref{XREFscatterzdata, , @w{@qcode{"zdata"} property}}.  Data is transferred into @qcode{"zdata"} using the @ref{XREFrefreshdata, , @w{refreshdata function}}.

@end table

@anchor{XREFscattercategoryCreation/Deletion}
@subsubheading Creation/Deletion

@table @asis

@anchor{XREFscatterbeingdeleted}
@prindex scatter beingdeleted
@item @code{beingdeleted}: @{@qcode{"off"}@} | @qcode{"on"}
Property indicating that a function has initiated deletion of the object.  @code{beingdeleted} is set to true until the object no longer exists.


@anchor{XREFscattercreatefcn}
@prindex scatter createfcn
@item @code{createfcn}: string | function handle, def. @code{[](0x0)}
Callback function executed immediately after scatter has been created.  Function is set by using default property on root object, e.g., @code{set (groot, "defaultscattercreatefcn", 'disp ("scatter created!")')}.

For information on how to write graphics listener functions see @ref{Callbacks, , @w{Callbacks section}}.


@anchor{XREFscatterdeletefcn}
@prindex scatter deletefcn
@item @code{deletefcn}: string | function handle, def. @code{[](0x0)}
Callback function executed immediately before scatter is deleted.

For information on how to write graphics listener functions see @ref{Callbacks, , @w{Callbacks section}}.

@end table

@anchor{XREFscattercategoryDisplay}
@subsubheading Display

@table @asis

@anchor{XREFscatterclipping}
@prindex scatter clipping
@item @code{clipping}: @qcode{"off"} | @{@qcode{"on"}@}
If @code{clipping} is @qcode{"on"}, the scatter is clipped in its parent axes limits.


@anchor{XREFscattervisible}
@prindex scatter visible
@item @code{visible}: @qcode{"off"} | @{@qcode{"on"}@}
If @code{visible} is @qcode{"off"}, the scatter is not rendered on screen.

@end table

@anchor{XREFscattercategoryLegendOptions}
@subsubheading Legend Options

@table @asis

@anchor{XREFscatterannotation}
@prindex scatter annotation
@item @code{annotation}: def. @code{[](0x0)}
Legend appearance toggling from within         the scatter object is not yet implemented for scatter objects.  @code{annotation} is unused.


@anchor{XREFscatterdisplayname}
@prindex scatter displayname
@item @code{displayname}: def. @qcode{""}
Text of the legend entry corresponding to this scatter object.

@end table

@anchor{XREFscattercategoryMarkerAppearance}
@subsubheading Marker Appearance

@table @asis

@anchor{XREFscatterlinewidth}
@prindex scatter linewidth
@item @code{linewidth}: scalar, def. @code{0.5000}
Line width of the edge of the markers.


@anchor{XREFscattermarker}
@prindex scatter marker
@item @code{marker}: @qcode{"*"} | @qcode{"+"} | @qcode{"."} | @qcode{"<"} | @qcode{">"} | @qcode{"^"} | @qcode{"_"} | @qcode{"d"} | @qcode{"diamond"} | @qcode{"h"} | @qcode{"hexagram"} | @qcode{"none"} | @{@qcode{"o"}@} | @qcode{"p"} | @qcode{"pentagram"} | @qcode{"s"} | @qcode{"square"} | @qcode{"v"} | @qcode{"x"} | @qcode{"|"}
@xref{XREFlinemarker, , @w{line marker property}}.


@anchor{XREFscattermarkeredgealpha}
@prindex scatter markeredgealpha
@item @code{markeredgealpha}: scalar, def. @code{1}
Transparency level of the faces of the markers where a value of 0 means complete transparency and a value of 1 means solid faces without transparency.  Note that the markers are not sorted from back to front which might lead to unexpected results when rendering layered transparent markers or in combination with other transparent objects.


@anchor{XREFscattermarkeredgecolor}
@prindex scatter markeredgecolor
@item @code{markeredgecolor}: @{@qcode{"none"}@} | @{@qcode{"flat"}@} | colorspec
Color of the edge of the markers.  @qcode{"none"} means that the edges are transparent and @qcode{"flat"} means that the value from @code{cdata} is used.  @xref{XREFlinemarkeredgecolor, , @w{line markeredgecolor property}}.


@anchor{XREFscattermarkerfacealpha}
@prindex scatter markerfacealpha
@item @code{markerfacealpha}: scalar, def. @code{1}
Transparency level of the faces of the markers where a value of 0 means complete transparency and a value of 1 means solid faces without transparency.  Note that the markers are not sorted from back to front which might lead to unexpected results when rendering layered transparent markers or in combination with other transparent objects.


@anchor{XREFscattermarkerfacecolor}
@prindex scatter markerfacecolor
@item @code{markerfacecolor}: @{@{@qcode{"none"}@}@} | @qcode{"flat"} | @qcode{"auto"} | colorspec
Color of the face of the markers.  @qcode{"none"} means that the faces are transparent, @qcode{"flat"} means that the value from @code{cdata} is used, and @qcode{"auto"} uses the @code{color} property of the ancestor axes.  @xref{XREFlinemarkerfacecolor, , @w{line markerfacecolor property}}.


@anchor{XREFscattersizedata}
@prindex scatter sizedata
@item @code{sizedata}: [] | scalar | vector, def. @code{[](0x0)}
Size of the area of the marker.  A scalar value applies to all markers.  If @code{cdata} is an N-by-1 vector, it defines the color of each one of the N scatter markers.


@anchor{XREFscattersizedatasource}
@prindex scatter sizedatasource
@item @code{sizedatasource}: def. @qcode{""}
Data from workspace variables is not yet implemented for scatter objects.  @code{sizedatasource} is unused.

@end table

@anchor{XREFscattercategoryMouseInteraction}
@subsubheading Mouse Interaction

@table @asis

@anchor{XREFscatterbuttondownfcn}
@prindex scatter buttondownfcn
@item @code{buttondownfcn}: string | function handle, def. @code{[](0x0)}
For information on how to write graphics listener functions see @ref{Callbacks, , @w{Callbacks section}}.


@anchor{XREFscattercontextmenu}
@prindex scatter contextmenu
@item @code{contextmenu}: graphics handle, def. @code{[](0x0)}
Graphics handle of the uicontextmenu object that is currently associated to this scatter object.


@anchor{XREFscatterdatatiptemplate}
@prindex scatter datatiptemplate
@item @code{datatiptemplate}: def. @code{[](0x0)}
Data tip objects is not yet implemented for scatter objects.  @code{datatiptemplate} is unused.


@anchor{XREFscatterhittest}
@prindex scatter hittest
@item @code{hittest}: @qcode{"off"} | @{@qcode{"on"}@}
Specify whether scatter processes mouse events or passes them to ancestors of the object.  When enabled, the object may respond to mouse clicks by evaluating the @qcode{"buttondownfcn"}, showing the uicontextmenu, and eventually becoming the root @qcode{"currentobject"}.  This property is only relevant when the object can accept mouse clicks which is determined by the @qcode{"pickableparts"} property.  @xref{XREFscatterpickableparts, , @w{pickableparts property}}.


@anchor{XREFscatterpickableparts}
@prindex scatter pickableparts
@item @code{pickableparts}: @qcode{"all"} | @qcode{"none"} | @{@qcode{"visible"}@}
Specify whether scatter will accept mouse clicks.  By default, @code{pickableparts} is @qcode{"visible"} and only visible parts of the scatter or its children may react to mouse clicks.  When @code{pickableparts} is @qcode{"all"} both visible and invisible parts (or children) may react to mouse clicks.  When @code{pickableparts} is @qcode{"none"} mouse clicks on the object are ignored and transmitted to any objects underneath this one.  When an object is configured to accept mouse clicks the @qcode{"hittest"} property will determine how they are processed.  @xref{XREFscatterhittest, , @w{hittest property}}.


@anchor{XREFscatterselected}
@prindex scatter selected
@item @code{selected}: @{@qcode{"off"}@} | @qcode{"on"}
Property indicates whether this scatter is selected.


@anchor{XREFscatterselectionhighlight}
@prindex scatter selectionhighlight
@item @code{selectionhighlight}: @qcode{"off"} | @{@qcode{"on"}@}
If @code{selectionhighlight} is @qcode{"on"}, then the scatter's selection state is visually highlighted.

@end table

@anchor{XREFscattercategoryObjectIdentification}
@subsubheading Object Identification

@table @asis

@anchor{XREFscattertag}
@prindex scatter tag
@item @code{tag}: string, def. @qcode{""}
A user-defined string to label the graphics object.


@anchor{XREFscattertype}
@prindex scatter type
@item @code{type} (read-only): string
Class name of the graphics object.  @code{type} is always @qcode{"scatter"}.


@anchor{XREFscatteruserdata}
@prindex scatter userdata
@item @code{userdata}: Any Octave data, def. @code{[](0x0)}
User-defined data to associate with the graphics object.

@end table

@anchor{XREFscattercategoryParent/Children}
@subsubheading Parent/Children

@table @asis

@anchor{XREFscatterchildren}
@prindex scatter children
@item @code{children} (read-only): vector of graphics handles, def. @code{[](0x1)}
Child objects for Scatter plots is not yet implemented for scatter objects.  @code{children} is unused.


@anchor{XREFscatterhandlevisibility}
@prindex scatter handlevisibility
@item @code{handlevisibility}: @qcode{"callback"} | @qcode{"off"} | @{@qcode{"on"}@}
If @code{handlevisibility} is @qcode{"off"}, the scatter's handle is not visible in its parent's @qcode{"children"} property.


@anchor{XREFscatterparent}
@prindex scatter parent
@item @code{parent}: graphics handle
Handle of the parent graphics object.

@end table