Note that there are some explanatory texts on larger screens.

plurals
  1. POHelp with making a big subplot look nicer and clearer
    primarykey
    data
    text
    <p>I have a subplot of 28 lines x 2 columns(it can change, actually). The yaxis scale of all the lines of the 1st column is supposed to be the same (that must work for that 2nd column as well)....</p> <p>All the xaxis are supposed to be the same.</p> <p>What I want to do is to make something inside the output figure that shows what is the yaxis for the 1st and 2nd columns and what is the xaxis for both columns... I also want to get a label to up top at the 1st and 2nd column (saying what are those data).</p> <p>I also want to change the aspect of the plots so that it can be seen more clearly (probably increasing the yaxis aspect size and drecreasing the xaxis size a little).</p> <p>The subplot I want, without the re-sizing, should be something like this:</p> <p><img src="https://i.stack.imgur.com/mVJQU.gif" alt="Output Figure"></p> <p>It can be something different. I really don't know whats possible to make out of my request.</p> <p>The code i usd to generate the figure (without the paint-made labels):</p> <pre><code>def pltconc(conc,self): t=self.t idx1=0 conc=conc*1000000 c=len(find( self.ml[:,3]==1 )) from scipy.stats import scoreatpercentile #To adjust the scales ymin1 = max([median(scoreatpercentile(conc[:,i,:],0.05)) for i in range(28)]) ymax1 = max([median(scoreatpercentile(conc[:,i,:],99.95)) for i in range(28)]) for idx1 in range(c): a=subplot(c,2,2*idx1+1, adjustable='box-forced') plt.plot(t,conc[:,idx1,0],color='r') plt.plot(t,conc[:,idx1,1],color='b') plt.axis('tight') xlim(0,max(self.t)) ylim(ymin1,ymax1) frame1 = plt.gca() a.set_yticklabels([]) a.set_xticklabels([]) ax=subplot(c,2,2*idx1+2, adjustable='box-forced') CBV = (conc[:,idx1,2]*100)/(90+conc[:,idx1,2]) StO2 = (conc[:,idx1,0]*100)/(90+conc[:,idx1,2]) ymin2 = max(median(scoreatpercentile(CBV,0.05)),median(scoreatpercentile(StO2,0.05))) ymax2 = max(median(scoreatpercentile(StO2,99.95)),median(scoreatpercentile(CBV,99.95))) plt.plot(t,CBV, color='m') plt.plot(t,StO2, color = 'b') plt.axis('tight') xlim(0,max(self.t)) ylim(ymin2,ymax2) frame1 = plt.gca() ax.set_yticklabels([]) ax.set_xticklabels([]) </code></pre> <p>Thanks alot for the help.</p> <p>I changed the code since I've realized they weren't correctly scaled. The output figure should be a little bit differente, but it doesn't really matters for this questions purpose.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload