I am currently using logscale to have more options for building my data. However, my data also contains null values. I know that these null values ββwill not work in logscale since log (0) is undefined.
For example,
fig = plt.figure() ax = fig.add_subplot(111) ax.plot([0,1,2],[10,10,100],marker='o',linestyle='-') ax.set_yscale('log') ax.set_xscale('log')
completely omits the zero value. Is this behavior acceptable? At least there should be some warning. I found out by chance. Could there be a way to build data with a null value in logscale?
Thanks!
PS: Hope this matches stackoverflow. I did not find matplotlib mailing list.
fsociety
source share