PlotLegend¶
-
class
visualife.core.PlotLegend¶ Bases:
objectStores series data to draw a plot legend
Attributes Summary
seriesReturns series list Methods Summary
add_serie(dataset)Adds serie to the list of series draw(viewport, screen_x, screen_y, width, …)Draws a legend on a plot Attributes Documentation
-
series¶ Returns series list
Methods Documentation
-
add_serie(dataset)¶ Adds serie to the list of series
Parameters: dataset ( DataSet.__init__()) – DataSet object for the added serie
-
draw(viewport, screen_x, screen_y, width, height, font_size)¶ Draws a legend on a plot
Parameters: - screen_x (
float) – x coordinate of legend - screen_y (
float) – y coordinate of legend - width (
float) – legend width - height (
float) – legend height - position (
string) – legend position as “RU”(rigth upper)
- screen_x (
-