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

Added seed for reproducing plots #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dlcole3
Copy link
Contributor

@dlcole3 dlcole3 commented Feb 4, 2025

There have been times when I have used PlasmoPlots.jl and wanted to be able to reproduce a plot that I created. However, because each call to layout_plot generates new positions for the nodes, it is not possible (or at least difficult) to reproduce a plot you had before. I have added to layout_plot a use_seed argument and a seed argument that allows the user to set a random seed before generating the initial node positions. This also meant adding Random.jl as a dependency.

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.

1 participant