[IPython-dev] [EXTERNAL] Re: A fresh approach for plotting?

Paul Ivanov pi at berkeley.edu
Wed Apr 16 17:41:02 EDT 2014


Shead, Timothy, on 2014-04-16 20:58,  wrote:
> I will definitely check these out.  I’m also going to ping the
> matplotlib folks to see if they’ve considered an SVG backend.
> If they did, I probably wouldn’t fight it :)

matplotlib has an SVG backend, here's how you use it in the
notebook:

    %matplotlib inline 
    import matplotlib.pyplot as plt
    import numpy as np
    from IPython.display import set_matplotlib_formats
    set_matplotlib_formats('svg')
    x,y,z,c = np.random.randn(4, 20)
    plt.scatter(x,y, s=np.abs(z)*100, c=c)

http://nbviewer.ipython.org/gist/ivanov/10935754

best,
-- 
                   _
                  / \
                A*   \^   -
             ,./   _.`\\ / \
            / ,--.S    \/   \
           /  `"~,_     \    \
     __o           ?
   _ \<,_         /:\
--(_)/-(_)----.../ | \
--------------.......J
Paul Ivanov
http://pirsquared.org



More information about the IPython-dev mailing list