You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When taking a screenshot with the soon to be added fit_to_data functionality #6730 it was noticed that when the canvas size changes, the size of the scale bar does not change. This causes the scale bar to be potentially very small compared to the data.
馃挕 Steps to Reproduce
import napari
from skimage.data import cells3d
import matplotlib.pyplot as plt
viewer = napari.Viewer()
data = cells3d()
viewer.add_image(data, channel_axis=1, contrast_limits=[[938,24180], [2382, 49151]])
viewer.scale_bar.visible = True
img=viewer.screenshot(canvas_only=True, fit_to_data=True, scale=10)
plt.imshow(img)
plt.show()
The result is an image like this:
馃挕 Expected Behavior
A screenshot image is generated with a scale bar that is visible.
馃寧 Environment
na
馃挕 Additional Context
No response
The text was updated successfully, but these errors were encountered:
馃悰 Bug Report
When taking a screenshot with the soon to be added
fit_to_data
functionality #6730 it was noticed that when the canvas size changes, the size of the scale bar does not change. This causes the scale bar to be potentially very small compared to the data.馃挕 Steps to Reproduce
The result is an image like this:
馃挕 Expected Behavior
A screenshot image is generated with a scale bar that is visible.
馃寧 Environment
na
馃挕 Additional Context
No response
The text was updated successfully, but these errors were encountered: