We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
This is a super minor issue in the documentation. I used the following code from the page to add a scale bar to a micrograph:
ax.plot([N // 7, N // 7], [N / 2 + scale / 2, N / 2 - scale / 2], color="white")
I used a large linewidth and noticed the scalebar was too long! Pyplot's default behavior is to slightly extend the line around the two endpoints by the linewidth ("projecting" capstyle). I fixed the issue by specifying "butt" capstyle:
ax.plot([N // 7, N // 7], [N / 2 + scale / 2, N / 2 - scale / 2], color="white", solid_capstyle="butt")
Certainly in the 2D class example here the difference might only be one pixel, but this might keep someone else from having the same issue!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is a super minor issue in the documentation. I used the following code from the page to add a scale bar to a micrograph:
ax.plot([N // 7, N // 7], [N / 2 + scale / 2, N / 2 - scale / 2], color="white")
I used a large linewidth and noticed the scalebar was too long! Pyplot's default behavior is to slightly extend the line around the two endpoints by the linewidth ("projecting" capstyle). I fixed the issue by specifying "butt" capstyle:
ax.plot([N // 7, N // 7], [N / 2 + scale / 2, N / 2 - scale / 2], color="white", solid_capstyle="butt")
Certainly in the 2D class example here the difference might only be one pixel, but this might keep someone else from having the same issue!
The text was updated successfully, but these errors were encountered: