MCPcopy Create free account
hub / github.com/alceal/plotlars / title_top_margin

Function title_top_margin

crates/plotlars-plotters/src/render/title.rs:43–49  ·  view source on GitHub ↗
(config: &LayoutConfig)

Source from the content-addressed store, hash-verified

41}
42
43pub(super) fn title_top_margin(config: &LayoutConfig) -> u32 {
44 if config.title.is_some() {
45 config.title_font_size + 10
46 } else {
47 0
48 }
49}
50
51#[allow(clippy::too_many_arguments)]
52pub(super) fn draw_axis_titles<DB: DrawingBackend>(

Callers 8

render_boxplotFunction · 0.85
render_bar_verticalFunction · 0.85
render_bar_horizontalFunction · 0.85
render_numericFunction · 0.85
draw_plot_titleFunction · 0.85
draw_axis_titlesFunction · 0.85
render_heatmapFunction · 0.85
draw_color_barFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected