Specify and control how Mathematica formats its output, including rich text, equations and graphics.

learn more… | top users | synonyms

5
votes
2answers
119 views

Displaying a list of percentage values according to their classification

I have a list of percentages as follows: percent = {21.15, 42.3, 57.68, 73.06, 84.6, 90.37, 96.14, 99.99, 99.99, 99.99, 99.99} I want to classify these ...
2
votes
0answers
19 views

Page breaks and headings in long table or grid

I have a need for long tables in a document I am producing but I am having difficulty. The printed document ends up with page breaks midway through the table which cuts rows part way through. I'd also ...
1
vote
2answers
78 views

How can I remove the decimals in the frame ticks?

Is there any way to remove the decimal places in the frame ticks. I would like to make the y axis ticks integers. I use the following code. My only problem is how to manipulate the y axis without ...
0
votes
0answers
56 views

Is there a better way to get nice looking equations in output?

I use Mathematica regularly for my schoolwork, however it's arduous to use TraditionalForm[HoldForm[f[x]==x]] every time I want it to spit out a good-looking bit of ...
11
votes
2answers
433 views

How to add a vertical line to a matrix?

Today, I want to write a program to show the solving process of a the inverse of a matrix, and I use the Elementary Transformation, so I need to add a vertical ...
3
votes
1answer
41 views

Change Property without re-evaluating [duplicate]

I am working with ContourPlot3D, and my expression takes a long time to evaluate (nearly 20 minutes). So I am wondering if there is a method to changing format ...
13
votes
1answer
383 views

Formatting Framed - some FrameStyle graphic directives don't work?

The FrameStyle option in Framed seems to work for some graphics directives but not others, eg: Framed["yo", FrameStyle -> Blue] But ...
8
votes
2answers
99 views

How to sort arguments of Times in nonstandard order?

Is there an elegant way to sort the arguments of Times in e.g. TraditionalForm so that factors go to the front and state ...
15
votes
4answers
856 views

How to keep Collect[] result in order?

For example, Collect[(1 + x + Cos[s] x^2)^3, x] gives the result ...
-2
votes
3answers
64 views

Formatting Tables in Mathematica [closed]

Ok, I created a table Table[j, {i, 4}, {j, 3}] // TableForm and the result is fine, from 1-4 in each column. Now, what if I wanted to extend this table into ...
0
votes
3answers
77 views

Do not expand matrices in Mathematica calculation

Here is an example of a problem I'm having. Consider that I have defined: omega={{p[t]},{q[t]},{r[t]}} x={{a},{b},{c}} R={{1,2,3},{4,5,6},{7,8,d}} What I would ...
3
votes
1answer
69 views

Engineering notation in mathematica 10 [closed]

It seems there is a bug in Mathematica 10.0.2 which is unable to display EngineeringForm properly: ...
4
votes
1answer
62 views

How to set default PageWidth for InputForm?

We can control the page width used by InputForm by applying SetOptions to "stdout": ...
2
votes
1answer
132 views

FullForm in Linux Command Line with -noprompt

I am looking for a way to get the output of FullForm in Command Line under Linux (Debian) using -noprompt argument. Example : What I have : a+b*c What I want : ...
12
votes
2answers
145 views

How to create a dynamic expanding DisplayForm's styled like the ones in v10?

The display forms for objects like ClassifierFunction are nice clickable boxes I like this, and now I'm trying to create my a custom version of this for my ...
2
votes
0answers
22 views

Constructing new output object graphics [duplicate]

Occasionally, when you ask Mathematica to carry out a task for which there is no good compact representation for the output, it will generate a special icon in v10, or an abbreviation in lower ...
3
votes
4answers
232 views

Row and Column Headings for a Grid

It would be useful for me if I could write: Grid[{{a, b}, {c, d}, {e, f}}, GridHeadings -> {{"r1", "r2", "r3"}, {"c1", "c2"}}] just like ...
0
votes
3answers
73 views

Save a result containing HoldForm to a file

This is the workflow I have. Basically, I want the outputs of the polynomials I computed are in a specific order. (It is not the same one here, this is just an example.). ...
3
votes
1answer
99 views
1
vote
1answer
58 views

Displaying a matrix with integral entries

I have a matrix nxn with coefficients a[i,j] like: a[i,j]=NIntegrate[T[r], {r, -le, le}] - NIntegrate[T[r] Abs[r]/le, {r, -le, le}] I can solve the matrix but I ...
10
votes
5answers
215 views

Tidy form of numbers with errors using ScientificForm

Say I've computed something and got a number 0.02112398 with a computed error: 0.000331 Formatting it with ScientificForm[0.02112398 \[PlusMinus] 0.000331] gives ...
5
votes
1answer
68 views

Customized FortranForm output

Let's take the following example V = (-G*Mn)/Sqrt[x^2 + y^2 + z^2 + cn^2]; Vx = D[V, x]; FortranForm[Vx] The result is ...
7
votes
2answers
2k views

Formatting Ticks and FrameTicks labels with a function

Is there a convenient way to format tick labels? In this example I would like to use the default Mathematica tick intervals, but simply convert the X axis labels to strings with "s" added. As you ...
4
votes
2answers
77 views

How to scale multiple graphics to preserve relative sizes?

I'm looking for a simple way to make the displays of different Graphics expressions accurately reflect their relative sizes. (By "simple" I mean that it does not ...
5
votes
1answer
118 views

