Corr plot in subplot

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.India@...287...;sudheer.joseph@...9...
Web- http://oppamthadathil.tripod.com
***************************************************************

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 <sudheer.joseph@…9…> 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®,Tel:+91-40-9440832534(Mobile)

E-mail:sjo.India@…287…;sudheer.joseph@…9…

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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

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 <pmhobson@…287…> wrote:

What’s the function signature of corrplot.CorrPlot? Hopefully you can pass an Axes object to it argument.
-p


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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

On Fri, Mar 13, 2015 at 9:02 AM, Sudheer Joseph <sudheer.joseph@…9…> 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®,Tel:+91-40-9440832534(Mobile)

E-mail:sjo.India@…287…;sudheer.joseph@…9…

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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Thank you Paul,
                          I could not follow fully what you meant by that in reply. but below is the info available with corrplot.
Kindly provide some help.
With best regards,
Sudheer
                     Here are some examples provided that the data is created and pass to c::

···

     

> c = corrplot.Corrplor(dataframe)
> c.plot(cmap=('Orange', 'white', 'green'))
> c.plot(method='circle')
> c.plot(colorbar=False, shrink=.8, upper='circle' )
>

--------------------------------------------
On Fri, 13/3/15, Paul Hobson <pmhobson@...287...> wrote:

Subject: Re: [Matplotlib-users] Corr plot in subplot
To: "Sudheer Joseph" <sudheer.joseph@...9...>
Cc: "Matplotlib Users" <matplotlib-users@lists.sourceforge.net>
Date: Friday, 13 March, 2015, 6:04 PM

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 <sudheer.joseph@...9...> 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.India@...287...;sudheer.joseph@...9...

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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Thank you Adam,
                          I did not see your response earlier. It worls.
Thanks
Sudheer

···

***

--------------------------------------------
On Fri, 13/3/15, Adam Hughes <hughesadam87@...287...> wrote:

Subject: Re: [Matplotlib-users] Corr plot in subplot
To: "Paul Hobson" <pmhobson@...287...>
Cc: "Sudheer Joseph" <sudheer.joseph@...9...>, "Matplotlib Users" <matplotlib-users@lists.sourceforge.net>
Date: Friday, 13 March, 2015, 7:06 PM

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 <pmhobson@...287...> 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 <sudheer.joseph@...9...> 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.India@...287...;sudheer.joseph@...9...

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

Matplotlib-users@lists.sourceforge.net

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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Sorry,
                 I tried both ax= and axes= both did not work. before testing I thought it is the correct way but did not work some how.

WIth best regards.
Sudheer
fig = plt.figure()
fig.subplots_adjust(left=0.001, wspace=0.01)
ax1 = fig.add_subplot(221);corrplot.Corrplot(df_djf,axes=ax1)
ax2 = fig.add_subplot(222);corrplot.Corrplot(df_mam,axes=ax2)
ax3 = fig.add_subplot(223);corrplot.Corrplot(df_jja,axes=ax3)
ax4 = fig.add_subplot(224);corrplot.Corrplot(df_son,axes=ax4)
   ...:

···

---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-7-c3cf513439f4> in <module>()
      1 fig = plt.figure()
      2 fig.subplots_adjust(left=0.001, wspace=0.01)
----> 3 ax1 = fig.add_subplot(221);corrplot.Corrplot(df_djf,axes=ax1)
      4 ax2 = fig.add_subplot(222);corrplot.Corrplot(df_mam,axes=ax2)
      5 ax3 = fig.add_subplot(223);corrplot.Corrplot(df_jja,axes=ax3)

TypeError: __init__() got an unexpected keyword argument 'axes'

--------------------------------------------
On Fri, 13/3/15, Adam Hughes <hughesadam87@...287...> wrote:

Subject: Re: [Matplotlib-users] Corr plot in subplot
To: "Paul Hobson" <pmhobson@...287...>
Cc: "Sudheer Joseph" <sudheer.joseph@...9...>, "Matplotlib Users" <matplotlib-users@lists.sourceforge.net>
Date: Friday, 13 March, 2015, 7:06 PM

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 <pmhobson@...287...> 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 <sudheer.joseph@...9...> 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.India@...287...;sudheer.joseph@...9...

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

Matplotlib-users@lists.sourceforge.net

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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Hi Paul,
                I could not succeed in plotting corrplot.Corrplot(df,ax=ax1).

