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
Currently tap legends are split to lines on spaces (and double spaces are converted to single and don't split). This causes some ugliness, especially with modifier functions where by default you have Ctl+ C forms. This renders OK on a tap legend due to splitting, but render as is in hold/shifted fields and it looks bad.
If we instead remove the space from modifier functions and split on word boundaries \b, we will have better visuals overall. This way, a string like Ctl+Shft+C can still be split like Ctl+Shift+/C, while still having no gaps in hold/shifted fields.
The idea is to still split on explicit spaces, then within each item, use textwrap.TextWrapper(width=something)._wrap_chunks(re.split(r'\b', text)) to get a further split to chunks. something can be draw_config.shrink_wide_legends since that's nominally the acceptable legend width inside a key. However this means that a value of 0 should disable the splitting along with the shrinking.
The text was updated successfully, but these errors were encountered:
Currently tap legends are split to lines on spaces (and double spaces are converted to single and don't split). This causes some ugliness, especially with modifier functions where by default you have
Ctl+ C
forms. This renders OK on a tap legend due to splitting, but render as is inhold/shifted
fields and it looks bad.If we instead remove the space from modifier functions and split on word boundaries
\b
, we will have better visuals overall. This way, a string likeCtl+Shft+C
can still be split likeCtl+Shift+
/C
, while still having no gaps in hold/shifted fields.The idea is to still split on explicit spaces, then within each item, use
textwrap.TextWrapper(width=something)._wrap_chunks(re.split(r'\b', text))
to get a further split to chunks.something
can bedraw_config.shrink_wide_legends
since that's nominally the acceptable legend width inside a key. However this means that a value of 0 should disable the splitting along with the shrinking.The text was updated successfully, but these errors were encountered: