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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to