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

Function to draw a curve. More...

#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <stdlib.h>
#include <math.h>
#include <cairo.h>
#include "global.h"
#include "curve.h"
+ Include dependency graph for draw.c:

Go to the source code of this file.

Functions

void draw_curve (cairo_t *cr, int cid, int rid, project *this_proj, int points, ColRGBA withcolor, int xscale, int yscale, int asp, int vdash, double thick, int glyp, double gize, int freq, double hwidth, double hopac, int hpos, int extra, int pid)
 draw target curve to the cairo drawing context
 

Detailed Description

Function to draw a curve.

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

Function Documentation

◆ draw_curve()

void draw_curve ( cairo_t * cr,
int cid,
int rid,
project * this_proj,
int points,
ColRGBA withcolor,
int xscale,
int yscale,
int asp,
int vdash,
double thick,
int glyp,
double gize,
int freq,
double hwidth,
double hopac,
int hpos,
int extra,
int pid )

draw target curve to the cairo drawing context

Parameters
crthe cairo drawing context to use for the draw
cidthe target curve id
ridthe target calculation id
this_projthe target project
pointsthe number of data point(s)
withcolorthe data color
xscalex axis scale type (0 = linear, 1 = log)
yscaley axis scale type (0 = linear, 1 = log)
aspdata aspect (0 = x/y normal, 1 = historgram)
vdashdash type
thickline tthickness
glypglyph type
gizeglyph size
freqglyph frequency
hwidthhistogram bar width
hopachistogram bar opacity value
hposhistogram opacity treatment (0 = no opacity, 1 = use opacity)
extrathe number of extra data sets
pid0 (x/y plot) or plot id number (historgram)

Definition at line 85 of file draw.c.