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

sample: Add "int" option to sampling domain #89

Closed
wants to merge 1 commit into from

Conversation

johannes-wolf
Copy link
Member

@johannes-wolf johannes-wolf commented Nov 21, 2024

Allows passing "INT" to domain: of sample-fn and all plot commands that forward to this function.

This make sampling at integer values easier.

@johannes-wolf johannes-wolf added the 🎁 feature New feature or request label Nov 21, 2024
@johannes-wolf johannes-wolf force-pushed the sample-int branch 2 times, most recently from 981b84d to 5492cc3 Compare November 21, 2024 01:32
@jamesrswift
Copy link
Collaborator

I think in principle this works, but it doesn't "feel" like any of the other cetz or cetz-plot API. Would it be preferable to instead abstract this away into a separate construction (perhaps "sampler") which is passed as an object to plot.add? similarly as how we are considering for axis definition

@johannes-wolf
Copy link
Member Author

I will add this feature (+ the change to a callback sampler:) to the Refactoring II PR.

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

Successfully merging this pull request may close these issues.

2 participants