Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing vertical red line on reset #110

Merged
merged 1 commit into from
Oct 14, 2022
Merged

Conversation

hbsmith
Copy link
Contributor

@hbsmith hbsmith commented Sep 13, 2022

fixes #107

@fbanning fbanning self-requested a review October 13, 2022 10:17
Copy link
Member

@fbanning fbanning left a comment

Choose a reason for hiding this comment

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

Hi @hbsmith,

thanks for taking on this PR. The changes look good to me. Happy to see that you were able to navigate the codebase of our interactive app recipe. :)

I suppose you already tested it on your machine and everything worked as expected. Would it be possible to post a quick screenshot of the result (just pick one of the example models from the docs for it)? That would be a nice way to document the changes.

@@ -98,6 +98,11 @@ function init_abm_data_plots!(fig, p, adata, mdata, alabels, mlabels, plotkwargs
ylims!(ax, Makie.MakieLayout.yautolimits(ax))
end
end
on(resetclick) do clicks
for ax in axs
vlines!(ax, [p.s.val], color = "#c41818")
Copy link
Member

Choose a reason for hiding this comment

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

#c41818

Was this the colour we've used in the earlier version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah--I just found the last version of the code that had the colored line, and basically tried to modify it as little as possible to make it work after your refactor.

@hbsmith
Copy link
Contributor Author

hbsmith commented Oct 14, 2022

Sure, below are pictures before and after the code change.

Before: Screen Shot 2022-10-14 at 14 30 00

After:
Screen Shot 2022-10-14 at 14 41 27

@Datseris Datseris merged commit d160962 into JuliaDynamics:main Oct 14, 2022
@Datseris
Copy link
Member

Thanks, we appreciate this! And thanks @fbanning for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No vertical red line appearing when resetting model during abmexploration
3 participants