Re: [Matplotlib-users] Drawing on a figure, not a subplot

2011-09-17 Thread John Ladasky
On Sat, 2011-09-17 at 19:19 -0500, John Hunter wrote: > The artist tutorial covers drawing directly to a figure > > http://matplotlib.sourceforge.net/users/artists.html#figure-container > > I believe you could adapt the patches.FancyArrow to the same approach. Thanks, John! I got JJ's approach

Re: [Matplotlib-users] Drawing on a figure, not a subplot

2011-09-17 Thread John Hunter
On Fri, Sep 16, 2011 at 4:10 PM, John Ladasky wrote: > Now I would like to add the axis lines and arrows.  In fact, I would > prefer a FancyArrow object. > > I can see how to add non-text objects to an Axes, e.g.: > > ax = fig.add_subplot(111) > ax.add_patch(my_arrow) > > But that isn't my goal h

Re: [Matplotlib-users] Drawing on a figure, not a subplot

2011-09-17 Thread John Ladasky
Hi, JJ, Thanks for the reply. On Sat, 2011-09-17 at 23:04 +0900, Jae-Joon Lee wrote: > Adding a patch to an axes does not mean it cannot be drawn outside of > axes. As far as you set (or unset) proper clip box, artists can be > drawn anywhere in the canvas regardless of the axes it belongs to. >

Re: [Matplotlib-users] Drawing on a figure, not a subplot

2011-09-17 Thread Jae-Joon Lee
On Sat, Sep 17, 2011 at 6:10 AM, John Ladasky wrote: > But that isn't my goal here.  I want to add lines to the FIGURE, outside > of any Axes.  Does anyone know how to accomplish this?  Thanks! Not sure what you mean here. Adding a patch to an axes does not mean it cannot be drawn outside of axes

[Matplotlib-users] Drawing on a figure, not a subplot

2011-09-16 Thread John Ladasky
Hello everyone, I want to use matplotlib to create a figure like the one seen in panel E of this linked image: http://www.iovs.org/content/49/12/5425/F1.large.jpg There are eight 2-D plots shown. All of them display the same two variables, CD4 on the X-axis and CD3 on the Y-axis. Rather than l