Index

Package: Plot_Data

Description

package Gtk.Extra.Plot_Data is
This package defines the root of the plot hierarchy. It defines several display strategies that can be used to show scientific data on the screen (see the children for 3D, polar, bars,...) All coordinates are in percent of the total size allocates for the data set (ie the actual position is (x * width, y * height), where (x, y) is the value stored in the data set and (width, height) its allocated screen size.

Binding from C File version gtkextra 2.1.1

<testgtk>create_plot_realtime.adb</testgtk>

Classes

Gtk_Plot_Data_Record

type Gtk_Plot_Data_Record is new Gtk.Widget.Gtk_Widget_Record with private;

Ancestors:

Immediate Children:

Primitive operations:

Area_Is_Filled
Dimension_Set_Points
Get_Connector
Get_Gradient
Get_Gradient_Colors
Get_Gradient_Level
Get_Gradient_Mask
Get_Gradient_Nth_Color
Get_Gradient_Outer_Colors
Get_Legend_Precision
Get_Line_Attributes
Get_Numpoints
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gradient_Autoscale_A
Gradient_Autoscale_Da
Gradient_Autoscale_Z
Gradient_Custom_Colors
Gradient_Set_Scale
Gradient_Set_Style
Gradient_Set_Visible
Gradient_Use_Custom_Colors
Gradient_Visible
Gtk.Widget.Activate (Inherited)
Gtk.Widget.Add_Accelerator (Inherited)
Gtk.Widget.Add_Events (Inherited)
Gtk.Widget.Add_Mnemonic_Label (Inherited)
Gtk.Widget.Can_Activate_Accel (Inherited)
Gtk.Widget.Child_Notify (Inherited)
Gtk.Widget.Class_Path (Inherited)
Gtk.Widget.Class_Path_Reversed (Inherited)
Gtk.Widget.Create_Pango_Context (Inherited)
Gtk.Widget.Create_Pango_Layout (Inherited)
Gtk.Widget.Destroy (Inherited)
Gtk.Widget.Draw (Inherited)
Gtk.Widget.Ensure_Style (Inherited)
Gtk.Widget.Error_Bell (Inherited)
Gtk.Widget.Flag_Is_Set (Inherited)
Gtk.Widget.Flags (Inherited)
Gtk.Widget.Freeze_Child_Notify (Inherited)
Gtk.Widget.Get_Allocation_Height (Inherited)
Gtk.Widget.Get_Allocation_Width (Inherited)
Gtk.Widget.Get_Allocation_X (Inherited)
Gtk.Widget.Get_Allocation_Y (Inherited)
Gtk.Widget.Get_Ancestor (Inherited)
Gtk.Widget.Get_Child_Requisition (Inherited)
Gtk.Widget.Get_Child_Visible (Inherited)
Gtk.Widget.Get_Colormap (Inherited)
Gtk.Widget.Get_Composite_Name (Inherited)
Gtk.Widget.Get_Direction (Inherited)
Gtk.Widget.Get_Events (Inherited)
Gtk.Widget.Get_Extension_Events (Inherited)
Gtk.Widget.Get_Has_Tooltip (Inherited)
Gtk.Widget.Get_Name (Inherited)
Gtk.Widget.Get_No_Show_All (Inherited)
Gtk.Widget.Get_Pango_Context (Inherited)
Gtk.Widget.Get_Parent (Inherited)
Gtk.Widget.Get_Parent_Window (Inherited)
Gtk.Widget.Get_Pointer (Inherited)
Gtk.Widget.Get_Root_Window (Inherited)
Gtk.Widget.Get_Size_Request (Inherited)
Gtk.Widget.Get_Snapshot (Inherited)
Gtk.Widget.Get_State (Inherited)
Gtk.Widget.Get_Style (Inherited)
Gtk.Widget.Get_Tooltip_Markup (Inherited)
Gtk.Widget.Get_Tooltip_Text (Inherited)
Gtk.Widget.Get_Tooltip_Window (Inherited)
Gtk.Widget.Get_Toplevel (Inherited)
Gtk.Widget.Get_Visual (Inherited)
Gtk.Widget.Get_Window (Inherited)
Gtk.Widget.Grab_Default (Inherited)
Gtk.Widget.Grab_Focus (Inherited)
Gtk.Widget.Has_Screen (Inherited)
Gtk.Widget.Hide (Inherited)
Gtk.Widget.Hide_All (Inherited)
Gtk.Widget.Input_Shape_Combine_Mask (Inherited)
Gtk.Widget.Intersect (Inherited)
Gtk.Widget.Is_Ancestor (Inherited)
Gtk.Widget.Is_Composited (Inherited)
Gtk.Widget.Is_Focus (Inherited)
Gtk.Widget.Keynav_Failed (Inherited)
Gtk.Widget.List_Mnemonic_Labels (Inherited)
Gtk.Widget.Map (Inherited)
Gtk.Widget.Mnemonic_Activate (Inherited)
Gtk.Widget.Modify_Base (Inherited)
Gtk.Widget.Modify_Bg (Inherited)
Gtk.Widget.Modify_Cursor (Inherited)
Gtk.Widget.Modify_Fg (Inherited)
Gtk.Widget.Modify_Font (Inherited)
Gtk.Widget.Modify_Text (Inherited)
Gtk.Widget.Path (Inherited)
Gtk.Widget.Path_Reversed (Inherited)
Gtk.Widget.Queue_Clear (Inherited)
Gtk.Widget.Queue_Clear_Area (Inherited)
Gtk.Widget.Queue_Draw (Inherited)
Gtk.Widget.Queue_Draw_Area (Inherited)
Gtk.Widget.Queue_Resize (Inherited)
Gtk.Widget.Queue_Resize_No_Redraw (Inherited)
Gtk.Widget.Realize (Inherited)
Gtk.Widget.Region_Intersect (Inherited)
Gtk.Widget.Remove_Accelerator (Inherited)
Gtk.Widget.Remove_Mnemonic_Label (Inherited)
Gtk.Widget.Render_Icon (Inherited)
Gtk.Widget.Reparent (Inherited)
Gtk.Widget.Reset_Rc_Styles (Inherited)
Gtk.Widget.Reset_Shapes (Inherited)
Gtk.Widget.Restore_Default_Style (Inherited)
Gtk.Widget.Send_Expose (Inherited)
Gtk.Widget.Set_Accel_Path (Inherited)
Gtk.Widget.Set_App_Paintable (Inherited)
Gtk.Widget.Set_Child_Visible (Inherited)
Gtk.Widget.Set_Colormap (Inherited)
Gtk.Widget.Set_Composite_Name (Inherited)
Gtk.Widget.Set_Direction (Inherited)
Gtk.Widget.Set_Double_Buffered (Inherited)
Gtk.Widget.Set_Events (Inherited)
Gtk.Widget.Set_Extension_Events (Inherited)
Gtk.Widget.Set_Flags (Inherited)
Gtk.Widget.Set_Has_Tooltip (Inherited)
Gtk.Widget.Set_No_Show_All (Inherited)
Gtk.Widget.Set_Parent (Inherited)
Gtk.Widget.Set_Parent_Window (Inherited)
Gtk.Widget.Set_Redraw_On_Allocate (Inherited)
Gtk.Widget.Set_Scroll_Adjustments (Inherited)
Gtk.Widget.Set_Sensitive (Inherited)
Gtk.Widget.Set_Size_Request (Inherited)
Gtk.Widget.Set_State (Inherited)
Gtk.Widget.Set_Style (Inherited)
Gtk.Widget.Set_Tooltip_Markup (Inherited)
Gtk.Widget.Set_Tooltip_Text (Inherited)
Gtk.Widget.Set_Tooltip_Window (Inherited)
Gtk.Widget.Set_UPosition (Inherited)
Gtk.Widget.Set_USize (Inherited)
Gtk.Widget.Set_Window (Inherited)
Gtk.Widget.Shape_Combine_Mask (Inherited)
Gtk.Widget.Show (Inherited)
Gtk.Widget.Show_All (Inherited)
Gtk.Widget.Show_Now (Inherited)
Gtk.Widget.Size_Allocate (Inherited)
Gtk.Widget.Size_Request (Inherited)
Gtk.Widget.Style_Get_Property (Inherited)
Gtk.Widget.Thaw_Child_Notify (Inherited)
Gtk.Widget.Trigger_Tooltip_Query (Inherited)
Gtk.Widget.Unmap (Inherited)
Gtk.Widget.Unrealize (Inherited)
Gtk.Widget.Unset_Flags (Inherited)
Hide_Xerrbars
Hide_Yerrbars
Hide_Zerrbars
Labels_Set_Attributes
Markers_Visible
Move_Gradient
Remove_Marker
Remove_Markers
Reset_Gradient
Reset_Gradient_Colors
Set_Connector
Set_Gradient
Set_Gradient_Colors
Set_Gradient_Mask
Set_Gradient_Nth_Color
Set_Gradient_Outer_Colors
Set_Gradient_Size
Set_Legend_Precision
Set_Line_Attributes
Set_Numpoints
Set_X_Attributes
Set_Y_Attributes
Set_Z_Attributes
Show_Markers
Show_Xerrbars
Show_Yerrbars
Show_Zerrbars

Types

Plot_Label_Style

type Plot_Label_Style is (Label_Float, Label_Exp, Label_Pow);
The style of labels (floating point, or scientific notation)

Plot_Scale

type Plot_Scale is (Scale_Linear, Scale_Log10);
Type of scale used for each axis of a graph.

Gtk_Plot_Data

type Gtk_Plot_Data is access all Gtk_Plot_Data_Record'Class;
A set of values that can be represented on the screen. There are several strategies to set the values, either explicitely in your application, or by having them automatically generated by a function.

Gtk_Plot_Marker

type Gtk_Plot_Marker is new Gdk.C_Proxy;

No_Range_Gdouble_Array

type No_Range_Gdouble_Array is array (Natural) of Gdouble;
An array of values. This is used to represent the data values displayed in the plot. This array does not have any range information (so that it can be easily returned from a C function, without requiring an extra copy of the table). You can not use 'Range on this array.

No_Range_Gdouble_Array_Access

type No_Range_Gdouble_Array_Access is access all No_Range_Gdouble_Array;
An access to a flat array.

Gdouble_Array_Access

type Gdouble_Array_Access is access all Glib.Gdouble_Array;
The reason we use this type in the functions below is because gtk+-extra does not keep a copy of the arrays, but points to the one given in argument. Thus, the Ada arrays should not be allocated on the stack, or at least they should be at library level. Using this 'Access will force the compiler to do the check for us.

Points_Array

type Points_Array is record
      Points     : No_Range_Gdouble_Array_Access;
      Num_Points : Gint := 0;
   end record;
The points are indexed from 0 to Num_Points-1. Note that you can't use 'Range, 'First or 'Last on Points.

Plot_Connector

type Plot_Connector is
     (Connect_None,
      --  No connection

      Connect_Straight,
      --  straight line

      Connect_Spline,
      --  spline or Bezier curve

      Connect_Hv_Step,
      --  Horizontal then vertical

      Connect_Vh_Step,
      --  Vertical then horizontal

      Connect_Middle_Step
      --  Split in the middle
     );

Plot_Gradient

type Plot_Gradient is new Integer;
Indicate which color components vary along the gradient

Plot_Symbol_Type

type Plot_Symbol_Type is
     (Symbol_None,
      Symbol_Square,
      Symbol_Circle,
      Symbol_Up_Triangle,
      Symbol_Down_Triangle,
      Symbol_Right_Triangle,
      Symbol_Left_Triangle,
      Symbol_Diamond,
      Symbol_Plus,
      Symbol_Cross,
      Symbol_Star,
      Symbol_Dot,
      Symbol_Impulse);
Type of symbol used to represent the points in a graph.

Plot_Symbol_Style

type Plot_Symbol_Style is
     (Symbol_Empty,
      Symbol_Filled,
      Symbol_Opaque);
Style used to draw the points in a graph.

Plot_Line_Style

type Plot_Line_Style is
     (Line_None,
      Line_Solid,
      Line_Dotted,
      Line_Dashed,
      Line_Dot_Dash,
      Line_Dot_Dot_Dash,
      Line_Dot_Dash_Dash);
Lines used to connect two adjacent points in a graph.

Plot_Angle

type Plot_Angle is (Angle_0, Angle_90, Angle_180, Angle_270);
Valid values for the angles of texts and titles.

Plot_Function

type Plot_Function is access function
     (Plot  : System.Address;
      Set   : Gtk_Plot_Data;
      X     : Gdouble;
      Error : access Gboolean) return Gdouble;
Function used for plotting. It should return the value associated with X in its graph, and set Error to True if there was an error while calculating the value.

Constants & Global variables

Gradient_H (Plot_Gradient)

Gradient_H : constant Plot_Gradient;

Gradient_V (Plot_Gradient)

Gradient_V : constant Plot_Gradient;
Hue

Gradient_S (Plot_Gradient)

Gradient_S : constant Plot_Gradient;
Value

Subprograms & Entries

Convert

function Convert is new Unchecked_Conversion 
(Gtk_Plot_Data, System.Address);
<doc_ignore> The convert functions are needed to e.g. instantiate Generic_List They should not be used directly

Convert

function Convert is new Unchecked_Conversion 
(System.Address, Gtk_Plot_Data);
</doc_ignore>

Gtk_New

procedure Gtk_New 
(Data: out Gtk_Plot_Data;
Func: Plot_Function := null);
Creates a new data set. Its values can either be generated automatically from Func, or will have to be set explicitely using the other subprograms in this package.

Initialize

procedure Initialize 
(Data: access Gtk_Plot_Data_Record'Class;
Func: Plot_Function := null);
Internal initialization function. See the section "Creating your own widgets" in the documentation.

Get_Type

function Get_Type return Gtk.Gtk_Type;
Return the internal value associated with a Gtk_Plot_Data.

Set_Name

procedure Set_Name 
(Data: access Gtk_Plot_Data_Record;
Name: String);
Set the name used internally for that dataset. This name does not appear anywhere on the screen, but it is easier to find the dataset afterward by using this name.

Clone

procedure Clone 
(Data: access Gtk_Plot_Data_Record;
Copy: access Gtk_Plot_Data_Record'Class);
Copy the contents of Data into Copy, which must have been allocated first

Paint

procedure Paint 
(Data: access Gtk_Plot_Data_Record);
Emits the "draw_data" signal to request a redrawing of the data set.

Update

procedure Update 
(Data: access Gtk_Plot_Data_Record);
Indicates that the data has changed, and the graphical view should reflect this.

Draw_Points

procedure Draw_Points 
(Data: access Gtk_Plot_Data_Record;
N: Gint);
Draw the N last (most recent) values of the Data set on the screen. If N is greater than the actual number of values in Data, then they are all displayed. This subprogram should be used when you want to periodically update the contents of a dataset (you would then modify the number of points in the dataset with a call to Set_Numpoints, then register the new points with Set_X and Set_Y, and finally refresh the dataset with a call to Draw_Points and Gtk.Plot.Refresh).

Draw_Symbol

procedure Draw_Symbol 
(Data: access Gtk_Plot_Data_Record;
X, Y: Gdouble);
Draw the current symbol (see Set_Symbol) at specific coordinates on the screen.

Dimension_Set_Points

procedure Dimension_Set_Points 
(Data: access Gtk_Plot_Data_Record;
Name: String;
Points: Gdouble_Array_Access);
Set the coordinates of the points along one dimension

Set_Numpoints

procedure Set_Numpoints 
(Data: access Gtk_Plot_Data_Record;
Num: Gint);
Set the number of points that should be expected in the graph. Note that this does not automatically resize all the internal structure, it just indicates what size the parameters to Set_X, Set_Y,... should have.

Get_Numpoints

function Get_Numpoints 
(Data: access Gtk_Plot_Data_Record) return Gint;
Return the number of points expected in the graph.

Set_Points

procedure Set_Points 
(Data: access Gtk_Plot_Data_Record;
X, Y, Dx, Dy: Gdouble_Array_Access);
Set some explicit points in the set. Note that the set must not be associated with a function, or the points will simply be ignored. All of the arrays must have the same length, the behavior is undefined otherwise.

Get_Points

procedure Get_Points 
(Data: access Gtk_Plot_Data_Record;
X: out Points_Array;
Y: out Points_Array;
Dx: out Points_Array;
Dy: out Points_Array);
Return the value of the points in the set. Null-length arrays are returned if the set is associated with a function, since no explicit point has been set.

Set_X

procedure Set_X 
(Data: access Gtk_Plot_Data_Record;
X: Gdouble_Array_Access);

Set_Y

procedure Set_Y 
(Data: access Gtk_Plot_Data_Record;
Y: Gdouble_Array_Access);

Set_Z

procedure Set_Z 
(Data: access Gtk_Plot_Data_Record;
Z: Gdouble_Array_Access);

Set_A

procedure Set_A 
(Data: access Gtk_Plot_Data_Record;
A: Gdouble_Array_Access);
Set the values for one specific coordinate in the set. The array must have a length of Get_Numpoints (if GtkAda was compiled with assertions enabled, an exception will be raised if the length are different). No copy of the array is made for efficiency reasons, thus modifying the array content later on will also modify the plot.

Set_A_Scale

procedure Set_A_Scale 
(Data: access Gtk_Plot_Data_Record;
A_Scale: Gdouble);

Get_A_Scale

function Get_A_Scale 
(Data: access Gtk_Plot_Data_Record) return Gdouble;
Changes the scale used for the "A" coordinate

Set_Dx

procedure Set_Dx 
(Data: access Gtk_Plot_Data_Record;
Dx: Gdouble_Array_Access);

Set_Dy

procedure Set_Dy 
(Data: access Gtk_Plot_Data_Record;
Dy: Gdouble_Array_Access);

Set_Dz

procedure Set_Dz 
(Data: access Gtk_Plot_Data_Record;
Dz: Gdouble_Array_Access);
Set the precision of the points in the set. A bigger symbol is displayed for the points whose (Dx, Dy, Dz) is bigger. The array must have a length of Get_Numpoints (if GtkAda was compiled with assertions enabled, an exception will be raised if the length are different). No copy of the array is made for efficiency reasons, thus modifying the array content later on will also modify the plot.

Set_Da

procedure Set_Da 
(Data: access Gtk_Plot_Data_Record;
Da: Gdouble_Array_Access);
Specifies the colors to use for the points. The color of the symbols is detemined using the gradient. the gradient has (min, max) values, and corresponding colors. The symbol's color is interpolated between these values using hue/saturation/value depending on the gradient_mask.

Get_X

function Get_X  
(Data: access Gtk_Plot_Data_Record) return Points_Array;

Get_Y

function Get_Y  
(Data: access Gtk_Plot_Data_Record) return Points_Array;

Get_Z

function Get_Z  
(Data: access Gtk_Plot_Data_Record) return Points_Array;

Get_A

function Get_A  
(Data: access Gtk_Plot_Data_Record) return Points_Array;

Get_Dx

function Get_Dx 
(Data: access Gtk_Plot_Data_Record) return Points_Array;

Get_Dy

function Get_Dy 
(Data: access Gtk_Plot_Data_Record) return Points_Array;

Get_Dz

function Get_Dz 
(Data: access Gtk_Plot_Data_Record) return Points_Array;

Get_Da

function Get_Da 
(Data: access Gtk_Plot_Data_Record) return Points_Array;
Return the coordinates for the points in the set. This is a direct access to the underlying C array, thus modifying this array's contents also modifies the graph. See the corresponding Set_* functions for a definition of the coordinates

Set_Labels

procedure Set_Labels 
(Data: access Gtk_Plot_Data_Record;
Labels: Gtkada.Types.Chars_Ptr_Array);
Set the labels associated which each point in the canvas. There must be at least Get_Numpoints elements in Labels, or the behavior is undefined

Get_Labels

function Get_Labels 
(Data: access Gtk_Plot_Data_Record) return Gtkada.Types.Chars_Ptr_Array;
Return the labels associated with the points in the data set. Note that this returns a *copy* of the actual array, and thus might be expensive to call.

Show_Labels

procedure Show_Labels 
(Data: access Gtk_Plot_Data_Record;
Show: Boolean);
Indicate whether the labels should be displayed next to each point in the data set. This has no effect if no labels were specified.

Labels_Set_Attributes

procedure Labels_Set_Attributes 
(Data: access Gtk_Plot_Data_Record;
Font: String;
Height: Gint;
Angle: Plot_Angle;
Foreground: Gdk.Color.Gdk_Color;
Background: Gdk.Color.Gdk_Color);
Set the properties of the labels

Set_Symbol

procedure Set_Symbol 
(Data: access Gtk_Plot_Data_Record;
The_Type: Plot_Symbol_Type;
Style: Plot_Symbol_Style;
Size: Gint;
Line_Width: Gfloat;
Color: Gdk.Color.Gdk_Color;
Border_Color: Gdk.Color.Gdk_Color);
Set the visual aspect of the symbols.

Get_Symbol

procedure Get_Symbol 
(Data: access Gtk_Plot_Data_Record;
The_Type: out Plot_Symbol_Type;
Style: out Plot_Symbol_Style;
Size: out Gint;
Line_Width: out Gint;
Color: out Gdk.Color.Gdk_Color;
Border_Color: out Gdk.Color.Gdk_Color);
Return the visual characteristics of the symbols.

Set_Connector

procedure Set_Connector 
(Data: access Gtk_Plot_Data_Record;
Connector: Plot_Connector);
Set the style of the connectors.

Get_Connector

function Get_Connector 
(Data: access Gtk_Plot_Data_Record) return Plot_Connector;
Return the connector style used for the data set.

Set_Line_Attributes

procedure Set_Line_Attributes 
(Data: access Gtk_Plot_Data_Record;
Style: Plot_Line_Style;
Cap_Style: Gdk.GC.Gdk_Cap_Style;
Join_Style: Gdk.GC.Gdk_Join_Style;
Width: Gfloat;
Color: Gdk.Color.Gdk_Color);
Set the line style used for the connectors.

Get_Line_Attributes

procedure Get_Line_Attributes 
(Data: access Gtk_Plot_Data_Record;
Style: out Plot_Line_Style;
Cap_Style: out Gdk.GC.Gdk_Cap_Style;
Join_Style: out Gdk.GC.Gdk_Join_Style;
Width: out Gfloat;
Color: out Gdk.Color.Gdk_Color);
Return the line attributes used for the connectors.

Set_X_Attributes

procedure Set_X_Attributes 
(Data: access Gtk_Plot_Data_Record;
Style: Plot_Line_Style;
Cap_Style: Gdk.GC.Gdk_Cap_Style;
Join_Style: Gdk.GC.Gdk_Join_Style;
Width: Gfloat;
Color: Gdk.Color.Gdk_Color);
Set the style of the lines used to connect the symbols to the X axis.

Set_Y_Attributes

procedure Set_Y_Attributes 
(Data: access Gtk_Plot_Data_Record;
Style: Plot_Line_Style;
Cap_Style: Gdk.GC.Gdk_Cap_Style;
Join_Style: Gdk.GC.Gdk_Join_Style;
Width: Gfloat;
Color: Gdk.Color.Gdk_Color);
Set the style of the lines used to connect the symbols to the Y axis.

Set_Z_Attributes

procedure Set_Z_Attributes 
(Data: access Gtk_Plot_Data_Record;
Style: Plot_Line_Style;
Cap_Style: Gdk.GC.Gdk_Cap_Style;
Join_Style: Gdk.GC.Gdk_Join_Style;
Width: Gfloat;
Color: Gdk.Color.Gdk_Color);
Set the style of the lines used to connect the symbols to the Z axis.

Show_Xerrbars

procedure Show_Xerrbars 
(Data: access Gtk_Plot_Data_Record);

Show_Yerrbars

procedure Show_Yerrbars 
(Data: access Gtk_Plot_Data_Record);

Show_Zerrbars

procedure Show_Zerrbars 
(Data: access Gtk_Plot_Data_Record);
Indicate that each symbol should be connected to the various axis

Hide_Xerrbars

procedure Hide_Xerrbars 
(Data: access Gtk_Plot_Data_Record);

Hide_Yerrbars

procedure Hide_Yerrbars 
(Data: access Gtk_Plot_Data_Record);

Hide_Zerrbars

procedure Hide_Zerrbars 
(Data: access Gtk_Plot_Data_Record);
Indicate the the symbol should not be connected to the axis.

Fill_Area

procedure Fill_Area 
(Data: access Gtk_Plot_Data_Record;
Fill: Boolean);
Indicate whether the area between two points should be filled or not.

Area_Is_Filled

function Area_Is_Filled 
(Data: access Gtk_Plot_Data_Record) return Boolean;
Indicate whether the area between two points is filled.

Set_Legend

procedure Set_Legend 
(Data: access Gtk_Plot_Data_Record;
Legend: String);
Set the string printed in the legend for that data set. Note that an entry can exist in the legend even if there is no name associated with the graph.

Show_Legend

procedure Show_Legend 
(Data: access Gtk_Plot_Data_Record);
An entry will be made in the plot's legend for that dataset.

Hide_Legend

procedure Hide_Legend 
(Data: access Gtk_Plot_Data_Record);
No entry will appear in the plot's legend for that dataset.

Set_Legend_Precision

procedure Set_Legend_Precision 
(Data: access Gtk_Plot_Data_Record;
Precision: Gint);
Number of digits to display when the legends is associated with values, as is the case for gradients.

Get_Legend_Precision

function Get_Legend_Precision 
(Data: access Gtk_Plot_Data_Record) return Gint;
Return the number of digits used for values in the legend

Move_Gradient

procedure Move_Gradient 
(Data: access Gtk_Plot_Data_Record;
X, Y: Gdouble);

Set_Gradient_Size

procedure Set_Gradient_Size 
(Data: access Gtk_Plot_Data_Record;
Size: Gint);

Reset_Gradient

procedure Reset_Gradient 
(Data: access Gtk_Plot_Data_Record);
Reset the gradient to its default value

Reset_Gradient_Colors

procedure Reset_Gradient_Colors 
(Data: access Gtk_Plot_Data_Record);
Reset the colors of the gradient to their default values

Gradient_Use_Custom_Colors

procedure Gradient_Use_Custom_Colors 
(Data: access Gtk_Plot_Data_Record;
Custom: Boolean);

Gradient_Custom_Colors

function Gradient_Custom_Colors 
(Data: access Gtk_Plot_Data_Record) return Boolean;
Whether the gradient uses custom colors

Set_Gradient_Mask

procedure Set_Gradient_Mask 
(Data: access Gtk_Plot_Data_Record;
Mask: Plot_Gradient);

Get_Gradient_Mask

function Get_Gradient_Mask 
(Data: access Gtk_Plot_Data_Record) return Plot_Gradient;
Set or Get how the component of the colors vary along the gradient.

Gradient_Set_Visible

procedure Gradient_Set_Visible 
(Data: access Gtk_Plot_Data_Record;
Visible: Boolean);

Gradient_Visible

function Gradient_Visible 
(Data: access Gtk_Plot_Data_Record) return Boolean;
Set or get whether the gradient is currently visible (this looks like a legend for the plot)

Gradient_Autoscale_A

procedure Gradient_Autoscale_A 
(Data: access Gtk_Plot_Data_Record);

Gradient_Autoscale_Da

procedure Gradient_Autoscale_Da 
(Data: access Gtk_Plot_Data_Record);

Gradient_Autoscale_Z

procedure Gradient_Autoscale_Z 
(Data: access Gtk_Plot_Data_Record);
???

Set_Gradient_Colors

procedure Set_Gradient_Colors 
(Data: access Gtk_Plot_Data_Record;
Min, Max: Gdk.Color.Gdk_Color);

Get_Gradient_Colors

procedure Get_Gradient_Colors 
(Data: access Gtk_Plot_Data_Record;
Min, Max: out Gdk.Color.Gdk_Color);
Set or Get the colors that define the gradient. The colors will vary from Min to Max along the components specified in Set_Gradient_Mask.

Set_Gradient_Nth_Color

procedure Set_Gradient_Nth_Color 
(Data: access Gtk_Plot_Data_Record;
Level: Guint;
Color: Gdk.Color.Gdk_Color);

Get_Gradient_Nth_Color

function Get_Gradient_Nth_Color 
(Data: access Gtk_Plot_Data_Record;
Level: Guint) return Gdk.Color.Gdk_Color;
Set or Get the nth color in the gradient

Set_Gradient_Outer_Colors

procedure Set_Gradient_Outer_Colors 
(Data: access Gtk_Plot_Data_Record;
Min, Max: Gdk.Color.Gdk_Color);

Get_Gradient_Outer_Colors

procedure Get_Gradient_Outer_Colors 
(Data: access Gtk_Plot_Data_Record;
Min, Max: out Gdk.Color.Gdk_Color);
Set the outer colors for the gradient

Set_Gradient

procedure Set_Gradient 
(Data: access Gtk_Plot_Data_Record;
Min, Max: Gdouble;
Nlevels: Gint;
Nsublevels: Gint);

Get_Gradient

procedure Get_Gradient 
(Data: access Gtk_Plot_Data_Record;
Min, Max: out Gdouble;
Nlevels: out Gint;
Nsublevels: out Gint);
Define the values associated with the minimal color and the maximal color. Any value in between will have a color computed in between. Nlevels is the number of ticks to display in the gradient.

Get_Gradient_Level

procedure Get_Gradient_Level 
(Data: access Gtk_Plot_Data_Record;
Level: Gdouble;
Color: out Gdk.Color.Gdk_Color);
Return the color associated with a specific level. The color depends on the parameters to Set_Gradient and Set_Gradient_Colors.

Gradient_Set_Style

procedure Gradient_Set_Style 
(Data: access Gtk_Plot_Data_Record;
Style: Plot_Label_Style;
Precision: Gint);
???

Gradient_Set_Scale

procedure Gradient_Set_Scale 
(Data: access Gtk_Plot_Data_Record;
Scale: Plot_Scale);
Set the scale of the gradient

Add_Marker

function Add_Marker 
(Data: access Gtk_Plot_Data_Record;
Point: Guint) return Gtk_Plot_Marker;
Add a new marker

Remove_Marker

procedure Remove_Marker 
(Data: access Gtk_Plot_Data_Record;
Marker: Gtk_Plot_Marker);
Remove a marker from the plot

Remove_Markers

procedure Remove_Markers 
(Data: access Gtk_Plot_Data_Record);
Remove all markers

Show_Markers

procedure Show_Markers 
(Data: access Gtk_Plot_Data_Record;
Show: Boolean);
Whether markers should be shown

Markers_Visible

function Markers_Visible 
(Data: access Gtk_Plot_Data_Record) return Boolean;
Whether markers are currently visible

Set_Link

procedure Set_Link 
(Data: access Gtk_Plot_Data_Record;
Link: System.Address);
Associate some user data with Data. It is the responsability of the user to do some convert conversion to System.Address.

Get_Link

function Get_Link 
(Data: access Gtk_Plot_Data_Record) return System.Address;
Return the user data associated with Data, or Null_Address if there is none.

Remove_Link

procedure Remove_Link 
(Data: access Gtk_Plot_Data_Record);
Remove the user data associated with Data.

To_Double_Array

function To_Double_Array is new Unchecked_Conversion 
(System.Address, No_Range_Gdouble_Array_Access);
<doc_ignore>