Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
This package provides a simple way to visualize patterns in timeseries data mapping 24 hours onto a polar plot
clock_plot provides a simple way to visualize timeseries data mapping 24 hours onto the 360 degrees of a polar plot. For usage, please see the examples.ipynb Jupyter notebook
To install this package run:
pip install clock_plot
Time features are automatically generated for your timeseries. These features include:
Feature | Type | Description | Example Values |
---|---|---|---|
year | int | Calendar year | 2022 |
month | str | Calendar month | "January" |
year_month | int | Calendar year and month in the format YYYYMM | 202201 |
day | int | Day of calendar year | 25 |
date | str | Expressed in the format YYYY-MM-DD | "2022-01-25" |
week | int | ISO week of the calendar year | 5 |
dayofweek | str | Short version of day of week | "Tue" |
weekend | str | Either "weekday" or "weekend", where "weekend" is Saturday and Sunday | "weekend" (Sat/Sun) "weekday" (Mon-Fri) |
hour | int | Hour of the day in 24 clock | 14 |
minute | int | Minute of the hour | 42 |
degrees | int | Angle around 24 hour clock-face measured in degrees | 341 |
season | str | Season of the year defined based on month, with Winter being Dec-Feb | "Winter" (Dec-Feb) "Spring" (Mar-May) "Summer" (Jun-Aug) "Autumn" (Sep-Nov) |
These can be used to filter your data and format your plot.
For example you could filter for a particular year, plot seasons with different colors and weekday vs weekend days with different line dashes. Examples of this are given in examples.ipynb
Radar/polar plots (of which clock plots are a special case) are much maligned by visualisation experts, and for good reason. Whilst some of the common limitations are overcome with clock plots, two key ones remain:
Clock plots are therefore most suited for cases where understanding absolute values is less important and one or more of the following is true:
Note that they are particularly poorly suited to:
If you're not sure which is best for a particular use case, you can quickly toggle between a clock plot and a linear plot by adding mode="line"
to your clock_plot call.
FAQs
This package provides a simple way to visualize patterns in timeseries data mapping 24 hours onto a polar plot
We found that clock-plot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.