All Projects → jerry-git → logplot

jerry-git / logplot

Licence: MIT license
Awesome interactive plots from custom logs

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to logplot

QM-Simulator-1D
Interactive simulation of a quantum particle in 1D.
Stars: ✭ 69 (+176%)
Mutual labels:  matplotlib
Crawler4Caida
一个致力于用Python提高部门工作自动化水平的程序库!(包括数据采集、办公自动化、辅助研究、图网络、复杂系统、3D可视化等)
Stars: ✭ 82 (+228%)
Mutual labels:  matplotlib
Algorithmic-Trading
Algorithmic trading using machine learning.
Stars: ✭ 102 (+308%)
Mutual labels:  matplotlib
tf-matplotlib
Seamlessly integrate matplotlib figures as tensorflow summaries.
Stars: ✭ 119 (+376%)
Mutual labels:  matplotlib
psyplot
Python package for interactive data visualization
Stars: ✭ 64 (+156%)
Mutual labels:  matplotlib
Data-Science-Articles
A collection of my blogs on Data Science and Machine learning.
Stars: ✭ 66 (+164%)
Mutual labels:  matplotlib
topic modelling financial news
Topic modelling on financial news with Natural Language Processing
Stars: ✭ 51 (+104%)
Mutual labels:  matplotlib
heatmaps
Better heatmaps in Python
Stars: ✭ 117 (+368%)
Mutual labels:  matplotlib
qmplot
A Python package for creating high-quality manhattan and Q-Q plots from GWAS results.
Stars: ✭ 25 (+0%)
Mutual labels:  matplotlib
matplotx
📊 More styles and useful extensions for Matplotlib
Stars: ✭ 507 (+1928%)
Mutual labels:  matplotlib
FacebookChatStatistics
Statistics of any Facebook Messenger conversation
Stars: ✭ 49 (+96%)
Mutual labels:  matplotlib
Machine-Learning-with-Iris-Dataset
Data Visualization and Machine Learning with Iris Dataset.
Stars: ✭ 65 (+160%)
Mutual labels:  matplotlib
vector-field-visualizer
A python back-end web app to visualize a two dimensional vector field, and to calculate divergence and curl at any point.
Stars: ✭ 23 (-8%)
Mutual labels:  matplotlib
mplcairo
A (new) cairo backend for Matplotlib.
Stars: ✭ 87 (+248%)
Mutual labels:  matplotlib
matplotlib-4-abaqus
allow abaqus(v6.14-1) to use matplotlib in its build-in python scripts environment.
Stars: ✭ 32 (+28%)
Mutual labels:  matplotlib
data-viz-utils
Functions for easily making publication-quality figures with matplotlib.
Stars: ✭ 16 (-36%)
Mutual labels:  matplotlib
Github-Stars-Predictor
It's a github repo star predictor that tries to predict the stars of any github repository having greater than 100 stars.
Stars: ✭ 34 (+36%)
Mutual labels:  matplotlib
anesthetic
Nested Sampling post-processing and plotting
Stars: ✭ 34 (+36%)
Mutual labels:  matplotlib
fer
Facial Expression Recognition
Stars: ✭ 32 (+28%)
Mutual labels:  matplotlib
The-Supervised-Learning-Workshop
An Interactive Approach to Understanding Supervised Learning Algorithms
Stars: ✭ 24 (-4%)
Mutual labels:  matplotlib

LogPlot

Build Status PyPI version PyPI pyversions codecov license PRs

example gif

Installation

$ pip3 install logplot

Usage

Configuration

In order to plot interesting graphs from custom logs, logplot needs to know what log entries are considered interesting. This can be done by defining entries and special_entries sections in the config file. The main purpose of entries is to plot trends, i.e. connected points. This is useful e.g. for plotting state machine states. special_entries is for plotting single, unconnected points, such as errors.

Each entry in entries and special_entries should have the following:

  • identifier: string to be searched from log entries
  • value: y-axis value in the plot

Ideally, one entry in entries should have initial_state: true. This is used for separating plotted series from each other.

You can define specific marker style for each entry in special_entries, refer to matplotlib docs for available options.

In addition to the entries and special-entries sections, user can override default settings (see src/logplot/default_conf.yaml) in general section. For example, it's the place where you can define the command to be used for opening the log in your favorite editor.

See doc/example/user_conf.yaml and corresponding log file (doc/example/log.txt) for full example.

Plotting logs

$ logplot path/to/log -c path/to/conf/file

For example, this:

$ logplot doc/examples/log.txt -c doc/examples/user_conf.yaml

yields this:

example plot

Clicking a data point in the plot opens the log file in the correct line number in the editor defined in the configuration file. If the log_open_cmd is not configured, the log will be opened with a default program defined by the OS. Note that log_open_cmd has to configured to be able to open the log in the correct line number.

logplot will automatically identify different trends in the plotted entries. You can toggle the visibility of these trends by clicking items in the legend.

Here's an example of a bit bigger log which contains 100k entries, 13 different states, and 15 different trends.

$ logplot doc/examples/log_huge.txt -c doc/examples/user_conf_huge.yaml

example plot huge

And the same with three most occuring trends filtered out.

example plot huge filtered

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].