[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New subcommand plot #252

Merged
merged 67 commits into from
Jan 4, 2021
Merged
Changes from 1 commit
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
002f058
added sub command plot
erzoe Dec 21, 2020
2480290
plot: use timestamps if existing
erzoe Dec 22, 2020
dba4a4c
plot: match names case insensitive by default
erzoe Dec 22, 2020
1537170
removed TODO flag
erzoe Dec 22, 2020
6439b3d
plot: insert None after --break-time
erzoe Dec 22, 2020
f0ae955
plot: xlabel
erzoe Dec 22, 2020
ea275ac
plot bugfix: don't crash without timestamp
erzoe Dec 22, 2020
38a3d44
plot: allow output of decode as input
erzoe Dec 22, 2020
7da091c
plot: options to suppress error messages
erzoe Dec 22, 2020
75d9f7c
plot --output-file
erzoe Dec 22, 2020
3b90d99
plot: comments
erzoe Dec 23, 2020
cff7b09
plot: format and separate subplots
erzoe Dec 23, 2020
e43963c
plot: description
erzoe Dec 23, 2020
2572dc3
plot: changed conditions for replotting of same data
erzoe Dec 23, 2020
700a5d3
plot --line-numbers
erzoe Dec 23, 2020
b685186
plot: warning for command line arguments which are not plotted
erzoe Dec 23, 2020
9424e73
plot: implemented --show-* arguments to display errors
erzoe Dec 23, 2020
457ae6e
plot: abbreviations -q and -s
erzoe Dec 23, 2020
1bd8523
plot: --show-invalid-syntax implies -l
erzoe Dec 23, 2020
527018d
plot readable --help
erzoe Dec 26, 2020
08a0b13
plot: refactoring plot function names
erzoe Dec 26, 2020
c95f8b0
plot: sort signals
erzoe Dec 27, 2020
3fa9ef9
plot test
erzoe Dec 27, 2020
82fe753
plot test: dropped python2 imports
erzoe Dec 27, 2020
e4fb7fc
plot test: executable + renamed class
erzoe Dec 28, 2020
b178f9b
plot test: -tA [WIP]
erzoe Dec 28, 2020
8029c5d
plot test bugfix
erzoe Dec 28, 2020
a53e4b0
plot test: -tz and -td
erzoe Dec 28, 2020
c64f3db
plot test subplots
erzoe Dec 28, 2020
ee0a310
plot test: wildcards, case insensitive
erzoe Dec 28, 2020
c35c21e
plot python3.6 compatibility
erzoe Dec 28, 2020
108fd07
plot test python3.6 compatibility
erzoe Dec 28, 2020
1e19fe3
plot test: choices, stem
erzoe Dec 29, 2020
60abbfa
plot test quick and dirty bugfix: reset mock
erzoe Dec 29, 2020
11a9572
plot test format
erzoe Dec 29, 2020
c6317a3
plot test: --case-sensitive
erzoe Dec 29, 2020
ac623c8
plot: print messages start with capital letter consistently
erzoe Dec 29, 2020
0c1e53b
plot test error messages
erzoe Dec 29, 2020
f775512
plot test --ignore-* error messages
erzoe Dec 29, 2020
b753431
plot test --show-* errors
erzoe Dec 29, 2020
5095aa3
plot test -s
erzoe Dec 29, 2020
dac7f2d
plot test: python 3.6 compatibility
erzoe Dec 29, 2020
70839d1
plot test --break-time
erzoe Dec 30, 2020
9a53a5a
plot test --break-time -1
erzoe Dec 30, 2020
29a42d8
plot test --output-file
erzoe Dec 30, 2020
6d7a975
plot test --no-decode-choices
erzoe Dec 30, 2020
e3a18c0
plot test: candump -l
erzoe Dec 31, 2020
9a56f32
plot test: no timestamps
erzoe Dec 31, 2020
96f9bbb
plot runtime optimization: one big regex
erzoe Dec 31, 2020
7cbd514
plot test: parse output of cantools decode
erzoe Jan 2, 2021
751ee99
plot test refactoring: xlabel constants
erzoe Jan 2, 2021
c7f5fa4
plot: format relative / absolute time
erzoe Jan 2, 2021
9918e27
plot: datetime format
erzoe Jan 3, 2021
02b0258
plot: added failing test for bug
erzoe Jan 3, 2021
043fdef
plot bugfix: matplotlib is not able to handle timedelta objects
erzoe Jan 3, 2021
514fe91
plot tests: update tests with relative time stamps
erzoe Jan 3, 2021
bc9364f
plot tests pass
erzoe Jan 4, 2021
868551c
plot: datetime format (show hours for microseconds)
erzoe Jan 4, 2021
b929151
plot: show start date for absolute times
erzoe Jan 4, 2021
f32d804
added plot subcommand to readme
erzoe Jan 4, 2021
e0d6482
added border around screenshots
erzoe Jan 4, 2021
76def3e
readme: minor changes
erzoe Jan 4, 2021
f495a13
removed unneeded code
erzoe Jan 4, 2021
815f3e6
plot test: ignore empty lines
erzoe Jan 4, 2021
ead6021
test plot: plot signal only once
erzoe Jan 4, 2021
e313e2b
test plot: plot signal again
erzoe Jan 4, 2021
0b87191
added matplotlib dependency to setup.py
erzoe Jan 4, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
plot readable --help
by default argparse ignores paragraph ends and lists,
making especially the lists pretty unreadable.
RawDescriptionHelpFormatter does not format description texts.
It does not look good but is a lot better readable.
  • Loading branch information
erzoe committed Dec 26, 2020
commit 527018dfb116ead0a928e7400c925ceb7aa9d2bc
4 changes: 3 additions & 1 deletion cantools/subparsers/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import binascii
import struct
import datetime
import argparse
from argparse_addons import Integer
from matplotlib import pyplot as plt

Expand Down Expand Up @@ -498,7 +499,8 @@ def add_subparser(subparsers):
'''
decode_parser = subparsers.add_parser(
'plot',
description=__doc__)
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
decode_parser.add_argument(
'-c', '--no-decode-choices',
action='store_true',
Expand Down