From: John H. <jdh...@ac...> - 2004-09-07 14:41:17
|
>>>>> "Gary" == Gary <pa...@in...> writes: Gary> I've accomplished this feature via: ax = axis() set(gca(). Gary> hlines([0.], ax[0], ax[1])[0], linewidth=1) Gary> I don't remember why I did it this way instead of just Gary> plotting. Maybe I thought is was more clever. Does this Gary> method avoid auto-scaling? -g Yes it does, only because hlines doesn't call autoscale (I just looked it up). This is probably a bug, since I don't see why the plot and hlines method should have different behavior. It looks like an oversight. I think plotting the horizontal extent in axes coords is the proper way to go. JDH |