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

Functions to draw the x axis. More...

#include <math.h>
#include <cairo.h>
#include "global.h"
#include "curve.h"
+ Include dependency graph for xaxis.c:

Go to the source code of this file.

Functions

void setup_xaxis_linear (cairo_t *cr, project *this_proj, int rid, int cid)
 setup x axis using a linear scale
 
void setup_xaxis_log (cairo_t *cr, project *this_proj, int rid, int cid, gboolean draw_it)
 setup x axis using a log scale
 

Detailed Description

Functions to draw the x axis.

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 xaxis.c.

Function Documentation

◆ setup_xaxis_linear()

void setup_xaxis_linear ( cairo_t * cr,
project * this_proj,
int rid,
int cid )

setup x axis using a linear scale

Parameters
crthe cairo drawing context
this_projthe target project
ridthe analysis id
cidthe curve id

Definition at line 54 of file xaxis.c.

◆ setup_xaxis_log()

void setup_xaxis_log ( cairo_t * cr,
project * this_proj,
int rid,
int cid,
gboolean draw_it )

setup x axis using a log scale

Parameters
crthe cairo drawing context
this_projthe target project
ridthe analysis id
cidthe curve id
draw_it1/0 draw or not

Definition at line 163 of file xaxis.c.