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

Functions to draw the y axis. More...

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

Go to the source code of this file.

Functions

void autoscale_axis (project *this_proj, int rid, int cid, int aid)
 autoscale axis
 
void setup_yaxis_linear (cairo_t *cr, project *this_proj, int rid, int cid)
 setup y axis using a linear scale
 
void setup_yaxis_log (cairo_t *cr, project *this_proj, int rid, int cid, gboolean draw_it)
 setup y axis using a log scale
 

Detailed Description

Functions to draw the y 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 yaxis.c.

Function Documentation

◆ autoscale_axis()

void autoscale_axis ( project * this_proj,
int rid,
int cid,
int aid )

autoscale axis

Parameters
this_projthe target project
ridthe analysis id
cidthe curve id
aidthe axis id

Definition at line 55 of file yaxis.c.

◆ setup_yaxis_linear()

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

setup y axis using a linear scale

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

Definition at line 121 of file yaxis.c.

◆ setup_yaxis_log()

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

setup y 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 231 of file yaxis.c.