open2c / coolpuppy

A versatile tool to perform pile-up analysis on Hi-C data in .cool format.
MIT License
77 stars 11 forks source link

Y-Axis labels missing with plotpup.plot #142

Closed linus3210 closed 5 months ago

linus3210 commented 5 months ago

Hi,

plotpup.plot in the python API is currently not displaying the labels on the Y-axis despite the plot_ticks option being enabled. The axis labels are currently only displayed on the X-axis.

pup_tandem_plot

I'm using the latest version of coolpup.py in Jupyter notebooks running on WSL Ubuntu with python version 3.10.3.

efriman commented 5 months ago

Hi @linus3210. This is not actually a bug but intended behaviour to avoid clutter, as the pileup is always symmetric so the x and y axis labels are the same. You can plot the matrix, which is in the "data" column, yourself using e.g. matplotlib and customise it as you wish.