IGS / gEAR

The gEAR Portal was created as a data archive and viewer for gene expression data including microarrays, bulk RNA-Seq, single-cell RNA-Seq and more.
https://umgear.org
GNU Affero General Public License v3.0
10 stars 5 forks source link

V2 - Expression/Projection View - Fix full-width "expression-only" tSNE displays #684

Open adkinsrs opened 2 weeks ago

adkinsrs commented 2 weeks ago

I observed this with a tSNE plot, but would need to check if it exists with other plots too. Noticed that if you create a tSNE image with no annotation (1 panel display), the tSNE plot aspect ratio is square. If this is a full-width (12-column) display, then the image height is increased to preserve the aspect ratio. This doesn't seem to happen with multi-panel tSNEs, and I think this is because we set "figsize" info for all plots combinations except for the "gene expression only" plot.

I may defer this fix until after the "scanpy-1.9.8-upgrade" branch is merged or actively worked on, since I refactored the scanpy code there to account for the scanpy version upgrade.

adkinsrs commented 2 weeks ago

Example... the top image is the one with the issue. An earlier display with 1/3 width looks fine.

Screenshot 2024-04-15 at 8 40 17 AM