<div dir="ltr">Sorry, got busy on other things.  The title seems to be clipped by the top axis.  Maybe I can make a screenshot.</div><br><div class="gmail_quote"><div dir="ltr">On Sun, Jun 10, 2018 at 11:21 AM Thomas Caswell <<a href="mailto:tcaswell@gmail.com">tcaswell@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Neal,<div><br></div><div>Can you reproduce this with random data?  From which side is the text clipped?</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 8, 2018 at 8:18 AM Neal Becker <<a href="mailto:ndbecker2@gmail.com" target="_blank">ndbecker2@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Neal Becker wrote:<br>
<br>
> I haven't been able to reproduce yet in a minimal example, but in this<br>
> code, if markers are used in the plot, then the title is clipped off and<br>
> not shown.  If the markers= is commented out, then the title is fine.  I<br>
> know it's clipped, because if I specify<br>
> set_title ('blah', y=0.5) < set y to something < .95<br>
> Then the title is displayed (but in the wrong position).<br>
> <br>
> So, if markers are present, title is clipped off.  No markers, title is<br>
> fine.<br>
> <br>
> My code is here (you can't run it I'm afraid):<br>
> <br>
> matplotlib=2.2.2<br>
> <br>
> import pandas as pd<br>
> <br>
> def do_plot(other_csv, mine_xlsx, name):<br>
>     df_tdla_96 = pd.read_csv (other_csv)<br>
>     df_tdla_96_mine = pd.read_excel (mine_xlsx)<br>
>     df_tdla_96_mine = df_tdla_96_mine[['esno_corrected', 'per']]<br>
>     df_tdla_96_mine.rename (index=str, columns={'esno_corrected' : 'SNR',<br>
> 'per' : 'Hughes'}, inplace=True)<br>
>     df_tdla_96.drop(labels='Hughes', inplace=True, axis=1)<br>
>     df_tdla_96_merge = pd.merge(left=df_tdla_96, right=df_tdla_96_mine,<br>
> on='SNR')<br>
>     from matplotlib.lines import Line2D<br>
>     from itertools import cycle<br>
>     m_cycle = cycle(Line2D.filled_markers)<br>
>     import matplotlib.pyplot as plt<br>
>     fig, ax = plt.subplots()#, sharex=True)<br>
>     for company  in df_tdla_96_merge.columns[1:]:<br>
>         df = df_tdla_96_merge[['SNR', company]]<br>
>         ax.semilogy(df['SNR'], df[company], marker='x')<br>
>     ax.set_title('Simple plot')<br>
>     #ax.set_title('blah', fontsize=12, y=0.95)<br>
>     # ax.set_xlabel('SNR')<br>
>     # ax.set_ylabel('BLER')<br>
>     # ax.legend(loc='best')<br>
>     #fig.suptitle('blah', fontsize=12, x=0.5, y=0.9)<br>
>     ax.grid()<br>
>     #plt.tight_layout()<br>
>     plt.show()<br>
> <br>
>     #plt.tight_layout()<br>
>     #plt.savefig('tdla_96.pdf')<br>
> <br>
> do_plot('tdla_96_other.csv', 'tdla_96_mrc_wiener.xlsx', 'TDLA 96 CP-OFDM')<br>
<br>
It appears adding ax.set(clip_on=False) fixes it, but this bug seems very <br>
strange.<br>
<br>
<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>
</blockquote></div>