Skip to content

Commit ca3bb0c

Browse files
2timesjayfacebook-github-bot
authored andcommitted
update axis "type" (indicating log-scale) in interact_contour
Summary: Interact contour plots certain param pairs incorrectly, choosing bad axis ranges. This fixes the problem. Reviewed By: Balandat Differential Revision: D21539918 fbshipit-source-id: b086a3469c75c21801471b3ab1069fb90abe4f3d
1 parent 725c24b commit ca3bb0c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ax/plot/contour.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,8 @@ def interact_contour(
517517
"xaxis2.title": short_name(xvar),
518518
"xaxis.range": axis_range(grid_dict[xvar], is_log_dict[xvar]),
519519
"xaxis2.range": axis_range(grid_dict[xvar], is_log_dict[xvar]),
520+
"xaxis.type": "log" if is_log_dict[xvar] else "linear",
521+
"xaxis2.type": "log" if is_log_dict[xvar] else "linear",
520522
},
521523
]
522524
xbuttons.append({"args": xbutton_args, "label": xvar, "method": "update"})
@@ -539,6 +541,8 @@ def interact_contour(
539541
"yaxis2.range": axis_range(
540542
grid_dict[y_param], is_log_dict[y_param]
541543
),
544+
"yaxis.type": "log" if is_log_dict[y_param] else "linear",
545+
"yaxis2.type": "log" if is_log_dict[y_param] else "linear",
542546
},
543547
],
544548
"label": param_names[y_idx],

0 commit comments

Comments
 (0)