projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mark histogram legend strings for translation
[pspp]
/
src
/
output
/
cairo-chart.h
diff --git
a/src/output/cairo-chart.h
b/src/output/cairo-chart.h
index 1a23dd179329cde657b12a98cd6c5f1ef1c8b05b..5e8123ed1a6617408522043c9f0789aefc2818b8 100644
(file)
--- a/
src/output/cairo-chart.h
+++ b/
src/output/cairo-chart.h
@@
-31,16
+31,20
@@
struct xrchart_colour
uint8_t blue;
};
uint8_t blue;
};
+struct xrchart_axis
+{
+ int data_max;
+ int data_min;
+
+ double scale;
+ double min;
+ double max;
+};
+
/* The geometry of a chart. */
struct xrchart_geometry
{
/* The geometry of a chart. */
struct xrchart_geometry
{
- int data_top;
- int data_right;
- int data_bottom;
- int data_left;
-
int abscissa_top;
int abscissa_top;
-
int ordinate_right;
int title_bottom;
int ordinate_right;
int title_bottom;
@@
-57,12
+61,9
@@
struct xrchart_geometry
struct xrchart_colour fill_colour;
/* Stuff particular to cartesians and boxplots. */
struct xrchart_colour fill_colour;
/* Stuff particular to cartesians and boxplots. */
- double ordinate_scale;
- double abscissa_scale;
- double x_min;
- double x_max;
- double y_min;
- double y_max;
+ struct xrchart_axis axis[2];
+
+ /* True iff a path is currently being drawn */
bool in_path;
};
bool in_path;
};
@@
-75,8
+76,8
@@
extern const struct xrchart_colour data_colour[];
enum tick_orientation
{
enum tick_orientation
{
-
TICK
_ABSCISSA=0,
-
TICK
_ORDINATE
+
SCALE
_ABSCISSA=0,
+
SCALE
_ORDINATE
};
enum xrmarker_type
};
enum xrmarker_type