Hi All,
I want to shade(filled) several regions in a 2D plot by different colors. The attachment contains the plot I am expecting to plot. I could not find a better tutorial to plot this figure yet. Could you please give some help on this. Thank you in advance.
The boundaries of the given region is given by following functions.
P1 = range from 0 to 5temp = range from 600 to 1600Tttg1 = 760.-60.*(P1-1.)**2. Tttg2 = 1000.-150.*((P1-1.2)/1.2)**2. Pttg1 = -0.5*((temp-870.)/220.) Pttg2 = 1.5+0.7*((temp-700.)/200.) Pttg3 = 1. Tttg3 = 1000. # pr3Tttg4 = 1100.+50.*((P1-3.5)/3.5)**2. # pr4Pttg4 = 2.35 +0.15*((temp-1000.)/100.) # Tr4/1000Pttg5 =5.%3 regions
lpttg_con = (temp>Tttg1) & (temp<Tttg2) & (P1>Pttg1) & (P1<Pttg2) & (P1<Pttg3)# & matcon_WBmpttg_con = (temp>Tttg1) & (temp<Tttg2) & (P1>Pttg1) & (P1<Pttg2) & (P1>=Pttg3)# & matcon_WBhpttg_con = (temp>Tttg3) & (temp<Tttg4) & (P1>Pttg4) & (P1<Pttg5)
Thanks
Prasanna
Best Answer