Hi All,

An extra label is appearing on the plot I'm generating. I wonder if anyone
could explain what it means/how to get rid of it?

The plot is available at http://test.outpost.org.uk/example.png - the
unexplained label is the '+4.05674e7' in the upper right hand corner. This
value doesn't appear to be related to what I'm doing numerically.

My plotting code is below (should probably tidy this up!):

# Plot Results
lines1 = []
plot1 = pylab.subplot(211)
lines1.extend(pylab.plot(In, thrust / g, 'b-'))
pylab.ylabel('Thrust (kgf)')
pylab.grid(True)
ax2 = pylab.twinx()
lines1.extend(pylab.plot(In, inputFlow * 60000, 'g--'))
pylab.ylabel('Flow (lpm)')
pylab.legend(lines1, ('Thrust', 'Flow'), 2) #(0.02,0.8)
plot1.set_xticklabels([])
pylab.title('%s / %s (%d lpm) / %d bar' % (self.thruster.name,
self.valve.name, self.valve.ratedFlow * 60000, sysPres * 10**-5))

lines2 = []
plot2 = pylab.subplot(212)
lines2.extend(pylab.plot(In, thrusterPower * 0.001, 'c--'))
lines2.extend(pylab.plot(In, valvePower * 0.001, 'r:'))
lines2.extend(pylab.plot(In, totalPower * 0.001, 'm-'))
pylab.ylabel('Power (kW)')
pylab.grid(True)
ax4 = pylab.twinx()
lines2.extend(pylab.plot(In, 1000 * efficiency / g, 'y-'))
pylab.ylabel('Efficiency (kgf/kW)')
pylab.xlabel('Control Current (normalised)')
pylab.legend(lines2, ('Thruster', 'Valve', 'Total', 'Efficiency'), 2)
#(0.02,0.6)

pylab.savefig(filename, orientation='landscape')
pylab.clf()

Thanks in advance for any help/advice.

-Stuart


-----------------------------
Stuart Yarrow


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to