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

Fix the width of riemann rectangles #1762

Merged
merged 1 commit into from
Mar 17, 2022
Merged

Fix the width of riemann rectangles #1762

merged 1 commit into from
Mar 17, 2022

Conversation

widcardw
Copy link
Contributor

Motivation

Fix the width of riemann rectangles

Proposed changes

Change the width from x1 - x0 to width=self.x_axis.n2p(x1)[0] - self.x_axis.n2p(x0)[0].

The former means the global coord width while the latter means custom coord width.

Test

image

@TonyCrane TonyCrane requested a review from 3b1b March 17, 2022 06:25
@3b1b 3b1b merged commit bb3bd41 into 3b1b:master Mar 17, 2022
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.

3 participants