Hi everyone

I needed some help to make my output subplot made with the code below,
become something like this:
http://old.nabble.com/file/p32084025/Concentracao%2BFiltradoHbO%252CHbR%252CHbT%2BApneia_01.gif
 


The code i used to this is here, tried to comment it alot, if u dont get
something, just ask..


Thanks alot for the help.... (the figure was hand-made, cept the plots)..


Heres the code:

def pltcanal(b, self):
##b=Matrix of dimensions (len(t),c) to plot x t
    t=d1.t
    idx1=0
    c = len(find( self.ml[:,3]==1 ))#just something from my code to make
sure we have the lenght of the matrix

    from scipy.stats import scoreatpercentile#To adjust the scales
    ymin1 = median(scoreatpercentile(d1.DOD[:,:27],0.05))
    ymin2 = median(scoreatpercentile(d1.DOD[:,27:],0.05))
    ymax1 = median(scoreatpercentile(d1.DOD[:,:27],99.95))
    ymax2 = median(scoreatpercentile(d1.DOD[:,27:],99.95))

    for idx1 in range(c):#making the subplots
        idx2=c+idx1
        subplot(c,2,2*idx1+1)
        plt.plot(t,b[:,idx1],color='g')
        ylim(ymin1,ymax1)
        frame1 = plt.gca()
        for xlabel_i in frame1.axes.get_xticklabels():#To remove the scales
            xlabel_i.set_visible(False)
            xlabel_i.set_fontsize(0.0)
        for xlabel_i in frame1.axes.get_yticklabels():
            xlabel_i.set_fontsize(0.0)
            xlabel_i.set_visible(False)
            
        subplot(c,2,2*idx1+2)
        plt.plot(t,b[:,idx2], color='r')
        ylim(ymin2,ymax2)
        frame1 = plt.gca()
        for xlabel_i in frame1.axes.get_xticklabels():
            xlabel_i.set_visible(False)
            xlabel_i.set_fontsize(0.0)
        for xlabel_i in frame1.axes.get_yticklabels():
            xlabel_i.set_fontsize(0.0)
            xlabel_i.set_visible(False)
-- 
View this message in context: 
http://old.nabble.com/Plotting-Scales-and-Tittles-on-Subplots-with-matplotlib-tp32084025p32084025.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to