![]() |
Bridges-Python-3.0.2
3.0.2
Bridges(PythonAPI)
|
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... | |
| def | mosue_track (self) |
| Is mounse tracking on? More... | |
| def | mosue_track |
| 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) |
| def | check (self) |
| def | get_data_structure_representation (self) |
Public Attributes | |
| yaxis_data | |
| xaxis_data | |
| def bridges.line_chart.LineChart.__init__ | ( | self | ) |
| def bridges.line_chart.LineChart.check | ( | self, | |
| bool | |||
| ) |
| def bridges.line_chart.LineChart.convert | ( | self, | |
| x_data | |||
| ) |
| 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 | ) |
| 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 |
| def bridges.line_chart.LineChart.mosue_track | ( | self, | |
| bool | |||
| ) |
Is mounse tracking on?
| def bridges.line_chart.LineChart.mosue_track | ( | self, | |
| 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.
| 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.
| 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 |
1.8.13