Skip to content

Commit

Permalink
Add the option to display the phase of a complex array
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-j-bourhis authored and cmeyer committed Oct 30, 2023
1 parent e824c22 commit 9164405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nion/swift/Inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@ def make_complex_display_type_chooser(document_controller: DocumentController.Do
ui = document_controller.ui
display_type_row = ui.create_row_widget()
display_type_options = [(_("Log Absolute"), "log-absolute")] if include_log_abs else list()
display_type_options.extend([(_("Absolute"), "absolute"), (_("Real"), "real"), (_("Imaginary"), "imaginary")])
display_type_options.extend([(_("Absolute"), "absolute"), (_("Phase"), "phase"), (_("Real"), "real"), (_("Imaginary"), "imaginary")])
display_type_reverse_map = {p[1]: i for i, p in enumerate(display_type_options)}
display_type_chooser = ui.create_combo_box_widget(items=display_type_options, item_getter=operator.itemgetter(0))

Expand Down

0 comments on commit 9164405

Please sign in to comment.