Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

list_plot_semilogy not working

import numpy import matplotlib.pyplot as plt noise=numpy.random.randn(1,10) signal = numpy.ones(10) snrdb = numpy.arange(10.)

print snrdb

import mpmath ber = [] for i in range(0,10): ber.append(n(0.5*mpmath.erfc(float(snrdb[i])/sqrt(2))))

list_plot_semilogy(zip(snrdb,ber))

Running the above code with list_plot works but the semilogy option yields an empty graph. Please resolve this. Thanks in advance.

click to hide/show revision 2
No.2 Revision

list_plot_semilogy not working

import numpy
import matplotlib.pyplot as plt
noise=numpy.random.randn(1,10)
signal = numpy.ones(10) 
snrdb = numpy.arange(10.)

print snrdb

numpy.arange(10.) #print snrdb import mpmath ber = [] for i in range(0,10): ber.append(n(0.5*mpmath.erfc(float(snrdb[i])/sqrt(2))))

ber.append(n(0.5*mpmath.erfc(float(snrdb[i])/sqrt(2))))

list_plot_semilogy(zip(snrdb,ber))

list_plot_semilogy(zip(snrdb,ber))

Running the above code with list_plot works but the semilogy option yields an empty graph. Please resolve this. Thanks in advance.