Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 95fd554

Browse filesBrowse files
committed
FIX: check if contour level in format dictionary, or return a default
1 parent df1af2f commit 95fd554
Copy full SHA for 95fd554

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/contour.py

Copy file name to clipboardExpand all lines: lib/matplotlib/contour.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def get_text(self, lev, fmt):
328328
return lev
329329
else:
330330
if isinstance(fmt, dict):
331-
return fmt[lev]
331+
return fmt.get(lev, '%1.3f')
332332
elif callable(fmt):
333333
return fmt(lev)
334334
else:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.