axis.h
Go to the documentation of this file.
/*
* axis.h
*
* Logic to deal with various axises
*
* Copyright (C) 2013-2021 Sylvain Munaut
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#pragma once
/*! \defgroup axis
* @{
*/
/*! \file axis.h
* \brief Logic to deal with various axises
*/
struct freq_axis
{
double center;
double span;
double step;
int mode;
char abs_fmt[16];
double abs_scale;
char rel_fmt[16];
double rel_step;
};
void freq_axis_build(struct freq_axis *fx, double center, double span, int n_div);
void freq_axis_render(struct freq_axis *fx, char *str, int step);
/*! @} */
freq_axis_render
void freq_axis_render(struct freq_axis *fx, char *str, int step)
freq_axis_build
void freq_axis_build(struct freq_axis *fx, double center, double span, int n_div)
freq_axis
Definition axis.h:21
freq_axis::mode
int mode
Definition axis.h:25
freq_axis::rel_fmt
char rel_fmt[16]
Definition axis.h:28
freq_axis::rel_step
double rel_step
Definition axis.h:29
freq_axis::center
double center
Definition axis.h:22
freq_axis::abs_scale
double abs_scale
Definition axis.h:27
freq_axis::span
double span
Definition axis.h:23
freq_axis::step
double step
Definition axis.h:24
freq_axis::abs_fmt
char abs_fmt[16]
Definition axis.h:26