amino
Lightweight Robot Utility Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
plot.h
Go to the documentation of this file.
1
/* -*- mode: C; c-basic-offset: 4 -*- */
2
/* ex: set shiftwidth=4 tabstop=4 expandtab: */
3
/*
4
* Copyright (c) 2010-2011, Georgia Tech Research Corporation
5
* All rights reserved.
6
*
7
* Author(s): Neil T. Dantam <ntd@gatech.edu>
8
* Georgia Tech Humanoid Robotics Lab
9
* Under Direction of Prof. Mike Stilman <mstilman@cc.gatech.edu>
10
*
11
*
12
* This file is provided under the following "BSD-style" License:
13
*
14
*
15
* Redistribution and use in source and binary forms, with or
16
* without modification, are permitted provided that the following
17
* conditions are met:
18
*
19
* * Redistributions of source code must retain the above copyright
20
* notice, this list of conditions and the following disclaimer.
21
*
22
* * Redistributions in binary form must reproduce the above
23
* copyright notice, this list of conditions and the following
24
* disclaimer in the documentation and/or other materials provided
25
* with the distribution.
26
*
27
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
28
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
29
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
31
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
32
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
35
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
36
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
38
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39
* POSSIBILITY OF SUCH DAMAGE.
40
*
41
*/
42
#ifndef AMINO_PLOT_H
43
#define AMINO_PLOT_H
44
49
typedef
struct
aa_plot_opts
{
51
const
char
*
title
;
52
const
char
*
xlabel
;
53
const
char
*
ylabel
;
54
const
char
**
axis_label
;
55
const
char
*
script_file
;
56
}
aa_plot_opts_t
;
57
67
AA_API
void
68
aa_plot_row_series
(
size_t
m,
size_t
n,
69
double
*t,
size_t
inct,
70
double
*Y,
size_t
ldY,
71
const
struct
aa_plot_opts
*opts);
72
73
#endif //AA_PLOT_H
aa_plot_opts
options for a plot
Definition:
plot.h:50
aa_plot_opts::ylabel
const char * ylabel
y axis label
Definition:
plot.h:53
aa_plot_opts::xlabel
const char * xlabel
x axis label
Definition:
plot.h:52
aa_plot_opts::title
const char * title
plot title
Definition:
plot.h:51
aa_plot_row_series
AA_API void aa_plot_row_series(size_t m, size_t n, double *t, size_t inct, double *Y, size_t ldY, const struct aa_plot_opts *opts)
Plots Y over t.
aa_plot_opts::axis_label
const char ** axis_label
name of each data series
Definition:
plot.h:54
aa_plot_opts_t
struct aa_plot_opts aa_plot_opts_t
options for a plot
AA_API
#define AA_API
calling and name mangling convention for functions
Definition:
amino.h:95
aa_plot_opts::script_file
const char * script_file
output gnuplot commands to this file
Definition:
plot.h:55