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

allow rotating how the color "fills" in the plot to be wide #8

Open
jdcols01 opened this issue Jan 15, 2025 · 2 comments
Open

allow rotating how the color "fills" in the plot to be wide #8

jdcols01 opened this issue Jan 15, 2025 · 2 comments

Comments

@jdcols01
Copy link

Hey Asjad! Could we make it so that there is an option to have the plot fill wide? In my older version it was just an option called "wide" and what it did was swap the X and Y axes so the waffle was essentially lying on its' side.

@asjadnaqvi
Copy link
Owner

I am not sure I fully understand the issue. Can you provide an example?

You can still partially make it vertically oriented (waffles from top to bottom) by using the rows() option. You can also stretch them horizontally by using the rowdots() and coldots() options.

But with a sample figure, I can provide a better answer.

@jdcols01
Copy link
Author

Sure! In the current iteration, if I resize the waffle using rowdots() and coldots() I get this plot (using a single percentage):
image
In this case, the shaded squares seemingly "fill" from the bottom left corner, fill up each row and then move to the row above. With the "wide" feature it would look like this:
image
In this case, the shaded squares "fill" from the bottom left corner still, but they fill each column before moving to the column to the right.

I believe the solution is simply to swap the Y and X axes whenever "wide" is selected, which would essentially rotate the plot 90 degrees.

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

No branches or pull requests

2 participants