Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tight_layout.get_renderer() breaks plotHeatmap with matplotlib 3.6 #1172

Closed
pauldrinn opened this issue Oct 26, 2022 · 0 comments
Closed

tight_layout.get_renderer() breaks plotHeatmap with matplotlib 3.6 #1172

pauldrinn opened this issue Oct 26, 2022 · 0 comments

Comments

@pauldrinn
Copy link

pauldrinn commented Oct 26, 2022

tight_layout.get_renderer() was removed starting from matplotlib 3.6 so plotHeatmap doesn't plot with matplotlib 3.6 installed.

(base) [etekoglu@linuxsrv006 manualqc]$ plotHeatmap -m neg_investigation.mat.gz -o neg_investigation.pdf \
>     --colorList "white,#043565" "white,#043565" "white,red" "white,red" "white,red" \
>     --missingDataColor "white" \
>     --samplesLabel "1" "2" "3" "4" "5" \
>     --regionsLabel "R1" "R2" "R3" "R4" \
>     --sortUsingSamples 1 \
>     --heatmapHeight 15 \
>     --heatmapWidth 5 \
>     --zMin 0 0 0 0 0 --zMax 3 3 1.5 1.5 100 \
>     --yMin -0.5 -0.5 0 0 0 --yMax 3 3 1.5 1.5 150

Samples used for ordering within each group:  [0]
Traceback (most recent call last):
  File "/home/etekoglu/miniconda3/bin/plotHeatmap", line 12, in <module>
    main(args)
  File "/home/etekoglu/miniconda3/lib/python3.8/site-packages/deeptools/plotHeatmap.py", line 874, in main
    plotMatrix(hm,
  File "/home/etekoglu/miniconda3/lib/python3.8/site-packages/deeptools/plotHeatmap.py", line 587, in plotMatrix
    renderer = tl.get_renderer(fig)
AttributeError: module 'matplotlib.tight_layout' has no attribute 'get_renderer'

Downgrading back to matplotlib 3.5.3 fixes the issue.

My versions are:

  • deepTools 3.5.1
  • Python 3.8.13
  • matplotlib 3.6.1
adRn-s pushed a commit that referenced this issue Oct 27, 2022
@adRn-s adRn-s closed this as completed in 3005380 Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant