Questions tagged [tabular]

Tabular indicates a display format that mimics a table entity.

A tabular format is something which mimics the appearance of a table entity.
All the data are shown in rows each of which is made of columns (or fields).

1367 questions
23
votes
2 answers

How can I select multiple lines that are not in a continuous chunk?

I am trying to select multiple lines that are not in a continuous chunk. E.g., I want to select line 1 and 3 simultaneously without selecting line 2: 1. this is line 1 2. this is line 2 3. this is line 3 Initially I thought this would be a…
K Z
  • 29,661
  • 8
  • 73
  • 78
22
votes
6 answers

Display matrix with row and column labels

Is there a convenient way to display a matrix with row and column labels in the Matlab terminal? Something like this: M = rand(5); displaymatrix(M, {'FOO','BAR','BAZ','BUZZ','FUZZ'}, ... {'ROW1','ROW2','ROW3','ROW4','ROW5'}); …
nibot
  • 14,428
  • 8
  • 54
  • 58
19
votes
4 answers

NumPy: Pretty print tabular data

I would like to print NumPy tabular array data, so that it looks nice. R and database consoles seem to demonstrate good abilities to do this. However, NumPy's built-in printing of tabular arrays looks like garbage: import numpy as np dat_dtype = { …
Mike T
  • 41,085
  • 18
  • 152
  • 203
19
votes
5 answers

Scala: Draw table to console

I need to display a table in a console. My simple solution, if you would call it a "solution", is as follows: override def toString() = { var res = "\n" var counter = 1; res += stateDb._1 + "\n" res += " …
evildead
  • 4,607
  • 4
  • 25
  • 49
18
votes
4 answers

How to find the 3rd occurrence of a pattern on a line

Today I had to align a table at only the first multiple spaces on a line. p.e. move window three lines down move window one page down move window three lines…
Reman
  • 7,931
  • 11
  • 55
  • 97
18
votes
3 answers

Python: limit the width of printed columns of pandas DataFrame

I am trying to print a pandas DataFrame. One of the columns is too wide (it is a very long string). To print I am using tabulate library. But when it is printed it shows the whole content of all columns in one very long line. Here is what I…
TJ1
  • 7,578
  • 19
  • 76
  • 119
17
votes
2 answers

Drawing tables in terminal using ANSI box characters

I'm trying to print a table that's more pleasant to the eye than the pure text representation of it. basically I want to convert something like this: +-----+--------+ | age | weight | +-----+--------+ | 10 | 100 | | 80 | 500 …
Allen Bargi
  • 14,674
  • 9
  • 59
  • 58
17
votes
2 answers

Centering Text Horizontally and Vertically in LaTeX

I would like to produce the following: a b xxxxx xxxxx 1 xxxxx xxxxx xxxxx xxxxx xxxxx xxxxx 2 xxxxx xxxxx xxxxx xxxxx Where the blocks of 'x's are images, and 'a', 'b', '1' and '2' are text. Here are my…
Paul
  • 16,285
  • 13
  • 41
  • 52
17
votes
4 answers

vim tabular only on the first match on the line?

I'm trying to format some python code with the tabular.vim plugin. It's currently a sqlalchemy declarative class, and looks something like this: id = db.Column(db.Integer, primary_key=True) status = db.Column(db.Integer, nullable=False,…
Hoopes
  • 3,943
  • 4
  • 44
  • 60
16
votes
4 answers

Vertical and Horizontal Headers in a table?

How would I get a table with both horizontal and vertical headers? So e.g. header1 header2 header3 header1 1 1 1 header2 2 2 2 header3 3 3 3
will_code_for_food
  • 171
  • 1
  • 1
  • 3
16
votes
1 answer

How can I create a dynamic weekly schedule in HTML and Javascript?

It's simple to create a table based layout for a weekly calendar with 7 columns for each day of the week and various rows for each hour of the week. I have no problem creating that. The hard part is filling in this table with daily 'events'…
whoabackoff
  • 1,603
  • 4
  • 17
  • 32
16
votes
1 answer

How do you vertically center text with an image in a LaTeX table?

I want to align text with the center of a large image in LaTeX. Unfortunately, the text some text is aligned with the bottom of the image: \begin{tabular}{cc} some text & \includegraphics{image_name.eps} \end{tabular} I've found a website that…
user
  • 7,123
  • 7
  • 48
  • 90
16
votes
5 answers

Getting two tables in LaTeX to have the same (right-aligned) column width

I have two very short and consecutive sections (for a CV), each containing a small table: \section{Work Experience} \begin{tabular}{r|p{11cm}} Current & Your job at Your Company, Town \\ Jan 2009 & What your company does \\ & A description of what…
vahidg
  • 3,953
  • 2
  • 22
  • 30
14
votes
1 answer

Group several same value field into a single cell

First of all, the records are shown in the table by table component but not in the report one. The results looks like this: YEARS MONTHS SUMMONTH SUMQUARTER ----- ------ -------- ---------- 2009 Jan 130984 432041 Feb …
user1264222
  • 225
  • 2
  • 4
  • 12
14
votes
2 answers

Pretty print table with awk

I want to print a table that looks like this: > field1 field2 field3 field4 > 11.79 7.87 11.79 68 > .. more numbers How can I arrange it that the captions for the columns are arranged in a way that puts them on top of the…
tarrasch
  • 2,630
  • 8
  • 37
  • 61
1
2
3
91 92