infact the plotting procedure is
c=corrplot.Corrplot(df,ax=ax1)
then issue command
c.plot().
So there are 2 steps involved, which may be the complication. I am not very well versed with Matplotlib.
Kindly help.

···

--------------------------------------------
On Fri, 13/3/15, Adam Hughes <hughesadam87@...287...> wrote:

Subject: Re: [Matplotlib-users] Corr plot in subplot
To: "Paul Hobson" <pmhobson@...287...>
Cc: "Sudheer Joseph" <sudheer.joseph@...9...>, "Matplotlib Users" <matplotlib-users@lists.sourceforge.net>
Date: Friday, 13 March, 2015, 7:06 PM

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 <pmhobson@...287...> 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 <sudheer.joseph@...9...> 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.India@...287...;sudheer.joseph@...9...

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

Matplotlib-users@lists.sourceforge.net

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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Hellow Paul,
                 I thought I should show an example plot which shows the idea of what I was asking about corrplot. Below link shows it.
http://matplotlib.org/examples/pylab_examples/multi_image.html

···

--------------------------------------------
On Tue, 17/3/15, Sudheer Joseph <sudheer.joseph@...9...> wrote:

Subject: Re: [Matplotlib-users] Corr plot in subplot
To: "Paul Hobson" <pmhobson@...287...>, "Adam Hughes" <hughesadam87@...1972......>
Cc: "Matplotlib Users" <matplotlib-users@lists.sourceforge.net>
Date: Tuesday, 17 March, 2015, 8:31 AM

Hi Paul,
I could not succeed in
plotting corrplot.Corrplot(df,ax=ax1).

infact the plotting procedure is
c=corrplot.Corrplot(df,ax=ax1)
then issue command
c.plot().
So there are 2 steps involved, which may be the
complication. I am not very well versed with Matplotlib.
Kindly help.

--------------------------------------------
On Fri, 13/3/15, Adam Hughes <hughesadam87@...287...> wrote:

  Subject: Re:
[Matplotlib-users] Corr plot in subplot
  To:
"Paul Hobson" <pmhobson@...287...>
  Cc: "Sudheer Joseph" <sudheer.joseph@...9...>,
"Matplotlib Users" <matplotlib-users@lists.sourceforge.net>
  Date: Friday, 13 March, 2015, 7:06 PM
  
  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 <pmhobson@...287...> 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 <sudheer.joseph@...9...> 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.India@...287...;sudheer.joseph@...9...
  
  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
  
  Matplotlib-users@lists.sourceforge.net
  
  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
  
  Matplotlib-users@lists.sourceforge.net
  
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users

I’m confused is corrplot a matplotlib function? If it’s not, there’s not much we can do. You should probably just modify it to accept axes as parameters.

···


Sent from Mailbox

On Tue, Mar 17, 2015 at 1:36 AM, Sudheer Joseph <sudheer.joseph@…9…> wrote:

Hellow Paul,

             I thought I should show an example plot which shows the idea of what I was asking about corrplot. Below link shows it.

http://matplotlib.org/examples/pylab_examples/multi_image.html


On Tue, 17/3/15, Sudheer Joseph <sudheer.joseph@…9…> wrote:

Subject: Re: [Matplotlib-users] Corr plot in subplot

To: “Paul Hobson” <pmhobson@…287…>, “Adam Hughes” <hughesadam87@…287…>

Cc: “Matplotlib Users” matplotlib-users@lists.sourceforge.net

Date: Tuesday, 17 March, 2015, 8:31 AM

Hi Paul,

             I could not succeed in

plotting corrplot.Corrplot(df,ax=ax1).

infact the plotting procedure is

c=corrplot.Corrplot(df,ax=ax1)

then issue command

c.plot().

So there are 2 steps involved, which may be the

complication. I am not very well versed with Matplotlib.

Kindly help.


On Fri, 13/3/15, Adam Hughes <hughesadam87@…287…> > > wrote:

Subject: Re:

[Matplotlib-users] Corr plot in subplot

To:

“Paul Hobson” <pmhobson@…287…>

Cc: “Sudheer Joseph” <sudheer.joseph@…9…>,

“Matplotlib Users” matplotlib-users@lists.sourceforge.net

Date: Friday, 13 March, 2015, 7:06 PM

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 <pmhobson@…287…>

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 <sudheer.joseph@…9…> > > 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®,Tel:+91-40-9440832534(Mobile)

E-mail:sjo.India@…287…;sudheer.joseph@…9…

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

Matplotlib-users@lists.sourceforge.net

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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users