Skip to content

Commit

Permalink
Apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
frankier committed Aug 28, 2024
1 parent de08737 commit 91fec33
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/item_banks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ function draw_item_toggles!(ax, items, labeller)
end

function plot_item_responses(
item_bank;
ax=Axis(),
items = eachindex(item_bank),
zero_symmetric = false
item_bank;
ax = Axis(),
items = eachindex(item_bank),
zero_symmetric = false
)
lim_lo, lim_hi = _item_bank_domain(DomainType(item_bank),
item_bank,
Expand Down Expand Up @@ -119,7 +119,8 @@ function plot_item_bank(item_bank::AbstractItemBank;
ax = Axis(left_panel[1, 1])
rowsize!(fig.layout, 1, Auto(false))
colsize!(fig.layout, 1, Auto(false))
outcomes = plot_item_responses(item_bank, ax = ax, items = items, zero_symmetric = zero_symmetric)
outcomes = plot_item_responses(
item_bank, ax = ax, items = items, zero_symmetric = zero_symmetric)
if include_legend
left_panel[2, 1] = Legend(fig, ax, "Legend", framevisible = false)
end
Expand All @@ -142,7 +143,7 @@ function plot_item_bank(item_bank::AbstractItemBank;
display_all_obs = display_all_toggle.active
Label(display_all_panel[1, 1], "Show all items")
end
menu = Menu(right_panel[2, 1], options = items, width=100)
menu = Menu(right_panel[2, 1], options = items, width = 100)
item_show_obs_arr[i] = [@lift $(menu.selection) == item for item in items]
end
trim!(right_panel)
Expand Down

2 comments on commit 91fec33

@frankier
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/114034

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.4 -m "<description of version>" 91fec33c6f43874dd3f63a93302515e64d35f53b
git push origin v0.1.4

Please sign in to comment.