Bridges-Python
3.4.4
Bridges(Python API)
|
Show series of data or functions using a line chart.
Line charts (https://en.wikipedia.org/wiki/Line_chart) are used to represent graphically functions such as f(x) = 3*x+1, or data such as temperature of a liquid on a stove as time passes. A individual function or a set of data is called "series".
A series is represented by two arrays xdata and ydata such that there is a point at (xdata[0], ydata[0]), an other at (xdata[1], ydata[1]), ... One can add a series by passing the two arrays using setDataSeries() or add the arrays individually using setXData() and setYData().
The different series have a label associated with them by default which can be disabled (see toggleSeriesLabel()).
The data is typically shown with axes that use a linear scale. However, the scale can be changed to logarithmic for each axis individually (see toggleLogarithmicX() and toggleLogarithmic()).
The LineChart can have a title (see getTitle() and setTitle()) and a subtitle (see setSubTitle() and getSubTitle()).
Public Member Functions | |
def | __init__ (self) |
def | get_data_structure_type (self) |
Get the data type. More... | |
bool | mouse_track (self) |
Is mounse tracking on? More... | |
def | mouse_track (self, bool val) |
Set mouse tracking flag. More... | |
def | data_label (self) |
Getter for data label. More... | |
def | data_label (self, val) |
Setter for data label flag. More... | |
def | logarithmicx (self) |
use logarithmic scale on X axis? More... | |
def | logarithmicx (self, val) |
Setter for logarithmic scale on X axis. More... | |
def | logarithmicy (self) |
use logarithmic scale on Y axis? More... | |
def | logarithmicy (self, val) |
Setter for logarithmic scale on Y axis. More... | |
def | title (self) |
Getter for plot title. More... | |
def | title (self, t) |
Setter for plot title. More... | |
def | sub_title (self) |
Getter for plot sub title. More... | |
def | sub_title (self, s) |
Setter for plot sub title. More... | |
def | y_label (self) |
Getter for plot Y label. More... | |
def | y_label (self, label) |
Setter for plot Y label. More... | |
def | x_label (self) |
Getter for plot X label. More... | |
def | x_label (self, label) |
Setter for plot X label. More... | |
def | set_data_series (self, series_name, x_data, y_data) |
Setter for plot data on X and Y axes. More... | |
def | set_x_data (self, series, x_data) |
Setter for plot data on X axis. More... | |
def | get_x_data (self, series) |
Getter for plot data on X. More... | |
def | set_y_data (self, series, y_data) |
Setter for plot data on Y axis. More... | |
def | get_y_data (self, series) |
Getter for plot data on Y. More... | |
def | convert (self, x_data) |
Convert input data into an array of floats. More... | |
bool | check (self) |
def | get_data_structure_representation (self) |
Get a JSON of the data structure representation. More... | |
Public Attributes | |
yaxis_data | |
xaxis_data | |
def bridges.line_chart.LineChart.__init__ | ( | self | ) |
bool bridges.line_chart.LineChart.check | ( | self | ) |
def bridges.line_chart.LineChart.convert | ( | self, | |
x_data | |||
) |
Convert input data into an array of floats.
x_data | input data in a list of values |
def bridges.line_chart.LineChart.data_label | ( | self | ) |
Getter for data label.
def bridges.line_chart.LineChart.data_label | ( | self, | |
val | |||
) |
Setter for data label flag.
val | data label flag |
def bridges.line_chart.LineChart.get_data_structure_representation | ( | self | ) |
Get a JSON of the data structure representation.
def bridges.line_chart.LineChart.get_data_structure_type | ( | self | ) |
Get the data type.
def bridges.line_chart.LineChart.get_x_data | ( | self, | |
series | |||
) |
Getter for plot data on X.
def bridges.line_chart.LineChart.get_y_data | ( | self, | |
series | |||
) |
Getter for plot data on Y.
def bridges.line_chart.LineChart.logarithmicx | ( | self | ) |
use logarithmic scale on X axis?
def bridges.line_chart.LineChart.logarithmicx | ( | self, | |
val | |||
) |
Setter for logarithmic scale on X axis.
val | logarithmic scale flag |
def bridges.line_chart.LineChart.logarithmicy | ( | self | ) |
use logarithmic scale on Y axis?
def bridges.line_chart.LineChart.logarithmicy | ( | self, | |
val | |||
) |
Setter for logarithmic scale on Y axis.
val | logarithmic scale flag |
bool bridges.line_chart.LineChart.mouse_track | ( | self | ) |
Is mounse tracking on?
def bridges.line_chart.LineChart.mouse_track | ( | self, | |
bool | val | ||
) |
Set mouse tracking flag.
val | mouse tracking flag |
def bridges.line_chart.LineChart.set_data_series | ( | self, | |
series_name, | |||
x_data, | |||
y_data | |||
) |
Setter for plot data on X and Y axes.
series_name | title for the series |
x_data | plot data for x axis |
y_data | plot data for y axis |
def bridges.line_chart.LineChart.set_x_data | ( | self, | |
series, | |||
x_data | |||
) |
Setter for plot data on X axis.
series | the name of the series |
x_data | plot data |
def bridges.line_chart.LineChart.set_y_data | ( | self, | |
series, | |||
y_data | |||
) |
Setter for plot data on Y axis.
series | series name |
y_data | plot data |
def bridges.line_chart.LineChart.sub_title | ( | self | ) |
Getter for plot sub title.
def bridges.line_chart.LineChart.sub_title | ( | self, | |
s | |||
) |
Setter for plot sub title.
s | plot sub title |
def bridges.line_chart.LineChart.title | ( | self | ) |
Getter for plot title.
def bridges.line_chart.LineChart.title | ( | self, | |
t | |||
) |
Setter for plot title.
t | plot title |
def bridges.line_chart.LineChart.x_label | ( | self | ) |
Getter for plot X label.
def bridges.line_chart.LineChart.x_label | ( | self, | |
label | |||
) |
Setter for plot X label.
label | plot label |
def bridges.line_chart.LineChart.y_label | ( | self | ) |
Getter for plot Y label.
def bridges.line_chart.LineChart.y_label | ( | self, | |
label | |||
) |
Setter for plot Y label.
label | plot label |
bridges.line_chart.LineChart.xaxis_data |
bridges.line_chart.LineChart.yaxis_data |