casys.visualization.events
Plot events related classes.
Functions
|
Shallow copy operation on arbitrary Python objects. |
Classes
|
Special type indicating an unconstrained type. |
|
Representation of an event that can be added to CasysPlot data. |
|
Temporal range Representation of an event that can be added to CasysPlot data. |
|
Representation of an event that can be added to CasysPlot data. |
- class casys.visualization.events.CasysEvent(start=None, label=<factory>, params=<factory>)
Bases:
ABC
Representation of an event that can be added to CasysPlot data.
- Parameters:
start (
float
|DateHandler
|None
) – x position of the start of the event (as a float or ong_dh.DateHandler)end – x position of the end of the event (as a float or ong_dh.DateHandler)
label (
str
|dict
[str
,Any
] |None
) – Label name and properties of the event (optional) Underlying function: https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.text.htmlAdditional parameters to pass to the matplotlib functions
Axes.axvline for simple events https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.axvline.html
Axes.axvspan for range events https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.axvspan.html
- draw_event(ax)
Draw the event on the provided axe.
- abstract is_in(ax, params)
Check if the event is in the graph axe limits.
-
start:
float
|DateHandler
|None
= None
- class casys.visualization.events.RangeEvent(start=None, label=<factory>, params=<factory>, end=None)
Bases:
CasysEvent
Temporal range Representation of an event that can be added to CasysPlot data.
- Parameters:
start (
float
|DateHandler
|None
) – x position of the start of the event (as a float or ong_dh.DateHandler)end (
float
|DateHandler
|None
) – x position of the end of the event (as a float or ong_dh.DateHandler)label (
str
|dict
[str
,Any
] |None
) – Label name and properties of the event (optional) Underlying function: https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.text.htmlAdditional parameters to pass to the matplotlib functions
Axes.axvline for simple events https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.axvline.html
Axes.axvspan for range events https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.axvspan.html
- draw_event(ax)
Draw the event on the provided axe.
-
end:
float
|DateHandler
|None
= None
- is_in(ax, params)
Check if the event is in the graph axe limits.
-
start:
float
|DateHandler
|None
= None
- class casys.visualization.events.SimpleEvent(start=None, label=<factory>, params=<factory>)
Bases:
CasysEvent
Representation of an event that can be added to CasysPlot data.
- Parameters:
start (
float
|DateHandler
|None
) – x position of the start of the event (as a float or ong_dh.DateHandler)end – x position of the end of the event (as a float or ong_dh.DateHandler)
label (
str
|dict
[str
,Any
] |None
) – Label name and properties of the event (optional) Underlying function: https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.text.htmlAdditional parameters to pass to the matplotlib functions
Axes.axvline for simple events https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.axvline.html
Axes.axvspan for range events https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.axvspan.html
- draw_event(ax)
Draw the event on the provided axe.
- is_in(ax, params)
Check if the event is in the graph axe limits.
-
start:
float
|DateHandler
|None
= None