Commit 6ac197f
committed
BUG: handle empty levels array in contour, closes #7486
This relates to line contours only, not to filled contours.
This handles the case where an empty array is provided as the
"levels" kwarg, or where for any reason there are no levels within
the data range. An example is the case of uniform z. The
levels array is then set to the minimum value of z so that
the plotting can proceed, and a warning is generated.1 parent eb6e422 commit 6ac197f
2 files changed
Lines changed: 36 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
| 1135 | + | |
| 1136 | + | |
1138 | 1137 | | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
| 1138 | + | |
1143 | 1139 | | |
1144 | 1140 | | |
1145 | 1141 | | |
| |||
1165 | 1161 | | |
1166 | 1162 | | |
1167 | 1163 | | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
1168 | 1175 | | |
1169 | 1176 | | |
1170 | 1177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
135 | 157 | | |
136 | 158 | | |
137 | 159 | | |
| |||
0 commit comments