![]() |
Bridges-Python 3.5.1
Bridges(Python API)
|
Show series of data or functions using a line chart. More...
Public Member Functions | |
| __init__ (self) | |
| get_data_structure_type (self) | |
| Get the data type. | |
| set_data_series (self, series_name, x_data, y_data) | |
| Setter for plot data on X and Y axes. | |
| set_linewidth (self, series_name, linewidth) | |
| set_x_data (self, series, x_data) | |
| Setter for plot data on X axis. | |
| get_x_data (self, series) | |
| Getter for plot data on X. | |
| set_y_data (self, series, y_data) | |
| Setter for plot data on Y axis. | |
| get_y_data (self, series) | |
| Getter for plot data on Y. | |
| convert (self, x_data) | |
| Convert input data into an array of floats. | |
| bool | check (self) |
| get_data_structure_representation (self) | |
| Get a JSON of the data structure representation. | |
Public Attributes | |
| yaxis_data | |
| xaxis_data | |
Protected Attributes | |
| _plot_title | |
| _plot_subtitle | |
| _y_label | |
| _x_label | |
| _linewidth | |
| _mouse_track | |
| _data_label | |
| _logarithmicx | |
| _logarithmicy | |
Properties | |
| mouse_track = property | |
| Is mounse tracking on? | |
| data_label = property | |
| Getter for data label. | |
| logarithmicx = property | |
| use logarithmic scale on X axis? | |
| logarithmicy = property | |
| use logarithmic scale on Y axis? | |
| title = property | |
| Getter for plot title. | |
| sub_title = property | |
| Getter for plot sub title. | |
| y_label = property | |
| Getter for plot Y label. | |
| x_label = property | |
| Getter for plot X label. | |
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()).
| bridges.line_chart.LineChart.__init__ | ( | self | ) |
| bool bridges.line_chart.LineChart.check | ( | self | ) |
| 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 |
| bridges.line_chart.LineChart.get_data_structure_representation | ( | self | ) |
Get a JSON of the data structure representation.
| bridges.line_chart.LineChart.get_data_structure_type | ( | self | ) |
Get the data type.
| bridges.line_chart.LineChart.get_x_data | ( | self, | |
| series | |||
| ) |
Getter for plot data on X.
| bridges.line_chart.LineChart.get_y_data | ( | self, | |
| series | |||
| ) |
Getter for plot data on Y.
| 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 |
| bridges.line_chart.LineChart.set_linewidth | ( | self, | |
| series_name, | |||
| linewidth | |||
| ) |
| 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 |
| 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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| bridges.line_chart.LineChart.xaxis_data |
| bridges.line_chart.LineChart.yaxis_data |
|
static |
Getter for data label.
|
static |
use logarithmic scale on X axis?
|
static |
use logarithmic scale on Y axis?
|
static |
Is mounse tracking on?
|
static |
Getter for plot sub title.
|
static |
Getter for plot title.
|
static |
Getter for plot X label.
|
static |
Getter for plot Y label.