atomes 1.1.14
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 (cairo_t *cr, double val, int axe, int p, project *this_proj)
 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()

void label ( cairo_t * cr,
double val,
int axe,
int p,
project * this_proj )

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_projthe target project

Definition at line 56 of file labels.c.