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.
applyfont [int] (default: 0)
When applyfont is enabled, the current fontname and fontsize apply to all text labels drawn by plot~. When applyfont is disabled, the fontname and fontsize are used only for the domain and range labels (set by the domainlabel and rangelabel 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
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.)
domainlabel [symbol] (default: )
Bottom (horizontal) text
fontname [symbol] (default: Lato)
The fontname attribute sets the font for the domain and range label. If applyfont is enabled, it also applied to all text shown by the object.
fontsize [float] (default: 10.)
The fontsize attribute sets the font size for the domain and range label. If applyfont is enabled, it also applied to all text shown by the object.
gridcolor [4 floats] (default: 0.5 0.5 0.5 1.)
Sets the grid color in RGBA format.
gridorigincolor [4 floats] (default: 0. 0. 0. 1.)
Sets the grid color at the origin in RGBA format.
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.
'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
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.
Sets the type style used by the object. The options are:
bold italic Possible values:
0 = 'regular'
1 = 'bold'
2 = 'italic'
3 = 'bold italic'
Sets the object's font.
Sets the object's font size (in points).
hidden [int] (default: 0)
Toggles whether an object is hidden when the patcher is locked.
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.
JS Painter File
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 [4 floats]
Sets the color for the object's text in RGBA format.
Sets the justification for the object's text.
0 = 'left'
1 = 'center'
2 = 'right'
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.
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.
The 'mouse' message is sent together with normalized mouse coordinates and the mouse button state.
|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|
|spectroscope~||Signal spectrogram or sonogram|
|Audio Filtering||Audio Filtering|