MCPcopy Create free account
hub / github.com/KaisenAmin/c_std / plot_get_ylim

Function plot_get_ylim

plot/plot.c:2198–2211  ·  view source on GitHub ↗

* @brief Read back the effective y-axis range that rendering will use. * * The y-axis counterpart to `plot_get_xlim`; see that function for the full * contract. * * @param plot Plot to query. Must be non-NULL. * @param outMin Receives the lower bound. Must be non-NULL. * @param outMax Receives the upper bound. Must be non-NULL. * @return true on success; false if any argument is NULL, or

Source from the content-addressed store, hash-verified

2196/**
2197 * @brief Set the pixel sizes used for the title and the axis labels.
2198 *
2199 * Overrides the defaults (title 28 px, axis labels 20 px). A non-positive
2200 * value leaves that size unchanged, so you can adjust just one.
2201 *
2202 * @param plot The plot. NULL is a no-op.
2203 * @param titleSize New title font size in pixels (<= 0 keeps the current value).
2204 * @param labelSize New axis-label font size in pixels (<= 0 keeps the current value).
2205 */
2206void plot_set_font_size(Plot* plot, int titleSize, int labelSize) {
2207 if (!plot) {
2208 return;
2209 }
2210 if (titleSize > 0) {
2211 plot->titleFontSize = titleSize;
2212 }
2213 if (labelSize > 0) {
2214 plot->labelFontSize = labelSize;

Callers

nothing calls this directly

Calls 1

compute_extentsFunction · 0.85

Tested by

no test coverage detected