SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Bala s. <bal...@gm...> - 2014年11月27日 14:56:00
Friends,
I want to make multiple graphs on a single axes. As an example, i am
pasting below an article where it has been shown.
http://www.ncbi.nlm.nih.gov/pubmed/23403925
My plot of interest is *Figure7B*, where multiple distribution are depicted
in single plot. I want to make a similar one. Kindly give me some insights
on how i can make it with mpl, if anyone have achieved making it with mpl.
Thanks in advance,
Bala
-- 
C. Balasubramanian
From: Shahar Shani-K. <ka...@po...> - 2014年11月27日 17:04:27
you could go with something like this:
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots(1, 10, figsize=(10,3))
fig.subplots_adjust(wspace=0)
for i,axi in enumerate(ax):
 axi.axis((0,1,0,1))
 axi.xaxis.set_ticks([])
 axi.yaxis.set_ticks([])
 if i is 0:
 axi.xaxis.tick_bottom()
 axi.yaxis.tick_left()
 axi.spines['right'].set_visible(False)
 axi.spines['top'].set_visible(False)
 axi.spines['left'].set_bounds(0, 1)
 axi.spines['bottom'].set_bounds(0, 1)
 axi.yaxis.set_ticks(np.linspace(0,1,5))
 axi.yaxis.set_ticklabels(np.linspace(0,1,5))
 axi.xaxis.set_ticks(np.linspace(0,1,3))
 axi.xaxis.set_ticklabels(np.linspace(0,1,3))
 if i > 0:
 axi.set_frame_on(False)
 
 axi.plot(np.random.rand(10), np.random.rand(10))
 
On Nov 27, 2014, at 4:55 PM, Bala subramanian <bal...@gm...> wrote:
> Friends,
> 
> I want to make multiple graphs on a single axes. As an example, i am pasting below an article where it has been shown.
> 
> http://www.ncbi.nlm.nih.gov/pubmed/23403925
> 
> My plot of interest is Figure7B, where multiple distribution are depicted in single plot. I want to make a similar one. Kindly give me some insights on how i can make it with mpl, if anyone have achieved making it with mpl.
> 
> Thanks in advance,
> Bala
> 
> 
> -- 
> C. Balasubramanian
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk_______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
From: Paul H. <pmh...@gm...> - 2014年11月27日 17:05:55
Check out the third example in the gallery:
Gallery Link:
http://matplotlib.org/gallery.html
Direct Link:
http://matplotlib.org/examples/lines_bars_and_markers/fill_demo_features.html
On Thu, Nov 27, 2014 at 6:55 AM, Bala subramanian <bal...@gm...
> wrote:
> Friends,
>
> I want to make multiple graphs on a single axes. As an example, i am
> pasting below an article where it has been shown.
>
> http://www.ncbi.nlm.nih.gov/pubmed/23403925
>
> My plot of interest is *Figure7B*, where multiple distribution are
> depicted in single plot. I want to make a similar one. Kindly give me some
> insights on how i can make it with mpl, if anyone have achieved making it
> with mpl.
>
> Thanks in advance,
> Bala
>
>
> --
> C. Balasubramanian
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
From: Eric F. <ef...@ha...> - 2014年11月27日 18:08:28
On 2014年11月27日, 4:55 AM, Bala subramanian wrote:
> Friends,
>
> I want to make multiple graphs on a single axes. As an example, i am
> pasting below an article where it has been shown.
>
> http://www.ncbi.nlm.nih.gov/pubmed/23403925
>
> My plot of interest is *Figure7B*, where multiple distribution are
> depicted in single plot. I want to make a similar one. Kindly give me
> some insights on how i can make it with mpl, if anyone have achieved
> making it with mpl.
Fig 7b is just a set of curves with sequential offsets in x, right? A 
LineCollection can be nice for this. See the last panel in 
http://matplotlib.org/examples/api/collections_demo.html.
Eric
>
> Thanks in advance,
> Bala
>
>
> --
> C. Balasubramanian
>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /