Hello,
I have six subplots in my canvas, and wondering how to place a common ylabel into the canvas in matplotlib? (Let say instead of having six same text on the y-axes just to replace them with one bigger text encompassing all six y-axes.)
Is this available in ml or am I too blind to see this feature?
Thanks,
Gökhan
Does this get you close? It seems what your trying to do might be a bit ambiguous, but I understand the problem with the y-axis when there are lots of subplots.
Maybe it would be better to change the y-ticker to make fewer ticks or the labels to be smaller.
-Chip
from matplotlib import pyplot as plt
t = [0,1]
y=[0,1]
fig = plt.figure()
plt.axes([0.1,0.1,0.8,0.8], frameon=True, axisbg='w')
ax = fig.add_subplot(211)
plt.setp(ax.get_yticklabels(), visible=False)
plt.plot(t,y)
ax = fig.add_subplot(212)
plt.setp(ax.get_yticklabels(), visible=False)
plt.plot(t,y)
plt.show()
Gökhan SEVER wrote:
···
Hello,
I have six subplots in my canvas, and wondering how to place a common ylabel into the canvas in matplotlib? (Let say instead of having six same text on the y-axes just to replace them with one bigger text encompassing all six y-axes.)
Is this available in ml or am I too blind to see this feature?
Thanks,
Gökhan
------------------------------------------------------------------------
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
I don't know if there is a betteer way to do it, but I think you can
just attach a text artist to the figures canvas.
Best,
J.
···
On Mon, Mar 9, 2009 at 12:15 PM, Gökhan SEVER <gokhansever@...287...> wrote:
Hello,
I have six subplots in my canvas, and wondering how to place a common ylabel
into the canvas in matplotlib? (Let say instead of having six same text on
the y-axes just to replace them with one bigger text encompassing all six
y-axes.)
Is this available in ml or am I too blind to see this feature?
Thanks,
Gökhan
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options