python - set axis limits in loglog plot with matplotlib -


how create space around points i've plotted matplotlib?

for example, in plot, bottom left point cutoff axis, little more space between point , axis. example plot

import matplotlib.pyplot plt x = [2**i in xrange(4,14)] y = [i**2 in x] plt.loglog(x,y,'ro',basex=2,basey=2) plt.xlim([0, 2**14]) # <--- line nothing plt.show() 

in interactive mode, xlim line returns (16.0, 16384), old values instead of new values i'm trying set.

zero can not plotted on loglog graph (log(0) = -inf). silently failing because can not use 0 limit.

try plt.xlim([1,2**14]) instead.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -