Skip to content

Commit

Permalink
Merge pull request #50 from kirichoi/develop
Browse files Browse the repository at this point in the history
Pull to HEAD
  • Loading branch information
Kiri Choi authored Apr 27, 2022
2 parents 965021c + 4325f5d commit 7e86994
Show file tree
Hide file tree
Showing 5 changed files with 218 additions and 52 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

A package for visual analysis of biochemical reaction network models

Copyright 2018-2021 Kiri Choi
Copyright 2018-2022 Kiri Choi

## Introduction

Expand Down
2 changes: 1 addition & 1 deletion netplotlib/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.2.1
7 changes: 5 additions & 2 deletions netplotlib/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,12 @@ def draw(NetworkClass, show=True, savePath=None, dpi=150):
speciesName = speciesName.getId()
else:
sg = layout.getSpeciesGlyph(tg.getOriginOfTextId())
speciesName = sg.getSpeciesId()
if sg != None:
speciesName = sg.getSpeciesId()
else:
speciesName = tg.text
layoutTextGlyphIds.append(speciesName)

dim = bbox.getDimensions()

mattext = ax.text(tgpos.x_offset, tgpos.y_offset, speciesName,
Expand Down
Loading

0 comments on commit 7e86994

Please sign in to comment.