ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 02 May 2020 17:11:32 +0200Table with multi-line/column headerhttps://ask.sagemath.org/question/51212/table-with-multi-linecolumn-header/ This is a nice table
T = [[0,0,5,3],[3,1,5,4],[4,4,6,2],[4,2,7,8],[5,4,6,6],[7,5,8,9]]
t = table(T, header_row=[r'$B_1$',r'$B_2$',r'$B_3$',r'$B_4$'], header_column=[r'$A_{11}$', r'$A_{12}$',r'$A_{13}$', r'$A_{21}$', r'$A_{22}$',r'$A_{23}$'], frame=True)
show(t)
But in the doc I havent seen how to add a multicolumn or multirow header for all the index or only for a subsetCyrilleSat, 02 May 2020 17:11:32 +0200https://ask.sagemath.org/question/51212/Incorrect graph structurehttps://ask.sagemath.org/question/43203/incorrect-graph-structure/ Hi. I have done some research on how to build my graph based on the info i obtained from http://doc.sagemath.org/html/en/reference/plotting/sage/plot/plot.html
Here is what I have done :
h=plot(x, (x,-73.83,73.83),linestyle="--")
g=plot(-0.7350*x+67, (x,-73.83,73.83),linestyle="--")
r=list_plot([(11.13,58.82),(4.99,10.03),(17.24,42.79),(23.80,-73.83),(57.84,-37.82)], axes_labels=['(+) GE','(+) CE']))
r += text('A CMSCI = 0.131', (11.135, 58.82))
H = h + g + r;H
print(H)
which gave me this below:
![image description](/upfiles/15329065617843971.jpg)
It looks almost the same as how i want it to be which is (at least the lines and the points are there (haha)):
![image description](/upfiles/15329063504510735.jpg)
Few questions here:
1. how to scale the axis properly. my y-axis is wider than x-axis
2. how to form the outer box and add P, Q, R, S labels
3. i manage to form the axis title only for (+)GE and (+)CE, how about the (-) ones?
Thank you.
ShaMon, 30 Jul 2018 01:27:41 +0200https://ask.sagemath.org/question/43203/How do I work with the character tables of Weyl groups in Sage to compute restrictions to parabolic subgroups?https://ask.sagemath.org/question/10622/how-do-i-work-with-the-character-tables-of-weyl-groups-in-sage-to-compute-restrictions-to-parabolic-subgroups/The question is essentially what is in the title. To be more concrete, let's start with the Weyl group of type $E_6$. This contains a parabolic subgroup of type $D_5$. I know how to look at the character tables of these groups using sage: for instance
W=WeylGroup(["E",6]);
ctE6=W.character_table();
ctE6
and I can do the same thing with $D_5$, of course. Also, I can realize $D_5$ as the subgroup of $W$ generated by five of the simple reflections. The problem is that I don't know how to get Sage to tell me which elements are in the conjugacy class (for example) labelled 6b in the E6 table---all I know about this class is that it consists of elements of order 6. For my purposes, I really need to know *which* elements these are, in matrix form, so that I can restrict the characters to $D_5$ and expand the result there in terms of irreducible $D_5$ characters.StephenThu, 17 Oct 2013 21:05:04 +0200https://ask.sagemath.org/question/10622/