[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request cantools#260 from tjhowse/259_Make_matplotlib_opti…
Browse files Browse the repository at this point in the history
…onal

Make matplotlib optional
  • Loading branch information
eerimoq committed Jan 29, 2021
2 parents cd791f4 + 267314a commit bcfb1d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cantools/subparsers/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@
import datetime
import argparse
from argparse_addons import Integer
from matplotlib import pyplot as plt
try:
from matplotlib import pyplot as plt
except ImportError:
print("matplotlib package not installed. Required for producing plots.")

from .. import database

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def find_version():
'textparser>=0.21.1',
'diskcache',
'argparse_addons',
'matplotlib'
],
test_suite="tests",
entry_points = {
Expand Down

0 comments on commit bcfb1d8

Please sign in to comment.