Top |
PocLegendPocLegend — Widget to display a legend for a PocPlot. |
gdouble | legend-text-size | Read / Write |
gdouble | line-sample-size | Read / Write |
gdouble | line-spacing | Read / Write |
PocPlot * | plot | Read / Write |
gdouble | title-text-size | Read / Write |
PocLegend displays a legend for the specified PocPlot widget. Plot and dataset titles are used for legend text and dataset line styles and colours are used for the line samples.
Please note that although operational, PocLegend is more of a proof-of-concept at present and needs some work on its aesthetics.
void poc_legend_set_plot (PocLegend *self
,PocPlot *plot
);
Display a legend for the associated plot widget.
void poc_legend_set_title_text_size (PocLegend *self
,gdouble title_text_size
);
Set title text size.
gdouble
poc_legend_get_title_text_size (PocLegend *self
);
Get title text size.
void poc_legend_set_legend_text_size (PocLegend *self
,gdouble legend_text_size
);
Set legend text size.
gdouble
poc_legend_get_legend_text_size (PocLegend *self
);
Get legend text size.
void poc_legend_set_line_sample_size (PocLegend *self
,gdouble line_sample_size
);
Set line sample size.
gdouble
poc_legend_get_line_sample_size (PocLegend *self
);
Get line sample size.
void poc_legend_set_line_spacing (PocLegend *self
,gdouble line_spacing
);
Set line spacing as a multiple of the text height where 1.0 equals text height.
“legend-text-size”
property“legend-text-size” gdouble
Size for legend text.
Owner: PocLegend
Flags: Read / Write
Allowed values: >= 1
Default value: 10
“line-sample-size”
property“line-sample-size” gdouble
Length of sample line.
Owner: PocLegend
Flags: Read / Write
Allowed values: >= 1
Default value: 50
“line-spacing”
property“line-spacing” gdouble
Factor to scale line spacing.
Owner: PocLegend
Flags: Read / Write
Allowed values: [0.8,5]
Default value: 1
“plot”
property“plot” PocPlot *
Generate legend for the specified plot.
Owner: PocLegend
Flags: Read / Write
“title-text-size”
property“title-text-size” gdouble
Size for title text.
Owner: PocLegend
Flags: Read / Write
Allowed values: >= 1
Default value: 12