[IPython-User] (gg)plot sizing in rmagic

Thomas Kluyver takowl@gmail....
Fri Jan 4 17:26:40 CST 2013


On 4 January 2013 23:19, Jimmie <ipython@chaj.com> wrote:

> UsageError: argument -u/--units: invalid int value: u"'px'"
>
> Looking at the rmagic.py extensions source, it seems that argparse expects
> the value as an int which doesn't seem to make much sense to me since the
> rmagic doc (http://ipython.org/ipython-**doc/dev/config/extensions/**
> rmagic.html<http://ipython.org/ipython-doc/dev/config/extensions/rmagic.html>)
> states:
>
> -u UNITS, --units UNITS
>
>   Units of png plotting device sent as an argument to png in R. One of
> [“px”,
>   “in”, “cm”, “mm”].


I think you're right. Would you like to make a pull request to fix it?
Ideally, we should add a test for it as well - see
https://github.com/ipython/ipython/blob/master/IPython/extensions/tests/test_rmagic.pyfor
examples.

Thanks,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20130104/459432d8/attachment.html 


More information about the IPython-User mailing list