signal ylabel being truncated

Hello Jon,

maybe I don't undestand correctly, but try to use more space left of the axes
to avoid the disappering of the ylabel like:
ax1 = fig.add_axes([0.3, 0.7, 0.6, 0.2])
instead of
ax1 = fig.add_axes([0.1, 0.7, 0.8, 0.2]) .
That should be a solution, if you have not too different (considering their
length) ylabels.

regards Matthias

PS: By the way, it might be useful to you to change the figure size with the
keyword argument figsize of figure ( like fig=figure(figsize=(12, 6)) ).

···

On Thursday 15 May 2008 15:10:47 Jon Choy wrote:

  Yes, something I forgot to add is that I tried to resize the window
and a couple more characters would show; but not the entire string.
I'm trying to do multiple plots. Below is a signal named
"pesm_gsm_prime" which is a good example of a signal with lots of
characters. Unfortunately, I would like to preserve the name if
possible and adjust the graphing frame if possible.

Jon

t = signals[signal][0]
s1=signals[signal][1]

fig = figure()
yprops = dict(rotation=0,
  horizontalalignment='right',
  verticalalignment='center',
  clip_on = False,
  fontname='courier')
axprops = dict(yticks=)
ax1 =fig.add_axes([0.1, 0.7, 0.8, 0.2], **axprops)
ax1.plot(t, s1)
ax1.axis([0,10000,-0.1,1.1])
ax1.set_ylabel(signal, **yprops)

axprops['sharex']=ax1
axprops['sharey']=ax1
# force x axes to remain in register, even with toolbar navigation

signal = "pesm_gsm_prime"
signals[signal]=,
for line in filedata:
   loadValueChange(signals,signal,line)
t = signals[signal][0]
s2=signals[signal][1]

ax2=fig.add_axes([0.1,0.5,0.8,0.2],**axprops)
ax2.plot(t,s2)
ax2.axis([0,10000,-0.1,1.1])
ax2.set_ylabel(signal,**yprops)

for ax in ax1,ax2:
   setp(ax.get_xticklabels(),visible=False)

#show()
savefig('testplot.png')

On Thu, May 15, 2008 at 2:35 AM, Matthias Michler wrote:
> Hi Jon,
>
> On Thursday 15 May 2008 03:17:29 Jon Choy wrote:
>> I maybe asking a dumb question, forgive me I'm a novice. I try to add
>> a ylabel and the left portion of the signal name is cut off when it is
>> plotted. I can't seem to find the option for displaying the whole
>> signal. Or do I need to resize the plotting window?
>
> I think resizing the window is a good first attempt to see, if there is
> everything written, but not shown to you.
> Is your ylabel a very long string? Could you provide a small stand-alone
> example of your problem, please?

And if you are using subplots, you can move the left over a bit:

fig.subplots_adjust(left=0.2)

···

On Thu, May 15, 2008 at 8:29 AM, Matthias Michler <MatthiasMichler@...361...> wrote:

Hello Jon,

maybe I don't undestand correctly, but try to use more space left of the axes
to avoid the disappering of the ylabel like:
ax1 = fig.add_axes([0.3, 0.7, 0.6, 0.2])
instead of
ax1 = fig.add_axes([0.1, 0.7, 0.8, 0.2]) .