Skip to content

Commit

Permalink
removed matplotlib dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sommerc committed Mar 19, 2024
1 parent 1a5fff3 commit 602950d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 2 additions & 5 deletions mastodon_reader/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
import networkx as nx
from matplotlib import pyplot as plt


__all__ = ["ismember", "RGBint2RGB"]

Expand Down Expand Up @@ -229,10 +229,7 @@ def node_positions(self):

return pos

def draw(self, ax=None):
if ax is None:
f, ax = plt.subplots()

def draw(self, ax):
nx.draw_networkx(
self.nx_tree,
pos=self.node_positions(),
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@
# entry_points = {'console_scripts': []},
author="Christoph Sommer",
author_email="christoph.sommer23@gmail.com",
install_requires=["numpy", "pandas", "networkx", "matplotlib"],
install_requires=["numpy", "pandas", "networkx"],
)

0 comments on commit 602950d

Please sign in to comment.