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.Sun, 09 Oct 2016 11:27:02 +0200How can I make html.table(data, header = ["header 1",...,"header n"]) generate the COLSPAN attribute in the header line?https://ask.sagemath.org/question/35097/how-can-i-make-htmltabledata-header-header-1header-n-generate-the-colspan-attribute-in-the-header-line/ I love html.table(data, header = ["header 1",...,"header n"]) but I cannot figure out right now how to make it generate the html COLSPAN attribute when I want a cell of my header line spread across several columns.
E.g. consider a table of values of the functions f(x,y,z), g(x,y,z), h(x,y,z). The table has 3 columns with headers x, y, z and 3 columns with headers f, g, h. How can I add another header line at the top with titles "variables" and "values" that both spread across 3 columns?John DoeSun, 09 Oct 2016 11:27:02 +0200https://ask.sagemath.org/question/35097/Changes in figure HTML layout in 6.5?https://ask.sagemath.org/question/26217/changes-in-figure-html-layout-in-65/ I am trying to layout the figures drawn by plot() using raw html. In 6.3 and 6.4 it worked, but got broken in 6.5. My code is:
html('<table><tr><td><table><tr><td>')
plot(sin).show(figsize=[2,1.4])
html('</td></tr><tr><td>')
plot(cos).show(figsize=[2,1.4])
html('</td></tr></table></td><td>')
print(version())
print('Plots of sine and cosine\nare to the left ')
html('</td></tr></table>')
In 6.3, the <img> tags are embedded exactly into the places where the show() function is called, but in 6.5 all the figures are in the end and not embedded into the table. Was this change intentional? Can anyone propose a workaround? My application relies a lot on such formatting.ADuC812Tue, 17 Mar 2015 14:30:00 +0100https://ask.sagemath.org/question/26217/LaTeX table from an HTML tablehttps://ask.sagemath.org/question/9514/latex-table-from-an-html-table/Dear all:
I've made an html.table in my SAGE session, and I'd like to "export" it as LaTeX code.
Is it possible?
Thank you.DoxThu, 08 Nov 2012 13:28:33 +0100https://ask.sagemath.org/question/9514/side by side html tableshttps://ask.sagemath.org/question/8316/side-by-side-html-tables/Is there a way to display two html tables (of different sizes) side by side?
Here is a simple, silly example. Can I display the arrays below in side by side tables?
a=[[i,i^2] for i in range(0,10)]
b=[[i,i^3] for i in range(0,15)]
html.table(a)
html.table(b)
calc314Sun, 11 Sep 2011 22:51:30 +0200https://ask.sagemath.org/question/8316/html.table() in sage???https://ask.sagemath.org/question/8212/htmltable-in-sage/Hi group:
I need make the table in sage. I have var that run, so I generated the header problems. these problems do not occur when I remove the header.
my code is:
with header
sage: html.table([("A","B","C","D")],[(k,j,find_minimum_on_interval(Vp(r, 1, 0.33, k/10, 1, (2*j)/10),0,5,tol=0.0000000003, maxfun=500)[0] ,find_minimum_on_interval(Vp(r, 1, 0.33, k/10, 1, (2*j)/10),0,5,tol=0.0000000003, maxfun=500)[1]) for k in [1..2] for j in [1..2] ])
without header
sage: html.table([(k,j,find_minimum_on_interval(Vp(r, 1, 0.33, k/10, 1, (2*j)/10),0,5,tol=0.0000000003, maxfun=500)[0] ,find_minimum_on_interval(Vp(r, 1, 0.33, k/10, 1, (2*j)/10),0,5,tol=0.0000000003, maxfun=500)[1]) for k in [1..2] for j in [1..2] ])
thank
sir jazsTue, 05 Jul 2011 19:43:55 +0200https://ask.sagemath.org/question/8212/