[Matplotlib-users] distribution plots

2011-09-11 Thread xyz
Hello, How is it possible to paint this kind graph http://pcp.oxfordjournals.org/content/52/2/274 with Matplotlib? Thank you in advance. Cheers, Michal -- Using storage to extend the benefits of virtualization and

Re: [Matplotlib-users] distribution plots

2011-09-11 Thread Eric Firing
On 09/10/2011 07:57 PM, xyz wrote: Hello, How is it possible to paint this kind graph http://pcp.oxfordjournals.org/content/52/2/274 with Matplotlib? Your link leads to a journal abstract, not to a graph. There are several figures in the paper. It looks like any of them could be made with

Re: [Matplotlib-users] distribution plots

2011-09-11 Thread xyz
Sorry, this is the correct link http://pcp.oxfordjournals.org/content/52/2/274/F2.expansion.html (Fig2). Thank you in advance, On 09/11/2011 04:33 PM, Eric Firing wrote: On 09/10/2011 07:57 PM, xyz wrote: Hello, How is it possible to paint this kind graph

Re: [Matplotlib-users] 2 x-axes

2011-09-11 Thread Neal Becker
Gökhan Sever wrote: Hi, The code below should create a properly placed 2nd x-axis. You might need to adjust the placement of the figure canvas to match into the window. import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.axes_grid.parasite_axes import SubplotHost fig

Re: [Matplotlib-users] 2 x-axes

2011-09-11 Thread Jae-Joon Lee
Just in case, here is a version with axes_grid1 toolkit. Note that axes_grid is kind of deprecated. Regards, -JJ import numpy as np import matplotlib.pyplot as plt import mpl_toolkits.axes_grid1 as axes_grid1 host = axes_grid1.host_subplot(111) hplt, = host.plot(np.random.rand(100)) from

Re: [Matplotlib-users] 2 x-axes

2011-09-11 Thread Jae-Joon Lee
On Sun, Sep 11, 2011 at 10:16 PM, Neal Becker ndbeck...@gmail.com wrote: Yes, that's very helpful.  Just one thing.  How would I get a bit more bottom margin on the main figure to leave more room for the extra axis? I'm using this as an example.  I experimented with plt.subplots_adjust, which

[Matplotlib-users] Suggestion for annotation arrow clipping

2011-09-11 Thread Daniel Hyams
Mpl 1.0.0 The way Annotation.draw (in text.py) is implemented, if an annotation is created with an annotation point (x,y) and text located at (tx,ty) and then the you pan around on the graph such that (x,y) is no longer visible, the annotation suddenly disappears. I would suggest the following

Re: [Matplotlib-users] 2 x-axes

2011-09-11 Thread Neal Becker
Jae-Joon Lee wrote: On Sun, Sep 11, 2011 at 10:16 PM, Neal Becker ndbeck...@gmail.com wrote: Yes, that's very helpful. Just one thing. How would I get a bit more bottom margin on the main figure to leave more room for the extra axis? I'm using this as an example. I experimented with

Re: [Matplotlib-users] 2 x-axes

2011-09-11 Thread Gökhan Sever
The master is here. JJ had showed me those multi axes tricks and he is back again with the plenty of changes to the axes_grid toolkit. The best thing to do is to make a new clone from the master repo and experiment. On Sun, Sep 11, 2011 at 1:37 PM, Neal Becker ndbeck...@gmail.com wrote: