Ask Your Question
1

Table intercolumn spaces

asked 2 years ago

Cyrille gravatar image

This code

A = matrix([[3, 1], [0, 2]])
B = matrix([[2, 1], [0, 3]])
bots = NormalFormGame([A, B])
botsr=[[tuple(bots[(0,0)]),tuple(bots[(0,1)])],[tuple(bots[(1,0)]),tuple(bots[(1,1)])]]
t=table(botsr,header_row=['Boxe','Ballet'],header_column=['',r'<b> Boxe</b>',r'<b> Ballet</b>'])
show(t)

produce thisimage description. is ther a way to shorten the space between columns because it's ugly

Preview: (hide)

Comments

I do not see the problem at Sagecell - check this out: https://sagecell.sagemath.org/?q=silxnf

Max Alekseyev gravatar imageMax Alekseyev ( 2 years ago )

Indeed there is no problem in SageCell. But with SageMath version 9.7 with docker there is a problem

Cyrille gravatar imageCyrille ( 2 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 2 years ago

achrzesz gravatar image

In sage 9.8 the workaround works for me:

A = matrix([[3, 1], [0, 2]])
B = matrix([[2, 1], [0, 3]])
bots = NormalFormGame([A, B])
botsr=[[tuple(bots[(0,0)]),tuple(bots[(0,1)])],[tuple(bots[(1,0)]),tuple(bots[(1,1)])]]
import pandas as pd
jpm=pd.DataFrame(botsr, columns=['Boxe', 'Ballet'])
jpm.index = ['Boxe', 'Ballet']
jpm
Preview: (hide)
link

Comments

Of course it works also for me. But you use Pandas. Because of that I hesitate to say that your answer is a good one. I think there is a bug in Sagemath Table at least for v.9.7

Cyrille gravatar imageCyrille ( 2 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2 years ago

Seen: 569 times

Last updated: Jun 01 '23