[SciPy-user] gnuplot not output image

Vinicius Franco do Nascimento vinicius.nascimento at gmail.com
Tue Aug 2 15:32:02 CDT 2005


Hi,


I'm using Ubuntu Linux python 2.4 and don't plot my graphics using scipy.gplt
Legend don't show too. Anyonde help me?
this is my script:

#!/usr/bin/python
# Vinicius Franco do Nascimento
# vinicius.nascimento at gmail.com
# Calculo de campo usando espiras elementares
# Qui 19 Mai 2005 10:30:30 UTC 

from montgomery import Focz
from numarray import *
from scipy import gplt

print "######################################"
print "# Calculo da Bobina Helicoidal       #"
print "#Vinicius Franco do Nascimento/DEMAR #"
print "######################################"

n=1
I=1
p=0.1
r=1
rc=0
a2=0
v=0

path=arange(0, 15, 0.05)
k=0
Hz=arange(size(path))*1.



for i in path:
	FoczObj = Focz(I, r, i, n, p, a2, v, rc)
	Hz[k]=FoczObj.Hz_teste()
	print "%f, %f" % (Hz[k], i)
	k+=1
	
gplt.plot(path, Hz)
gplt.output("hz.png", 'png color')
gplt.title('Campo H em Bobina Helicoidal Espessa')
gplt.xtitle('Distancia x(cm)')
gplt.ytitle('Hz (Gauss)')
gplt.legend()

-- 
================================
Vinícius Franco do Nascimento
vinicius.nascimento at gmail.com
http://vinicius.objectis.net/



More information about the SciPy-user mailing list