-
Notifications
You must be signed in to change notification settings - Fork 22
Saving figure has no ticks or axis labels #231
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
Comments
Apologies, I realised, whilst adding a screenshot that they are present, but weren't visible against the light mode of my image viewer! |
Would you mind posting a screenshot? I thought I'd fixed this. |
Here we go. Ultimately it stemmed from napari being in dark mode, but my image viewer being in light mode, with the plot having a transparent background. My fix has been to force a light mode stylesheet for napari-matplotlib. Here napari matplotlib is at the top, correctly detecting style as intended (from reading the code). I don't believe there's any real fix for this, unless a separate savefig was added to |
Ah right, yes. We put in a way to have custom stylesheet treated at highest precedence, if that's any use (perhaps you already found this). |
I'm building a napari plugin that computes some derived data and plots that in a pane (so we're not directly hooking the plot up to the layer content). I am trying to use the
BaseNapariMPLWidget
to have a single plot with toolbar, rather than just docking the figure canvas. I also want to be able to save the figure, however the none of the the ticks, ticklabels, or axis labels appear in a png of the figure.Minimal example
Happy to submit a PR with a bit of guidance as where to start. Is this in the choice of canvas?
The text was updated successfully, but these errors were encountered: