Subplot

These attributes apply to settings for individual Subplots.

AttributeAliasesDefaultTypeDescription
annotationcolorannotationcolors`match`Colorant or :matchColor of annotations.
annotationfontfamilyannotationfontfamilys`match`String or SymbolFont family of annotations.
annotationfontsizeannotationfontsizes`14`IntegerFont pointsize of annotations.
annotationhalignannotationhaligns`hcenter`Symbolhorizontal alignment of annotations, :hcenter, :left, :right or :center.
annotationrotationannotationrotations`0.0`FloatRotation of annotations in degrees.
annotationsann, annotate, annotation, anns`Any[]`(x,y,text) tuple(s)Can be a single tuple or a list of them. Text can be String, PlotText (created with `text(args...)`), or a tuple of arguments to `text` (e.g., `("Label", 8, :red, :top)`). Add one-off text annotations at the x,y coordinates.
annotationvalignannotationvaligns`vcenter`SymbolVertical alignment of annotations, :vcenter, :top, :bottom or :center.
aspect_ratioaspect_ratios, aspectratio, aspectratios, axis_ratio, axisratio, ratio`auto`Symbol (:equal or :none) or NumberPlot area is resized so that 1 y-unit is the same size as `aspect_ratio` x-units. With `:none`, images inherit aspect ratio of the plot area.
background_color_insidebackground_color_insides, background_colour_inside, background_inside, backgroundcolorinsides, backgroundcolourinside, backgroundinside, bg_color_inside, bg_colour_inside, bg_inside, bgcolor_inside, bgcolorinside, bgcolour_inside, bgcolourinside, bginside`match`Color Type or `:match` (matches `:background_color_subplot`)Background color inside the plot area (under the grid).
background_color_subplotbackground_color_subplots, background_colour_subplot, background_subplot, backgroundcolorsubplots, backgroundcoloursubplot, backgroundsubplot, bg_color_subplot, bg_colour_subplot, bg_subplot, bgcolor_subplot, bgcolorsubplot, bgcolour_subplot, bgcoloursubplot, bgsubplot`match`Color Type or `:match` (matches `:background_color`)Base background color of the subplot.
bottom_marginbottom_margins, bottommargin, bottommargins`match`Measure (multiply by `mm`, `px`, etc) or `:match` (matches `:margin`)Specifies the extra padding on the bottom of the subplot.
cameracam, cameras, view_angle, viewangle`(30, 30)`NTuple{2, Real}Sets the view angle (azimuthal, elevation) for 3D plots
climscbar_lims, cbarlims, clim, climits, color_limits, colorlimits`auto``:auto`, NTuple{2,Number}, or a function that takes series data in and returns NTuple{2,Number}Fixes the limits of the colorbar.
color_palettecolor_palettes, colorpalettes, palette`auto`Vector of colors (cycle through) or color gradient (generate list from gradient) or `:auto` (generate a color list using `Colorsdistiguishable_colors` and custom seed colors chosen to contrast with the background). The color palette is a color list from which series colors are automatically chosen.
colorbarcb, cbar, colorbars, colorkey`legend`Bool (show the colorbar?) or Symbol (colorbar position)Symbol values: `:none`, `:best`, `:right`, `:left`, `:top`, `:bottom`, `:legend` (matches legend value) (note: only some may be supported in each backend)
colorbar_continuous_values
colorbar_discrete_values
colorbar_fontfamilycolorbar_fontfamilys, colorbarfontfamilys`match`String or SymbolFont family of colobar entries.
colorbar_formattercolorbar_formatters, colorbarformatters`auto`Function, :scientific, :plain or :autoA method which converts a number to a string for tick labeling.
colorbar_scalecolorbar_scales, colorbarscales`identity`SymbolScale of the colorbar axis: `:none`, `:ln`, `:log2`, `:log10`
colorbar_tickfontcolorcolorbar_tickfontcolors, colorbartickfontcolors`match`Color TypeFont color of colorbar tick entries
colorbar_tickfontfamilycolorbar_tickfontfamilys, colorbartickfontfamilys`match`String or SymbolFont family of colorbar tick labels.
colorbar_tickfonthaligncolorbar_tickfonthaligns, colorbartickfonthaligns
colorbar_tickfontrotationcolorbar_tickfontrotations, colorbartickfontrotations
colorbar_tickfontsizecolorbar_tickfontsizes, colorbartickfontsizes`8`IntegerFont pointsize of colorbar tick entries.
colorbar_tickfontvaligncolorbar_tickfontvaligns, colorbartickfontvaligns
colorbar_ticks
colorbar_titlecb_title, cbar_title, cbartitle, cbtitle, colorbar_titles, colorbartitle, colorbartitles, colorkey_title, colorkeytitle``StringTitle of colorbar.
colorbar_title_locationcolorbar_title_locations, colorbartitlelocations
colorbar_titlefontcolorcolorbar_titlefontcolors, colorbartitlefontcolors
colorbar_titlefontfamilycolorbar_titlefontfamilys, colorbartitlefontfamilys
colorbar_titlefonthaligncolorbar_titlefonthaligns, colorbartitlefonthaligns
colorbar_titlefontrotationcolorbar_titlefontrotations, colorbartitlefontrotations
colorbar_titlefontsizecolorbar_titlefontsizes, colorbartitlefontsizes
colorbar_titlefontvaligncolorbar_titlefontvaligns, colorbartitlefontvaligns
extra_kwargs`Dict{Any, Any}()`Either one of (`:plot`, `:subplot`, `:series`) to specify for which element extra keyword args are collected or a KW (Dict{Symbol,Any}) to pass a map of extra keyword args which may be specific to a backendDefault: `:series`. Example: `pgfplotsx(); scatter(1:5, extra_kwargs=Dict(:subplot=>Dict("axis line shift" => "10pt"))`
fontfamily_subplotfontfamily_subplots, fontfamilysubplots
foreground_color_subplotfg_color_subplot, fg_colour_subplot, fg_subplot, fgcolor_subplot, fgcolorsubplot, fgcolour_subplot, fgcoloursubplot, fgsubplot, foreground_color_subplots, foreground_colour_subplot, foreground_subplot, foregroundcolorsubplots, foregroundcoloursubplot, foregroundsubplot`match`Color Type or `:match` (matches `:foreground_color`)Base foreground color of the subplot.
foreground_color_titlefg_color_title, fg_colour_title, fg_title, fgcolor_title, fgcolortitle, fgcolour_title, fgcolourtitle, fgtitle, foreground_color_titles, foreground_colour_title, foreground_title, foregroundcolortitles, foregroundcolourtitle, foregroundtitle, titlecolor`match`Color Type or `:match` (matches `:foreground_color_subplot`)Color of subplot title.
framestyleaxes_style, axesstyle, border, border_style, borderstyle, box, box_style, boxstyle, frame, frame_style, framestyle, framestyles`axes`SymbolStyle of the axes frame. Choose from [:box, :semi, :axes, :origin, :zerolines, :grid, :none]
left_marginleft_margins, leftmargin, leftmargins`match`Measure (multiply by `mm`, `px`, etc) or `:match` (matches `:margin`)Specifies the extra padding to the left of the subplot.
legend_background_colorbackground_color_legend, background_colour_legend, background_legend, backgroundcolorlegend, backgroundcolourlegend, backgroundlegend, bg_color_legend, bg_colour_legend, bg_legend, bgcolor_legend, bgcolorlegend, bgcolour_legend, bgcolourlegend, bglegend, legend_background_colors, legendbackgroundcolor, legendbackgroundcolors`match`Color Type or `:match` (matches `:background_color_subplot`)Background color of the legend.
legend_columnlegend_columns, legendcolumn, legendcolumns`1`IntegerNumber of columns in the legend. `-1` stands for maximum number of colums (horizontal legend).
legend_fontlegend_fonts, legendfont, legendfonts`Plots.Font("sans-serif", 8, :hcenter, :vcenter, 0.0, RGB{N0f8}(0.0,0.0,0.0))`FontFont of legend items.
legend_font_colorlegend_font_colors, legendfontcolor, legendfontcolors`match`Color TypeFont color of legend entries
legend_font_familylegend_font_familys, legendfontfamily, legendfontfamilys`match`String or SymbolFont family of legend entries.
legend_font_halignlegend_font_haligns, legendfonthalign, legendfonthaligns`hcenter`SymbolFont horizontal alignment of legend entries: :hcenter, :left, :right or :center
legend_font_pointsizelegend_font_pointsizes, legendfontpointsize, legendfontpointsizes, legendfontsize`8`IntegerFont pointsize of legend entries.
legend_font_rotationlegend_font_rotations, legendfontrotation, legendfontrotations`0.0`RealFont rotation of legend entries
legend_font_valignlegend_font_valigns, legendfontvalign, legendfontvaligns`vcenter`SymbolFont vertical alignment of legend entries: :vcenter, :top, :bottom or :center
legend_foreground_colorfg_color_legend, fg_colour_legend, fg_legend, fgcolor_legend, fgcolorlegend, fgcolour_legend, fgcolourlegend, fglegend, foreground_color_legend, foreground_colour_legend, foreground_legend, foregroundcolorlegend, foregroundcolourlegend, foregroundlegend, legend_foreground_colors, legendforegroundcolor, legendforegroundcolors`match`Color Type or `:match` (matches `:foreground_color_subplot`)Foreground color of the legend.
legend_positionkey, leg, legend, legend_positions, legendposition, legendpositions, legends`best`Bool (show the legend?) or (x,y) tuple or Symbol (legend position) or angle or (angle,inout) tupleBottom left corner of legend is placed at (x,y). Symbol values: `:none`; `:best`; `:inline`; `:inside`; `:legend`; any valid combination of `:(outer ?)(top/bottom ?)(right/left ?)`, i.e.: `:top`, `:topright`, `:outerleft`, `:outerbottomright` ... (note: only some may be supported in each backend)
legend_titlekey_title, keytitle, label_title, labeltitle, leg_title, legend_titles, legendtitle, legendtitles, legtitle`nothing`StringLegend title.
legend_title_fontlegend_title_fonts, legendtitlefont, legendtitlefonts`Plots.Font("sans-serif", 11, :hcenter, :vcenter, 0.0, RGB{N0f8}(0.0,0.0,0.0))`FontFont of the legend title.
legend_title_font_colorlegend_title_font_colors, legendtitlefontcolor, legendtitlefontcolors`match`Color TypeFont color of the legend title
legend_title_font_familylegend_title_font_familys, legendtitlefontfamily, legendtitlefontfamilys`match`String or SymbolFont family of the legend title.
legend_title_font_halignlegend_title_font_haligns, legendtitlefonthalign, legendtitlefonthaligns`hcenter`SymbolFont horizontal alignment of the legend title: :hcenter, :left, :right or :center
legend_title_font_pointsizelegend_title_font_pointsizes, legendtitlefontpointsize, legendtitlefontpointsizes, legendtitlefontsize`11`IntegerFont pointsize the legend title.
legend_title_font_rotationlegend_title_font_rotations, legendtitlefontrotation, legendtitlefontrotations`0.0`RealFont rotation of the legend title
legend_title_font_valignlegend_title_font_valigns, legendtitlefontvalign, legendtitlefontvaligns`vcenter`SymbolFont vertical alignment of the legend title: :vcenter, :top, :bottom or :center
marginmargins`1.0mm`Measure (multiply by `mm`, `px`, etc)Base for individual margins... not directly used. Specifies the extra padding around subplots.
projectionproj, projections`none`Symbol or String'3d' or 'polar'
right_marginright_margins, rightmargin, rightmargins`match`Measure (multiply by `mm`, `px`, etc) or `:match` (matches `:margin`)Specifies the extra padding to the right of the subplot.
subplot_indexsubplot_indexs, subplotindexs`-1`IntegerInternal (not set by user). Specifies the index of this subplot in the Plot's `plt.subplot` list.
titletitles``StringSubplot title.
titlefontcolortitlefontcolors`match`Color TypeFont color of subplot title
titlefontfamilytitlefontfamilys`match`String or SymbolFont family of subplot title.
titlefonthaligntitlefonthaligns`hcenter`SymbolFont horizontal alignment of subplot title: :hcenter, :left, :right or :center
titlefontrotationtitlefontrotations`0.0`RealFont rotation of subplot title
titlefontsizetitlefontsizes`14`IntegerFont pointsize of subplot title.
titlefontvaligntitlefontvaligns`vcenter`SymbolFont vertical alignment of subplot title: :vcenter, :top, :bottom or :center
titlelocationtitle_align, title_alignment, title_loc, title_location, title_pos, title_position, titlealign, titlealignment, titleloc, titlelocation, titlelocations, titlepos, titleposition`center`SymbolPosition of subplot title. Values: `:left`, `:center`, `:right`
top_margintop_margins, topmargin, topmargins`match`Measure (multiply by `mm`, `px`, etc) or `:match` (matches `:margin`)Specifies the extra padding on the top of the subplot.

(Automatically generated: 2022-06-22T14:36:30.281)