Set PlotTheme globally?

Can one set a default PlotTheme globally? While I recognize one can make lots of workarounds to sort of do this: Go to ...
5
votes
2answers
140 views

Showing AlgebraicNumber[1/2 (1 + Sqrt[5]), {-3, 2}] in human-readable way

Is there a function to show algebraic numbers in Mathematica more conveniently? I am looking for something similar to MatrixForm for matrices. For example, I would like to view ...
10
votes
3answers
449 views

Inconsistent display of TraditionalForm in version 9

After installing version 9, the default style sheet uses Arial font in text and formula cells. So far, so bad. At least one would hope this is done consistently. But now I see this: You can see ...
8
votes
3answers
203 views

Incompatibility of Row and TeXForm

Bug introduced in 9.0 and persisting through 10.1.0 or later Update: Since no one has been able to give a reason for this change in behavior or provide a solution I am tagging this as a bug. ...
2
votes
1answer
62 views

Change Tensor Product symbol for aesthetically pleasing output

I'm trying to find a way of keeping an ordered list of subscripted integers which can be outputted in an aesthetically pleasing way to make analysis easier. The idea is to have a list of numbers that ...
7
votes
1answer
82 views

Prepare mathematica output to be parsed in Python

I have Mathematica output that I would like to parse in python so I can generate equivalent expressions. So suppose I have the following: ...
5
votes
1answer
108 views

How to specify the square-bracket analogue of MatrixForm?

MatrixForm uses "round brackets" as delimiter. These are like parentheses, but contrary to "regular" parentheses, they stretch vertically to accommodate the height ...
0
votes
1answer
64 views

writing data in defined format into file

I have a code that writes datas into file using PutAppend[]. A simple form of the code is written below, ...
0
votes
0answers
45 views

Output of List formatted strangely

I'm running a monte carlo simulation which uses random input data and performs calculations on it, and then outputs a 100 by 100 sized array with my data. The code works without a problem but for some ...
2
votes
2answers
41 views

Format polynomial output for cutting and pasting into a text file

Suppose I have the polynomial given by the determinant of this matrix: matry = {{1 - R, 3, -3}, {1, 0 - R, 0}, {0, 1, 0 - R}} I am feeding the Mathematica output ...
0
votes
0answers
30 views

Mathematica hangs when computing page breaks

I'd like to set pagebreaks in my notebook according to my needs. But now I have huge problem with see print preview or saving as pdf because it gets stuck during computing page breaks on several dozen ...
0
votes
0answers
85 views

Are there examples that arrange graphs or plots with Mathematica?

If we have 4 graphs or output plots, could we arrange them and merge in one graph elegently?
2
votes
1answer
52 views

Change cell frame color in stylesheet

I am tryin to make a custom stylesheet but I am not able to get rid of the cell frame color from the base stylesheet. In particular I have, where I have changed the background color of the cell to ...
0
votes
2answers
111 views

Formatting the results from solving a differential equation

{{x[t] -> 600 (t + I π t - 50 Log[50] + t Log[50] + 50 Log[50 - t] - t Log[-50 + t])}} After solving a differential equation, I get an answer in a form where I ...
4
votes
4answers
5k views

How to export data files using specific format

Very often, I have to export data files from Mathematica. These output files contain several columns and hundreds of lines with data. For the sake of the question let's create a sample list ...
0
votes
1answer
56 views

Showing all Digits

What is the simplest method to display all digits by adjusting this code? t = Table[1 + 10^(-n), {n, 1, 10}] // TableForm Output: 1.1 1.01 1.001 1.0001 ...
4
votes
1answer
69 views

Continuous background color of adjacent cells

I'm trying to make continuous blocks of cells so that their background colors are the same, but without breaks of white space between them. E.g. After some recent digging, I found the option "Show ...
2
votes
1answer
49 views

How to write a function that returns the combined output of several built-in functions

I am trying to make a module that takes a Boolean function, and prints the following: the function's truth table the function's NOR epxression the function's minimal Disjunctive normal form So far ...
1
vote
1answer
62 views

Import a jpeg file and a mov file and display them side by side

I am planning to use Mathematica for a presentation. In one of the slides I need to place a jpeg file side by side to a mov file. ...
4
votes
2answers
49 views

How to print unevaluated arguments in the form they were originally typed in?

I'm looking for a way to print a function's arguments, not only unevaluated, but also in the way they were originally typed in. By way of experimentation, I tried stuff like this: ...
0
votes
0answers
28 views

Give the result in separate lines

I have the following command Reap[Do[If[GCD[i, 7280] == 1 && Mod[729*i, 7280] > i, Sow[{i, Mod[729*i, 7280]}]], {i, 0, 7280}]] which gives pairs ...
2
votes
2answers
229 views

How to make Mathematica show matrices and vectors nicely

It shows me like {{0}, {1}, {0}, {-1}} . Is it possible to make it look like a vector, always?
1
vote
1answer
44 views

Button labels in different platforms

if someone has Mathematica on a mac or a Linux system, could you please evaluate this code: ...
1
vote
3answers
85 views

how to create, print and use variables using a loop in Mathematica?

I want to create, print and be able to use (i.e. do symbolic operations) variables in Mathematica using a for loop or equivalent. So, I have a bunch of variables of this form: $$dS_i = -\beta_i ...