Skip to content

Cannot print plotCorrelation due to the wrong value in call function set_rotation from matplotlib #1183

@aletomczak

Description

@aletomczak

Hi, I have encountered a problem while executing command:

plotCorrelation --corData deeptools_analysis/bamSummaryOutput --corMethod pearson --whatToPlot scatterplot --plotFile scatter_limited_pearson.png

Outliers were detected in the data. Consider using the --removeOutliers parameter to avoid a bias in the pearson correlation.

Traceback (most recent call last):
File "/.../bin/plotCorrelation", line 12, in <module>
main(args)
File "/.../python3.10/site-packages/deeptools/plotCorrelation.py", line 239, in main
corr.plot_scatter(args.plotFile,
File "/////python3.10/site-packages/deeptools/correlation.py", line 507, in plot_scatter
tick.label.set_rotation('45')
File "/.../python3.10/site-packages/matplotlib/text.py", line 1196, in set_rotation
raise ValueError("rotation must be 'vertical', 'horizontal' or "
ValueError: rotation must be 'vertical', 'horizontal' or a number, not 45

==================================================
Problem can be repaired by changing the value str '45' for int 45 in /.../deeptools/correlation.py

  • deeptools 3.5.1
  • python 3.10.8
  • matplotlib-base 3.6.2

Best regards, Ola

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions