Questions tagged [column]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
52 views

How to export the data of a contour plot from Wolfram Mathematica?

I want to export the data of a contour plot that I made in Mathematica to graph it in another program. But when export the .dat, in which I want 3 columns to make the contour plot, it exports more ...
ssj's user avatar
  • 1
0 votes
0 answers
60 views

How to take an average of certain columns from multiple files?

I have many text files of tables, 300 rows long and 5 columns across. I can import all the files together as they're all named similarly. I would like to average column 2 of every file together, ...
Claudia's user avatar
  • 31
3 votes
1 answer
95 views

Force placed Legend into one column

I have a complicated plot (originally a ListLogPlot using many options) with now twelve curves and I would like to force the legend to be displayed in one single column. Here, I tried to formulate a ...
Lea's user avatar
  • 942
3 votes
2 answers
52 views

GraphicsColumn - Multiline text isn't adapting based on overall column size

I'm trying to use Graphics Column to add a label under my plots. Eventually these individual columns will be combined in a grid, and I want the height of each plot to be the same so I can compare data ...
user2933940's user avatar
0 votes
0 answers
32 views

Column only show one line for multi-line string

Column[{"abc"}] shows abc But Column[{"a\nb\nc"}] only shows ...
matheorem's user avatar
  • 16.9k
3 votes
1 answer
36 views

Retain Values in new column when Appending a column to an existing dataset

I am working on a basketball data set. I am trying to append a "Class" column which looks at the "Pos" column and assigns a 1 if a forward (C, PF, SF) or a 2 if a guard (PG, SG). I ...
elle_smith's user avatar
2 votes
2 answers
184 views

Replacing a column in a matrix by its Log [closed]

I have a nx3 matrix (called Plottable) filled with non-negative reals and I am trying to change the third column to its logarithm, but the /. operator doesn't change anything in the matrix. If I try ...
Marek Kuchař's user avatar
1 vote
1 answer
149 views

Listplot legend in one column

I am trying to plot multiple curves with ListPlot. Since I have 12 curves to plot, the legend appears in two columns. I looked into this solution but it does not work with Listplot. Can anyone help? ...
saeid 's user avatar
  • 37
5 votes
1 answer
89 views

How can I separate expressions in Module without suppressing output?

I want to show a progress indicator while statements in a Module are processed. Outside a Module this ca be done like this: ...
Adalbert Hanßen's user avatar
7 votes
0 answers
200 views

How to format notebook like ACL Papers?

I typically use the ICML or ACL paper format in latex which is two-columns (shown below). Is there anyway to get a two column stylesheet that looks similar?
M.R.'s user avatar
  • 31k
0 votes
2 answers
82 views

Can I save data as a three-column matrix?

I need to store values of a function of x and y defined as f[x_, y_] := Sin[Pi*x/3]*Sin[Pi*y/3] at the following points ...
slow_learner's user avatar
2 votes
2 answers
142 views

How to split many controls in Manipulate into multiple columns (saw some potential bugs)

I need to use Manipulate[] with many controls, because I have around 40 parameters which I want to be able to alter. Since the number is too large, I want to split these controls into multiple columns,...
larry's user avatar
  • 695
0 votes
0 answers
168 views

Multiple animations in Mathematica rows and columns

I am trying to generalize the problem on this thread: Multiple animation in Mathematica by including additional plots on the right-hand side of the main plot (the gaussian one). For ease, I will be ...
tupoliedro's user avatar
0 votes
0 answers
49 views

How can I get the rows with specific elements in dataset

As you can see from the picture, I want to get the rows in a14 that contains all of the a15 elements in them. By the way a15 is a part of the 1st column of a14. ...
Liming Zhou's user avatar
-2 votes
2 answers
405 views

Import data from a formatted text file into a dataset

As you can see from the picture, it's a txt. file, and when I use Import, lot's of different type of data stored in one column, I want to devide them into different columns. For example: the 1st ...
Liming Zhou's user avatar
1 vote
1 answer
58 views

Columned text not showing up in Manipulate plot variable label

I can't figure out why my columned text in the variables of my Manipulate plot are not showing up. In the labels for the variables, I set columns but only the top set of text is showing up. For ...
Ashna Reddy's user avatar
9 votes
2 answers
1k views

Delete column from a dataset in mathematica

Hi, can anyone help me with this? I want to delete the column "FIPS" and "Admin2", and keep the dataset as the original. How would I do this? ...
jfm's user avatar
  • 101
0 votes
1 answer
54 views

Intersection point across two diagrams with manipulate: Problems with Coordinates

I am trying to highlight the intersection point (point, dashed lines) in the bottom diagram and the the corresponding point in the top diagram. Unfortunately, I am creating lots of error messages in ...
Tom's user avatar
  • 307
9 votes
4 answers
358 views

How to convert a Dataset into an indexed dataset / association-of-associations given a column header?

Given a dataset as such If "letter" is the header that is chosen, how do I convert it into an indexed dataset / association-of-associations? i.e. How do ...
IntroductionToProbability's user avatar
12 votes
3 answers
517 views

What is a good way of perfoming operations on specified columns of a table with many columns

If I have a table of data and I want to do a specific operation on say the third column, I usually do something like this: ...
user27119's user avatar
  • 2,480
4 votes
3 answers
758 views

Export output to a text file

I have the following output obtained after optimizing the positions of geometry using Minimize command ...
Natasha's user avatar
  • 329
4 votes
2 answers
114 views

Building a matrix from the columns of others

A is a n x m matrix, B is a matrix p x m, I wish to build C from appending the ith column of A and ith column of B, for all i ...
Xavier's user avatar
  • 41
3 votes
1 answer
133 views

TagBox Column and comments

This provides a useful input format, extendable with Ctrl+Enter: ...
Mr.Wizard's user avatar
  • 269k
2 votes
1 answer
51 views

How to enforce size of a ClickPane inside a Column

I would like to use an image as a ClickPane, inside a column. I want the image to appear at its native size. Outside of the column, this works: ...
abwatson's user avatar
  • 1,889
4 votes
1 answer
182 views

Change number of columns in grid

I'm looking to make a grid where the number of columns change, but the grid spacings remain roughly the same. Essentially, something like SpanFromLeft, but applied to an entire row rather than a ...
ChaSta's user avatar
  • 1,031
3 votes
1 answer
265 views

How to Subtract column from another in dataset

I want to subtract the "assigned_ts" values from the "closed_ts" column and paste the results in seconds into the column with the "difference_ts" header.
Evil Babka's user avatar
3 votes
1 answer
306 views

Identify maximum difference in Matrix

i am trying to find the Maximum difference between two matrices and identify where this maximum occurs. I illustrate what I mean using an example. Given ...
user34047's user avatar
  • 335
2 votes
2 answers
84 views

Table counting divisors

I have a simple table that I can't quite make work. Columns are as follows A function returning 1 if x divides ...
Richard Burke-Ward's user avatar
2 votes
2 answers
440 views

Normalize a vector: error [duplicate]

I have this simple example in which I am trying to write a column vector (ket vector) and then I want to normalize it. It seems that ther is something wrong, leading to an error message "The first ...
H. Kenan's user avatar
  • 663
4 votes
3 answers
452 views

using DeleteCases to delete vectors with particular index as 0

Assume I have a set of vectors set = {{0,1,1,0,1}, {1,0,1,1,1}, {1,1,1,1,0},{1,0,0,1,0}}. I want to delete the vectors which have the last entry as 0. In the ...
cleanplay's user avatar
  • 650
3 votes
0 answers
212 views

How can I vary the height of items in a GraphicsColumn?

I would like to create graphics that look like this: g = Grid[{{"Circle"}, {Graphics[Circle[]]}, {x^2 + y^2 == r^2}}, Frame -> All] But when I use this code, ...
Stanley Rabinowitz's user avatar
2 votes
1 answer
149 views

How do I copy a mathematica column to paste in excel?

I have a list of elements that I transform into a column: a = {1, 2, 3, 4, 5} Column[a] 1 2 3 4 5 How do I print this column so it can be copy-pasted in ...
nac001's user avatar
  • 123
0 votes
1 answer
79 views

Interactive plot labels

This question was inspired by this answer. Consider we have set of data: data = RandomReal[1, {10, 5}] Command which allows to plot arbitrary the columns is <...
John Taylor's user avatar
  • 4,984
