add table to axes

Hi,

I’m trying to add some notes in a table to a plot, and I don’t know how to use the “'matplotlib.pyplot.table” command.

I really don’t want to use ax.text(…) with different x,y values…

Any suggestions? Example to table command, insert LaTex tables, Etc.

Thanks,

Sahar

···

This e-mail message may contain confidential,and privileged information or data that constitute proprietary information of CMT Medical Ltd. Any review or distribution by others is strictly prohibited. If you are not the intended recipient you are hereby notified that any use of this information or data by any other person is absolutely prohibited. If you are not the intended recipient, please delete all copies. Thank You. http://www.cmt.co.il



This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.


Hi,

I'm trying to add some notes in a table to a plot, and I don't
know how to use the "'matplotlib.pyplot.table" command.
I really don't want to use ax.text(...) with different x,y
values...

Any suggestions? Example to table command, insert LaTex tables...

I think the LaTeX root might be a good one. Set your usetex to True in rcParams and make a separate file (table.tex).
Then use:

figure.figtext(fig_x, fig_y, r'\input{table.tex}')

I haven't tested this, but it seems like it should work. I'd be curious to hear how it goes.
-paul h

···

From: Sahar [mailto:sahar@…2540…]
Sent: Monday, November 23, 2009 7:20 AM
To: matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] add table to axes

Take a look at the table demo:

http://matplotlib.sourceforge.net/examples/pylab_examples/table_demo.html

···

On Mon, Nov 23, 2009 at 9:20 AM, Sahar <sahar@...2540...> wrote:

Hi,

I'm trying to add some notes in a table to a plot, and I don't know how to
use the "'matplotlib.pyplot.table" command.
I really don't want to use ax.text(...) with different x,y values...

Any suggestions? Example to table command, insert LaTex tables, Etc.

All posted versions (PNG, hi res PNG, PDF) are improperly clipped.

fwiw,
Alan Isaac

···

On 11/23/2009 4:33 PM, John Hunter wrote:

Take a look at the table demo:

http://matplotlib.sourceforge.net/examples/pylab_examples/table_demo.html