Skip to content

Commit

Permalink
issue #1093 - bump matplotlib - comment on version freeze was newer o…
Browse files Browse the repository at this point in the history
…nes break 3.11 - confirming that latest matplotlib (3.9.1) works fine now on 3.11 and 3.12

Had to fix a deprecated method, tested chrom graphs still work
  • Loading branch information
davmlaw committed Jul 12, 2024
1 parent d0bb1db commit 6e8a6f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions library/graphs/chromosomes_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""

import pandas as pd
from matplotlib.collections import BrokenBarHCollection

from library.genomics import format_chrom
from library.utils import sorted_nicely
Expand Down Expand Up @@ -70,7 +69,7 @@ def plot_chromosomes(ax, cytoband_filename, has_chr=False, **kwargs):

for xranges, yrange, colors, contig_name in sorted_ideograms(cytoband_filename, **kwargs):
contig_name = format_chrom(contig_name, has_chr)
coll = BrokenBarHCollection(xranges, yrange, facecolors=colors)
coll = ax.broken_barh(xranges, yrange, facecolors=colors)
coll.set_alpha(chrom_alpha)
ax.add_collection(coll)
center = yrange[0] + yrange[1] / 2.
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ipython
kombu
levenshtein
Markdown
matplotlib==3.6.1
matplotlib
more_itertools
mozilla_django_oidc
nameparser
Expand Down

0 comments on commit 6e8a6f1

Please sign in to comment.