kymata-atlas / kymata-core

Core Kymata codebase, including statistical analysis and plotting tools
https://kymata.org
MIT License
5 stars 0 forks source link

xlims argument not working in expression_plot() #179

Closed neukym closed 8 months ago

neukym commented 8 months ago

When setting expression_plot(expression_data, ylim=-200, xlims=(-100, 800)), only the left hand is adjusted.

Screenshot 2024-02-22 at 09 18 36
caiw commented 8 months ago

It's because the bottom-axis has hard-coded tick labels, which resets the bottom-axis xlims after they've already been set. This is from back when the whole dimensions of the expression plot were hard-coded - there's even a little # todo: hard-coded? comment above when the xlims are set 😉.