Closed as not planned
Labels
Python APIIssue is about the Python APIVisualisationThis issue addresses visualisationfutureIssues that are closed as they are not planned in the medium-term, but which are still desirable.
Description
At the moment the genome positions in both text and SVG plots are listed in standard coordinates (interpreted as "base pairs"), but often the sequences run to thousands or millions of bases.
I wonder if, by default, if the largest plotted position is > 10,000, we should plot the numbers divided by 1000 (and adjust the X axis label accordingly, perhaps saying "Kb"), and similarly if Mb if the largest plotted position is > 10,000,000. The extra decimal point will take up more space, but I think it would make the positions more readable.
Alternatively, or as well, we could allow explicit labels to be passed, as we do for the Y axis (but not currently for the X)
Metadata
Metadata
Assignees
Labels
Python APIIssue is about the Python APIVisualisationThis issue addresses visualisationfutureIssues that are closed as they are not planned in the medium-term, but which are still desirable.
Activity
molpopgen commentedon Jun 16, 2022
It is not always the case, though, that the unit of a tree sequence is a "base pair". While that is probably true for inferred tree sequences, it often isn't for simulated ones.
hyanwong commentedon Jun 16, 2022
Yes, I had forgotten to say that. There is a potential problem with labelling, although this could be solved like matplotlib does by saying
x 1e3 unitsnear the axis (a bit ugly though).In principle, simulated ones that aren't in base pairs are likely to be from zero to one, I suspect?
molpopgen commentedon Jun 16, 2022
Not necessarily. I've done things that are 10 "units" long where each unit is one of the [0, 1) things you are thinking of, etc..
benjeffery commentedon Jun 20, 2022
Just
korMwould avoid having to be specific but still easily understandable I think.benjeffery commentedon Jun 9, 2025
Closing for inactivity and labelling "future".
hyanwong commentedon Jun 9, 2025
I started on this, but then realised that often we want from e.g. position 1,000,123 - 1,000,345, and putting two ticks identically labelled
1Mwould be a bit pointless, and 1.000123M ... 1.000345M takes up more space, if anything. So I'm not sure there's a simple solution