-
Notifications
You must be signed in to change notification settings - Fork 96
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
Height cannot be exactly configured #26
Comments
Okay, the hacky fix mentioned above does not work in all cases; sometimes the |
@neighthan thx for your involvement in this! It might take some time to get to it, but I will add a fix asap! |
@kroitor any news on a fix? |
It looks like the last action and comment on #29 is from July. Would be great to get that fixed. Thanks! |
@hartwork it's been a bit of a delay due to my other work, but i'll do my best to resolve this in the near future. |
Though there is a height parameter for the plotting function, this only roughly controls the height. It would be nicer to be able to exactly set the height. This is even more of an issue because the height isn't always off of the requested height by the same value, so it's not trivial to correct for this. Here are a couple of examples:
Requested height: 9; actual height: 10
Requested height: 8; actual height: 10
The issue is with the
floor
andceil
operators that are used in computing the actual number of rows.Here's a quick fix for this in the Python version:
I just keep decreasing the height value used by 1 until the actual height matches the target height. This has always given me an actual height that's exactly the target height in the quick tests I've done, but there's probably a better way to do this. I also considered decreasing
max2
or increasingmin2
by 1 directly, but then we'd also need to set a new value forratio
, at least to keep the current behavior, and I'm not sure what the appropriate way to do that would be.The text was updated successfully, but these errors were encountered: