Re: [Matplotlib-users] Limits with errorbar

2011-02-02 Thread Francesco Montesano
Hi Paul,

2011/2/1 Paul Ivanov pivanov...@gmail.com

 I'm not sure what you're hoping to see, but you should either use
 xerr with xuplims, or yerr with uplims.


Thank you for the reply. As usually I checked everything except the correct
one.
By the way, if one uses (by error) yerr and xuplims/xlolims or xerr and
uplims/lolims, no error bar shows up. Is this a bug or a feature?

Cheers,
Fra
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Limits with errorbar

2011-02-01 Thread Francesco Montesano
Dear all,

I am trying to make a plot with errorbars and upperlimits.
I've found the following pylab example
http://matplotlib.sourceforge.net/examples/pylab_examples/errorbar_limits.htmland
it works fine both on a Mac OSX10.6 with python 2.6.1 and on Kubuntu
10.04 with python 2.6.5.
I've tried the to reproduce the example using matplotlib.pyplot but the
limits do not show up, regardless of syntax or system (matplotlib 1.0.0 on
Mac and 1.0.1 on Kubuntu)

I attach a sample code which does not work.

import numpy as np
 import matplotlib.pyplot as plt

 #create function to plot plus random error
 x = np.linspace(0,3,100)
 y = np.sin(x)
 err = np.random.random(100)

 plt.errorbar(x,y, yerr=err, color='g',linestyle='None',xuplims=True)
 plt.show()


Does anyone know how to solve this problem?

Thanks in advance,
Francesco
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Limits with errorbar

2011-02-01 Thread Paul Ivanov
Francesco Montesano, on 2011-02-01 12:07,  wrote:
 I attach a sample code which does not work.
 
 import numpy as np
  import matplotlib.pyplot as plt
 
  #create function to plot plus random error
  x = np.linspace(0,3,100)
  y = np.sin(x)
  err = np.random.random(100)
 
  plt.errorbar(x,y, yerr=err, color='g',linestyle='None',xuplims=True)
  plt.show()

Hi Francesco,

  plt.errorbar(x,y, yerr=err, color='g',linestyle='None',xuplims=True)

I'm not sure what you're hoping to see, but you should either use
xerr with xuplims, or yerr with uplims.

best,
-- 
Paul Ivanov
314 address only used for lists,  off-list direct email at:
http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7 


signature.asc
Description: Digital signature
--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users