Plot attributes
Below is a list of some common plot attributes for Makie.
To view a plot's attributes and their values, you can call plot.attributes
to view the raw output, or plot.attributes.attributes
to get a Dict of the attribute keys and their values.
p = scatter(rand(10), rand(10))[end]; # use `[end]` to access the plot
p.attributes
p.attributes.attributes
Dict{Symbol,Observable} with 28 entries: :transparency => Observable{Any} with 0 listeners. Value:… :strokecolor => Observable{Any} with 0 listeners. Value:… :specular => Observable{Any} with 0 listeners. Value:… :colormap => Observable{Any} with 0 listeners. Value:… :visible => Observable{Any} with 0 listeners. Value:… :glowwidth => Observable{Any} with 0 listeners. Value:… :marker_offset => Observable{Any} with 0 listeners. Value:… :markersize => Observable{Any} with 1 listeners. Value:… :rotations => Observable{Any} with 0 listeners. Value:… :ssao => Observable{Any} with 0 listeners. Value:… :ambient => Observable{Any} with 0 listeners. Value:… :lightposition => Observable{Any} with 0 listeners. Value:… :nan_color => Observable{Any} with 0 listeners. Value:… :distancefield => Observable{Any} with 0 listeners. Value:… :shininess => Observable{Any} with 0 listeners. Value:… :strokewidth => Observable{Any} with 0 listeners. Value:… :overdraw => Observable{Any} with 0 listeners. Value:… :transformation => Observable{Any} with 0 listeners. Value:… :model => Observable{Any} with 0 listeners. Value:… ⋮ => ⋮
List of attributes
Symbol | Description |
---|---|
absorption | Float32. Sets the absorption value for volume plots. |
algorithm | Algorithm to be used for volume plots. Can be one of :iso , :absorption , :mip , :absorptionrgba , or :indexedabsorption . |
align | (:pos, :pos) . Specify the text alignment, where :pos can be :left , :center , or :right . |
alpha | Float in [0,1]. The alpha value (transparency). |
color | Symbol or Colorant. The color of the main plot element (markers, lines, etc.). Can be a color symbol/string like :red, or a Colorant. Can also be an array or matrix of 'z-values' that are converted into colors by the colormap automatically. |
colormap | The color map of the main plot. Call available_gradients() to see what gradients are available. Can also be used with any Vector{<: Colorant}, or e.g. [:red, :black], or ColorSchemes.jl colormaps (by colormap = ColorSchemes.<colorscheme name>.colors ). |
colorrange | A tuple (min, max) where min and max specify the data range to be used for indexing the colormap. E.g. color = [-2, 4] with colorrange = (-2, 4) will map to the lowest and highest color value of the colormap. |
fillrange | Bool. Toggles range filling in contour plots. |
font | String. Specifies the font, and can choose any font available on the system. |
glowcolor | Color Type. Color of the marker glow (outside the border) in scatter plots. |
glowwidth | Number. Width of the marker glow in scatter plots. |
image | The image to be plotted on the plot. |
interpolate | Bool. For heatmap and images . Toggles color interpolation between nearby pixels. |
isorange | Float32. Sets the isorange for volume plots. |
isovalue | Float32. Sets the isovalue for volume plots. |
levels | Integer. Number of levels for a contour -type plot. |
linestyle | Symbol. Style of the line (for line and linesegments plots). Available styles are :dash , :dot , :dashdot , and :dashdotdot . You can also supply an array describing the length of each gap/fill. |
linewidth | Number. Width of the line in line and linesegments plots. |
marker | Symbol, Shape, or AbstractVector. |
marker_offset | Array of GeometryTypes.Point 's. Specifies the offset coordinates for the markers. See the Marker offset example. |
markersize | Number or AbstractVector. Specifies size (radius pixels) of the markers. |
position | NTuple{2,Float}, (x, y) . Specify the coordinates to position text at. |
rotation | Float32. Specifies the rotation in radians. |
rotations | AbstractVector{Float32}. Similar to :rotation , except it specifies the rotations for each element in the plot. |
shading | Bool. Specifies if shading should be on or not (for meshes). |
strokecolor | Color Type. Color of the marker stroke (border). |
strokewidth | Number. Width of the marker stroke (in pixels). |
textsize | Integer. Font pointsize for text. |
transformation | (:plane, location) . Transforms the :plane to the specified location. Possible :plane 's are :xy , :yz , and :xz . |
visible | Bool. Toggle visibility of plot. |