Fixed issue with showing empty plot
Showing 1 of 2 files from the diff.
sympy/plotting/plot.py
changed.
Other files ignored by Codecov
sympy/plotting/tests/test_plot.py
has changed.
@@ -1159,7 +1159,7 @@
Loading
1159 | 1159 | xlim = (float(i) for i in xlim) |
|
1160 | 1160 | ax.set_xlim(xlim) |
|
1161 | 1161 | else: |
|
1162 | - | if all(isinstance(s, LineOver1DRangeSeries) for s in parent._series): |
|
1162 | + | if parent._series and all(isinstance(s, LineOver1DRangeSeries) for s in parent._series): |
|
1163 | 1163 | starts = [s.start for s in parent._series] |
|
1164 | 1164 | ends = [s.end for s in parent._series] |
|
1165 | 1165 | ax.set_xlim(min(starts), max(ends)) |
@@ -2122,6 +2122,8 @@
Loading
2122 | 2122 | >>> check_arguments([x, x**2], 1, 1) |
|
2123 | 2123 | [(x, (x, -10, 10)), (x**2, (x, -10, 10))] |
|
2124 | 2124 | """ |
|
2125 | + | if not args: |
|
2126 | + | return [] |
|
2125 | 2127 | if expr_len > 1 and isinstance(args[0], Expr): |
|
2126 | 2128 | # Multiple expressions same range. |
|
2127 | 2129 | # The arguments are tuples when the expression length is |
Files | Coverage |
---|---|
sympy | 74.670% |
Project Totals (631 files) | 74.670% |
35694.24
TRAVIS_PYTHON_VERSION=3.6 TRAVIS_OS_NAME=linux
35694.21
TRAVIS_PYTHON_VERSION=3.6 TRAVIS_OS_NAME=linux
35694.23
TRAVIS_PYTHON_VERSION=3.6 TRAVIS_OS_NAME=linux
35694.22
TRAVIS_PYTHON_VERSION=3.6 TRAVIS_OS_NAME=linux
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.