KUIML
Blue Cat's User Interface Programming Language
CURVE_GRAPH

Description

This widget displays a 2d graphical representation of the associated curve.

Inherited Attributes

See Attributes Common to Curve Viewers.

Specific Attributes

Name Value Type Default Value Description Comment V. Exp.

color

color

current text color

Color of the curve graph.


1.1

No

graph_style

graph style

curve

Type of graph to display the curve.


1.1

No

anti_alias

boolean

true

use anti aliasing to draw the curve (smooth drawing).

When anti alias is used, the pen_style attribute has no effect (only solid antialiased graph is implemented)

1.2.3

1.3.5

sample_rate

real number

1

number of points of the curve drawn for each pixels.

This value is used only for real number curves and when the x_positions_count attribute is not set.

1.2.3

No

Examples

  • Graph with default options and anti_alias deactivated:

<?xml version="1.0" encoding="utf-8" ?>
<SKIN language_version="1.0" background_color="#000000" v_margin="10" h_margin="10">
   <CURVE_GRAPH curve_id="dsp.output_curve3" width="150" height="80" anti_alias="false" color="#00ff00"/>
</SKIN>
  • Changing the x scale:

<?xml version="1.0" encoding="utf-8" ?>
<SKIN language_version="1.0" background_color="#000000" v_margin="10" h_margin="10">
   <CURVE_GRAPH curve_id="dsp.output_curve3" x_response_curve="exp3" width="150" height="80" anti_alias="false" color="#00ff00"/>
</SKIN>
  • We can change the style to 'bargraph':

<?xml version="1.0" encoding="utf-8" ?>
<SKIN language_version="1.0" background_color="#000000" v_margin="10" h_margin="10">
   <CURVE_GRAPH curve_id="dsp.output_curve3" x_response_curve="exp3" graph_style="bargraph" width="150"
      height="80" anti_alias="false" color="#00ff00" />
</SKIN>
  • And change the number of positions on the x scale:

<?xml version="1.0" encoding="utf-8" ?>
<SKIN language_version="1.0" background_color="#000000" v_margin="10" h_margin="10">
   <CURVE_GRAPH curve_id="dsp.output_curve3" x_response_curve="exp3" graph_style="bargraph" width="150" height="80" 
   anti_alias="false" color="#00ff00" x_positions_count="21"/>
</SKIN>