BAxisView

BAxisView — Widget for displaying a linear or logarithmic axis.

Functions

Properties

gchar * axis-label Read / Write / Construct
gboolean draw-edge Read / Write / Construct
gboolean draw-label Read / Write / Construct
gdouble edge-thickness Read / Write / Construct
gdouble label-offset Read / Write / Construct
gdouble major-tick-length Read / Write / Construct
gdouble major-tick-thickness Read / Write / Construct
gdouble minor-tick-length Read / Write / Construct
BCompass position Read / Write / Construct Only
gboolean show-major-labels Read / Write / Construct
gboolean show-major-ticks Read / Write / Construct
gboolean show-minor-ticks Read / Write / Construct

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkDrawingArea
                ╰── BElementView
                    ╰── BElementViewCartesian
                        ╰── BAxisView

Implemented Interfaces

BAxisView implements AtkImplementorIface and GtkBuildable.

Description

This widget is used to display axes along the edges of a BScatterLineView or BDensityView. The orientation of the axis and position of the axis edge are controlled by the "position" property, which indicates on which side of the plot the axis should be placed.

The axis type to use to get/set the view interval and axis markers is META_AXIS.

The color used for the edge and tick marks are controlled using a CSS stylesheet. Classes called "edge", "major-ticks", "minor-ticks" can be used to set the color.

Functions

b_axis_view_new ()

BAxisView *
b_axis_view_new (BCompass t);

Convenience function to create a new BAxisView.

Parameters

t

axis type

 

Returns

the position of the axis (placement of axis with respect to its plot view).

Types and Values

BAxisView

typedef struct _BAxisView BAxisView;

enum BCompass

Enum values used to specify the position of an axis with respect to a main plot.

Members

B_COMPASS_INVALID

not used

 

B_COMPASS_NORTH

axis is above the plot

 

B_COMPASS_SOUTH

axis is below the plot

 

B_COMPASS_EAST

axis is to the right of the plot

 

B_COMPASS_WEST

axis is to the left of the plot

 

Property Details

The “axis-label” property

  “axis-label”               gchar *

Label for the axis.

Flags: Read / Write / Construct

Default value: ""


The “draw-edge” property

  “draw-edge”                gboolean

Whether to draw the axis edge next to the main plot.

Flags: Read / Write / Construct

Default value: TRUE


The “draw-label” property

  “draw-label”               gboolean

Whether to draw an axis label.

Flags: Read / Write / Construct

Default value: TRUE


The “edge-thickness” property

  “edge-thickness”           gdouble

The thickness of the axis edge in pixels.

Flags: Read / Write / Construct

Allowed values: [0,10]

Default value: 1


The “label-offset” property

  “label-offset”             gdouble

The gap between ticks and labels in pixels.

Flags: Read / Write / Construct

Allowed values: [0,10]

Default value: 2


The “major-tick-length” property

  “major-tick-length”        gdouble

The length of major ticks in pixels.

Flags: Read / Write / Construct

Allowed values: [0,100]

Default value: 5


The “major-tick-thickness” property

  “major-tick-thickness”     gdouble

The thickness of major ticks in pixels.

Flags: Read / Write / Construct

Allowed values: [0,10]

Default value: 1


The “minor-tick-length” property

  “minor-tick-length”        gdouble

The length of minor ticks in pixels.

Flags: Read / Write / Construct

Allowed values: [0,100]

Default value: 3


The “position” property

  “position”                 BCompass

The position of the axis with respect to a plot.

Flags: Read / Write / Construct Only

Default value: B_COMPASS_WEST


The “show-major-labels” property

  “show-major-labels”        gboolean

Whether to draw labels next to major ticks.

Flags: Read / Write / Construct

Default value: TRUE


The “show-major-ticks” property

  “show-major-ticks”         gboolean

Whether to draw major ticks.

Flags: Read / Write / Construct

Default value: TRUE


The “show-minor-ticks” property

  “show-minor-ticks”         gboolean

Whether to draw minor ticks.

Flags: Read / Write / Construct

Default value: TRUE