3 votes
2 answers
1k views

ListPlot using given columns of the data with many columns

Consider we have a table table1 with $n$ columns. I want to ListPlot two given columns from the table. For example ...
John Taylor's user avatar
  • 4,984
14 votes
2 answers
384 views

Column makes fonts smaller

When you use Column (or Grid) a previously styled element with explicit font-size setting appears much smaller. Here is an ...
halirutan's user avatar
  • 112k
1 vote
1 answer
73 views

How to discard values from a matrix (column) using specific conditions

EXPLANATION OF THE PROBLEM: I have an oscillating function, defined as $f(x)$; that function is also “periodic”, with period T and $f(x)=f(x+T)$. The function is ...
user45539's user avatar
1 vote
0 answers
79 views

How to plot data from table dynamically, without knowing how many columns are there?

I'm trying to read coordinates at certain times of Planets and Plot the orbit into a graph. For this example I'm doing this for eight planets, some coordinates from a table of some timesteps of the ...
T-Dog's user avatar
  • 33
1 vote
1 answer
142 views

separating a `ReadList` of a CSV file into columns using `Case`

I have a really large file and would like to determine the pattern required for separating the columns by the different headers. I attempted to use Cases but it's ...
Physkid's user avatar
  • 670
5 votes
2 answers
218 views

How to replace columns of a matrix with an unsorted ordered list.

I have a matrix that I would like to replace the values of each column with where they are in an ordered list of values from least to greatest. For example, if I have ...
Megan's user avatar
  • 51
4 votes
2 answers
375 views

How to delete duplicates of certain values in list of lists in a specific column of all sublists?

Let's say I have a list of lists like data={{1,0},{2,1},{2,0},{3,0},{4,0},{5,1},{5,0},{6,0},{7,0},{8,1},{8,0},{9,3},{9,2},{9,1},{9,0},{10,0}}; with varying ...
ANewb's user avatar
  • 77
2 votes
1 answer
4k views

Multiple Functions and Plots in Manipulate with multiple parameters

...
Manuel Fülling's user avatar
0 votes
0 answers
166 views

Designing a Manipulate Block

I am trying to create a Manipulate block which contains tabels, graphs and explanations. In the first row I want to add some tables and explanations, but sometimes the tabels are cut. For doing this I ...
kobibo's user avatar
  • 215
-3 votes
2 answers
200 views

How to make a list of columns [closed]

I have three functions: n, n^2, n^3. Range is 20 numbers. My task is to make a list of columns of n, n^2, n^3 for numbers n upto 20. It supposed to look like this:
Artem Anisimov's user avatar
0 votes
1 answer
1k views

Help: Shifted columns values of a dataset [closed]

How do i add a new column to a Dataset that is the shifted version of another column with nulls placed in missing places. (just like the function shift in pandas in ...
user13892's user avatar
  • 9,043
2 votes
3 answers
1k views

Change entire column of matrix using its own elements for calculations [duplicate]

I am aware that there are discussions here about multiplying rows or columns in matrices, but I cannot figure out what to do in the following two cases. I have a matrix, lets say ...
Fierce82's user avatar
  • 543
6 votes
1 answer
69 views

How can I prevent SlideView from undoing column spacings?

I am putting together a presentation with SlideView. Within many of the slides I have calls to Column using the ...
GFurnas's user avatar
  • 301
3 votes
2 answers
466 views

Switch Orientation of Rows/Columns in Grid, Column layout constructs

Column layout construct has the BaselinePosition option where you can specify the origin placement for the "bars", e.g. Bottom (Vertical orientation). Here is some data to play with: ...
Athanassios's user avatar
  • 1,291
4 votes
2 answers
440 views

Add columns with dummies and specific headers to dataset

I got a dataset that looks like the following example: ...
Murr's user avatar
  • 43
-2 votes
1 answer
111 views

Plotting output in two columns beside each other from a for loop [closed]

How can I have the output plots in two columns instead of having the plots in a sequence? Like the following: []
faf's user avatar
  • 91
1 vote
1 answer
154 views

Column (and Grid) Alignment Changes with OpenerView

Column does not maintain Alignment settings when OpenerView opens and closes. ...
Edmund's user avatar
  • 41.5k