|
From: Peter <pw...@st...> - 2007-08-16 19:26:35
|
Hi, Sorry this might look like a really stupid question, but I have not been able to find an answer in the matplotlib documentation... When plotting data points using the "o"-style, some points are truncated by the axis borders. Is there a way to define some kind of margin without changing the x/y range manually? So far, I did some kind of workaround: (xmin,xmax) = p.xlim() xw = xmax - xmin p.xlim(xmin - xw*0.05, xmax + xw*0.05) Is there a better way than this? Thanks, Peter |