On Mon, Nov 16, 2009 at 2:30 PM, John Didion <jdid...@email.unc.edu> wrote:

>
>
> I am trying to generate a figure of some genomic data. Basically, I want to
> show how many times a certain event happens within each one megabase window
> of each chromosome. The X axis is the chromosomal position (unit is
> megabases) and the Y axis is chromosome number (1-19, X, Y, M in mouse). For
> each chromosome, I want a subplot on which I will draw a bar graph. So
> basically, there will be 22 subplots, each with their own axes, and also X
> and Y axes for the entire figure.
>
> I know how to do subplots, I just don't know how to get the overall figure
> axes. Can anyone help?
>
> I will try to sketch out below with some ascii art what I want in case this
> description isn't clear.
>
>
>   | |||||||||||  |  |    ||||  ||||  |
> 1  |--------------------------------------
>   |    ||||    ||     |||||||     |||||
> 2  |--------------------------------------
>   |
> .  |
>   |||||    || | | |||    ||||    ||
> 19 |--------------------------------------
>   |   |||||| | |||  | |    ||
> X  |--------------------------------------
>   ||      |||             |||||
> Y  |--------------------------------------
>   |  ||      |||||          |||||
> M  |--------------------------------------
>   |
>    --------------------------------------
>    0        50      100      150      200
>                    Megabases
>
>
> Thanks!
>
>
Spines should do what you are seeking after. Check the example:

http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html#pylab-examples-spine-placement-demo



> --
> John Didion
> Computational Biology, PhD Student
> Fernando Pardo-Manuel de Villena Lab
> UNC Chapel Hill
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>


-- 
Gökhan
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to