Repository navigation
0.1.1b2: one type scale, measured layout, truecolor PDF rasters - #1
Merged
Merged
Conversation
- Fonts are configured in one module, cnplot_style: family, embedding types, FS_* sizes, and apply_style(), which writes them into rcParams on import. - Layout is measured instead of assumed: the CN key wraps onto further rows, strip legends stack by rendered height, the heatmap colorbar grows until its tick labels clear, and the heatmap title is anchored above the mesh. - Genome-axis labels are placed to clear each other: crowded chromosome names stand upright and are nudged apart or go on a second row, Mb labels too close to the previous one are left blank, and the gap above a profile is sized in inches from the labels it holds. - Text is measured without an explicit renderer, so the figures draw on the pdf and svg backends as well as Agg. - The PDF backend no longer stores rasterized layers as /Indexed palette images; the hook is locked and warns once if matplotlib stops routing images through it. Works around matplotlib#27893. - FigureSaver.close() can be called twice. - plot_strip_legend loses its entry_h argument. - Version 0.1.1b1.
…ls; 0.1.1b2 - Chromosome names keep the requested rotation (60 degrees by default) instead of standing upright when crowded; crowded names are still nudged apart, or split onto a second row on a narrow axes. chrname_tiers takes a rotation argument and genome_label_room sizes the gap for names at that angle. - Clone labels beside the integer-CN profile, the heatmap row-block labels and the CN key's CNA title are set in the regular weight. - Gallery images redrawn. - Version 0.1.1b2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cnplot_style(family, embedding types,FS_*sizes,apply_style()), applied to rcParams on import./Indexedpalette images, working around matplotlib#27893.FigureSaver.close()is idempotent;plot_strip_legendlosesentry_h.Note
Importing cnplot now sets global font sizes, so figures drawn by downstream code without explicit sizes change too.
See CHANGELOG.md for details.