Description
Use the plot~ object to graph sets of data as points across a domain. The source of the data to be visualized may be a Max list, an MSP buffer~, or an audio signal. The number of plots may be changed with the @numplots attribute, and each of these "subplots" is addressed through a dedicated inlet. A variety of out-of-the-box configurations are provided as Max object prototypes.
Arguments
None.
Attributes
audioframerate [float] (default: 15.)
Speed for display update when a plot~ is visualizing an audio signal. The drawing for such cases is driven by a clock operating at the specified number of frames per second.
audioframesize [atom_long] (default: 0)
Number of samples collected from audio input to create a single frame of data. By default, audio signals will be visualized by collecting sample values until the number of points in the plot is full (audioframesize=0). Then all points will be updated and drawn. An alternate audioframesize value must be greater than the value of the numpoints attribute.
In some cases it is desirable to collect a larger set of samples and then visualize only a portion of those samples. To visualize the output of an FFT, for example, it is often desirable to only view either the first or second half of a frame because they are mirror images of each other. By setting the audioframesize, the number of points in @audioframesize will be collected, and only the first @numpoints will actually be drawn.
bgcolor [4 floats] (default: 1. 1. 1. 1.)
Background color
domainlabel [symbol] (default: )
Bottom (horizontal) text
fontname [symbol] (default: Lato)
Font Name
fontsize [float] (default: 10.)
Font Size
gridcolor [4 floats] (default: 0.5 0.5 0.5 1.)
Grid Color
gridorigincolor [4 floats] (default: 0. 0. 0. 1.)
Grid Color at Origin
margins [4 floats] (default: 8. 8. 8. 8.)
Indent margins (top, right, bottom, and left)
numplots [int] (default: 1)
Number of data sets to be plotted. The object will grow/absorb inlets as needed. Each 'subplot' will be addressed through its dedicated inlet.
numpoints [int] (default: 4)
Sets the number of points to be displayed across the domain of all plots
rangelabel [symbol] (default: )
Left-hand (vertical) text
thinmode [symbol] (default: sample)
Data-thinning behavior when the size of the data set (number of points) exceeds the number of pixels available to display each point discretely.
Possible values:
'none'
(
All points will be drawn, and will overlap as needed
)
'sample'
(
Number of points will be reduced according to
thinto
prior to drawing
)
thinthresh [int] (default: 10)
The point at which the thinmode is invoked to begin reducing the data set. By default this attribute is set to a value of 10, meaning that once there are 10 points being drawn at the same pixel location on the screen the thinmode will be invoked.
thinto [float] (default: 0.2)
Factor by which the data set is reduced when the thinmode is invoked. By default the factor is 0.2, which results in 5 values being overlapped at a given pixel location.
Common Box Attributes
annotation [symbol]
Sets the text that will be displayed in the Clue window when the user moves the mouse over the object.
background [int] (default: 0)
Adds or removes the object from the patcher's background layer.
adds the object to the background layer, removes it. Objects in the background layer are shown behind all objects in the default foreground layer.color [4 floats]
Sets the color for the object box outline.
fontface [int]
Sets the type style used by the object. The options are:
plain
bold
italic
bold italic
Possible values:
0 = 'regular'
1 = 'bold'
2 = 'italic'
3 = 'bold italic'
fontname [symbol]
Sets the object's font.
fontsize [float]
Sets the object's font size (in points).
Possible values:
'8'
'9'
'10'
'11'
'12'
'13'
'14'
'16'
'18'
'20'
'24'
'30'
'36'
'48'
'64'
'72'
hidden [int] (default: 0)
Toggles whether an object is hidden when the patcher is locked.
hint [symbol]
Sets the text that will be displayed in as a pop-up hint when the user moves the mouse over the object in a locked patcher.
ignoreclick [int] (default: 0)
Toggles whether an object ignores mouse clicks in a locked patcher.
patching_rect [4 floats] (default: 0. 0. 100. 0.)
Sets the position and size of the object in the patcher window.
position [2 floats]
Sets the object's x and y position in both patching and presentation modes (if the object belongs to its patcher's presentation), leaving its size unchanged.
presentation [int] (default: 0)
Sets whether an object belongs to the patcher's presentation.
presentation_rect [4 floats] (default: 0. 0. 0. 0.)
Sets the x and y position and width and height of the object in the patcher's presentation, leaving its patching position unchanged.
rect [4 floats]
Sets the x and y position and width and height of the object in both patching and presentation modes (if the object belongs to its patcher's presentation).
size [2 floats]
Sets the object's width and height in both patching and presentation modes (if the object belongs to its patcher's presentation), leaving its position unchanged.
textcolor [float]
Sets the color for the object's text in RGBA format.
textjustification [int]
Text Justification
Possible values:
0 = 'left'
1 = 'center'
2 = 'right'
varname [symbol]
Sets the patcher's scripting name, which can be used to address the object by name in pattr, scripting messages to thispatcher, and the js object.
Messages
int
Arguments
float
Arguments
list
Arguments
definedomain
Arguments
domain-end [number]
domain-style [symbol]
definecolor
Arguments
definefilter
Arguments
defineline
Arguments
While 'lines' will display more quickly than 'linear', the 'linear' option will look better in some cases (usually when working with high thickness values). The difference between the display styles is related to how line segments are joined at the elbows: 'lines' does nothing, while the 'linear' option makes smooth connections.
definenumber
Arguments
definepoint
Arguments
definerange
Arguments
range-end [number]
range-style [symbol]
definethickness
Arguments
definexgrid
Arguments
definexorigin
Arguments
defineygrid
Arguments
defineyorigin
Arguments
definexlabels
Arguments
defineylabels
Arguments
dictionary
Arguments
edit
getdictionary
Arguments
(mouse)
signal
refer
Arguments
channel-number [number]
start-time [number]
end-time [number]
Output
list
The 'mouse' message is sent together with normalized mouse coordinates and the mouse button state.
See Also
Name | Description |
---|---|
filterdetail | Detail the characteristics of a filter |
scope~ | Visualize an audio signal |
multislider | Display data as sliders or a scrolling display |
waveform~ | buffer~ viewer and editor |
filtergraph~ | Filter editor |
spectroscope~ | Signal spectrogram or sonogram |
Audio Filtering | Audio Filtering |