atomes 1.3.1
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
labels.c File Reference

Function to draw the axis labels. More...

#include <string.h>
#include <math.h>
#include <cairo.h>
#include <pango/pangocairo.h>
#include "global.h"
#include "curve.h"
Include dependency graph for labels.c:

Go to the source code of this file.

Functions

void label_curve (cairo_t *cr, double val, int axe, int p, Curve *this_curve)
 draw axis label

Detailed Description

Function to draw the axis labels.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file labels.c.

Function Documentation

◆ label_curve()

void label_curve ( cairo_t * cr,
double val,
int axe,
int p,
Curve * this_curve )

draw axis label

Parameters
crthe cairo drawing context to use for the draw
valthe value to display
axeaxis (0 = x, 1 = y)
plabel position (0 = bottom, 1 = top)
this_curvethe target curve

Definition at line 56 of file labels.c.