|
From: Adam H. <hug...@gm...> - 2015-03-13 19:06:27
|
All the pandas plots that I've used take an axes keyword so try: c = corrplot.Corrplot(df, ax=ax1) or c = corrplot.Corrplot(df, axes=ax1) Do either of those work? On Fri, Mar 13, 2015 at 2:04 PM, Paul Hobson <pmh...@gm...> wrote: > What's the function signature of corrplot.CorrPlot? Hopefully you can pass > an Axes object to it argument. > -p > > On Fri, Mar 13, 2015 at 9:02 AM, Sudheer Joseph <sud...@ya...> > wrote: > >> Dear Matplotlib exprets, >> I am trying to place the corrplot in subplot environment. But not able to >> figure out how to do it properly. Can any one advice please? >> >> >> from biokit.viz import corrplot >> df = pd.DataFrame(dict(( (k, np.random.random(10)+ord(k)-65) for k in >> letters))) >> df = df.corr() >> c = corrplot.Corrplot(df) >> >> I wanted to make the corrplot in below 4 boxes which can come out as a >> single figure. The above data is a test data actually I wanted use seasonal >> data for this purpose. >> >> fig = plt.figure() >> fig.subplots_adjust(left=0.2, wspace=0.6) >> ax1 = fig.add_subplot(221) >> ax2 = fig.add_subplot(222) >> ax3 = fig.add_subplot(223) >> ax4 = fig.add_subplot(224) >> >> >> *************************************************************** >> Sudheer Joseph >> Indian National Centre for Ocean Information Services >> Ministry of Earth Sciences, Govt. of India >> POST BOX NO: 21, IDA Jeedeemetla P.O. >> Via Pragathi Nagar,Kukatpally, Hyderabad; Pin:5000 55 >> Tel:+91-40-23886047(O),Fax:+91-40-23895011(O), >> Tel:+91-40-23044600(R),Tel:+91-40-9440832534(Mobile) >> E-mail:sjo...@gm...;sud...@ya... >> Web- http://oppamthadathil.tripod.com >> *************************************************************** >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Matplotlib-users mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users >> > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |