Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bc60abf

Browse files
author
Kiri Choi
committedOct 5, 2015
Change method getting plot titles
1 parent a2de1a4 commit bc60abf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎SedmlToRr.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -581,10 +581,10 @@ def generateOutputs(sedmlDoc, dataGeneratorsList):
581581
print "plt.xscale('log')"
582582
if curve.getLogY() == True:
583583
print "plt.yscale('log')"
584-
if output.getName() != None:
584+
if output.getName() != '':
585585
print "plt.title('" + output.getName() + "')"
586586
else:
587-
pass
587+
print "plt.title('" + output.getId() + "')"
588588
print "plt.show()\n"
589589
elif typeCode == libsedml.SEDML_OUTPUT_PLOT3D:
590590
print "from mpl_toolkits.mplot3d import Axes3D"
@@ -648,10 +648,10 @@ def generateOutputs(sedmlDoc, dataGeneratorsList):
648648
#print "Z_" + str(i) + " = np.array(" + str(allZ).replace("'","") + ").T"
649649
for x in range(len(allX)):
650650
print "ax.plot(" + str(allX[x]) + ", " + str(allY[x]) + ", " + str(allZ[x]) + ")"
651-
if output.getName() != None:
651+
if output.getName() != '':
652652
print "plt.title('" + output.getName() + "')"
653653
else:
654-
pass
654+
print "plt.title('" + output.getId() + "')"
655655
print "plt.show()\n"
656656
else:
657657
print "# Unsupported output type"

0 commit comments

Comments
 (0)
Please sign in to comment.