Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [output-formatting]

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

0
votes
1answer
42 views

Changing the layout of an array in output

I'm curious about the following: if I want to make a table described by the following code, ...
2
votes
1answer
82 views

How do I display multiple objects on one output line?

I am using WriteString to avoid automatic line change. But it seems like the it does not work with Style, like the following <...
0
votes
1answer
26 views

Line breaks in Print and PutAppend

This is probably a simple-minded question, but I've tried many things that haven't worked. In the output below, how does one add a line break before "points=..."? It will also need to work in ...
0
votes
2answers
59 views

How can I save values generated by a Manipulate expression to a CSV file?

I have trouble generating and saving data from a manipulation that determines parameters. Can someone please help me? Manipulate[Plot[{func,x}, {x, 0, 3}] I ...
0
votes
2answers
48 views

String with numbers output formating [closed]

Is there something similar to print("blah blah is %d", 5) in python? In order to print "blah blah is 5"?
-1
votes
2answers
36 views

Conditional formatting of table

I have a table (from this question) as follows: ...
0
votes
2answers
59 views

How can I arrange the factors in the order I prefer when using Collect function factor a polynomial?

I input in mathematica a*b*c*h and get the output as a b c h Now if I want to factor out 'b' and 'c' at the same time and ...
0
votes
2answers
56 views

Require an expression to be formatted as an exponential expression

How can I require Mathematica to format an expression like Exp[x] x^s as Exp[x + s Log[x]]?
3
votes
1answer
50 views

Highlight certain values based on position

How to highlight or color certain values in a list based on position.. For example x = {1,2,3,4,5,5,5,6}... I want to plot x and highlight values (Red) in a position such as {0,4,5} and others should ...
0
votes
1answer
47 views

Making a plot label containing dynamically subscripted symbols [on hold]

Manipulate[ Plot.... Epilog -> {Text["Al" <> ToString[x]<>"Ga" <> ToString[1 - x] <> "As", {0.5, 2}]}], {x, 0, 1}] But I ...
2
votes
1answer
25 views

Is there an option to set fractional tick lables in linear form?

I want to set the fractional tick lables in linear form like this: And it can be done by use Row in each label, but it's boring. ...
2
votes
1answer
41 views

How to export parameters in a text file?

I have some parameters defined in my notebook as, for example, a=1; b=2; c=3; and I want to export these parameters to a .txt file in which I have the following ...
1
vote
3answers
171 views

How to substitute curly brackets with round brackets in a grid of list

I want to produce a table (or a grid) from my list of data, as follows: ...
3
votes
4answers
144 views

Why do I get badly formatted numerical results when I use StringForm?

The following example prints the square and cube of numbers from 0.5 to 6 ...
2
votes
1answer
38 views

How to get rid of some meshes in ListDensityPlot

I have some data that needs to be represented using the function ListDensityPlot, for example : ...
-2
votes
1answer
48 views

Show tabulated equations in matrix form [closed]

How do i put last equation, eqm[x, t, k, n] into matrix form? I want every row to end with == 0 ...
1
vote
1answer
38 views

Apply conditional styling to the rows of a table

This is a follow-on from a similar question here. If I already have a table of data, say ...
0
votes
0answers
60 views

How can I get a soft return?

I want to have two different type of newline so I can print a string which looks like it has multiple newlines but gives me a way to differentiate between them. I want to have string with newlines in ...
1
vote
1answer
63 views

Why do I get different symbols (a) with the same FontFace (Cambria Math)?

When I create an equation in MS Office, it uses Cambria Math, and I get the following when I use variable 'a'. When I try to use Mathematica to create graphics for my files, I can try to use ...
4
votes
2answers
84 views

DisplayForm problem with $\pi$ in FractionBox

The following line produces an output with the text "Pi" displayed instead of the symbol (greek letter) $\pi$. Code line: FractionBox[π,2] // DisplayForm ...
0
votes
0answers
32 views

Why OpenerView reduces the size of my equation

In this code the equation comes out with the right size. ...
1
vote
0answers
53 views

Mathematica symbolic question - Subexpressions?

Apologies in advance if this has been asked but I cannot find any information. I'm calculating the determinant of a large symbolic polynomial matrix. In the result are symbols such as this: as in ...
2
votes
1answer
94 views

Decimal format in Mathematica exported output

I am using ReadList to read an input file as Table format, and exporting the results. The ...
7
votes
2answers
127 views

How can I manipulate the output of Information?

If I type Information[ProductLog] I see If I type Framed[Information[ProductLog]] I see This is expected, though not ...
2
votes
2answers
57 views
1
vote
1answer
34 views

Table of numbers and their divisors

I want to create a table of random numbers and their divisors. The random numbers are given by ...
0
votes
2answers
62 views

Replacing all integers in a string

Let's say I have some expression like, expr = 1*a + 2*b +3*c + 4*d I want to write this to a string that I can then use in some other Fortran script. I want all ...
0
votes
1answer
34 views

Exporting Summary Boxes - Headless

This question is a follow up question to Exporting Summary Boxes. When cutting away the "Head" of a summary box is there a better way than doing the following? ...
1
vote
2answers
83 views

Preventing “-Graphics-” Output from ListPlot[] Command

Whenever I try to create a Graphics object in a Mathematica notebook, the output is always "-Graphics-". I have searched and found others who had similar problems, but attempting to implement these ...
2
votes
1answer
45 views

Print number without preceding 0

I would like to print the number 0.21534715 as .21 NumberForm[0.21534715, {1, 2}] gives me only ...
2
votes
1answer
38 views

Format a table column with superscript and operator

I have two alternative forms of a simple table, both of which have problems: ...
2
votes
3answers
289 views
0
votes
0answers
15 views

Controlling the output format of numbers and NULL while exporting to CSV

How to ensure the numbers in CSV are 1 and not 1. Data is imported from an excel, wherein they are detected as numbers and imported as 1., 2. etc. This poses a problem while exporting the again as ...
11
votes
1answer
158 views

Exporting Summary Boxes

I would like to Export a Summary Box in its expanded Form. How do i do this? I can Export a collapsed Summary Box by doing: ...
1
vote
2answers
67 views

Having problems with using TableForm to format a table

I want to make a table of various values of the logistic curve given by l[x_] := 1/(1 + E^((-k)*(x - \[Alpha]))). In basic form, this is dead easy. However, I want ...
0
votes
1answer
31 views

Format operator output

I have been working with non-commuting algebra, which is indicated in Mathematica by **. However, I want to suppress the ** from ...
1
vote
2answers
88 views

Change the output for `Times`function

When I have an input like: 1/2*k The output is: How to change the output of Timesfunction to see this result: Another ...
2
votes
3answers
113 views

ScientificForm in Dataset

Via SQL query I produce a list ...
1
vote
1answer
97 views

Fine tuning PlotLabel graphics - Lissajous Curves

Overall, I'm quite happy with my Lissajous Curves poster maker; however, getting the final touches of the graphics just right has been a challenge. I've tried two different ways of constraining ...
2
votes
1answer
36 views

How to use InputForm for printed and output expressions in console mode

When I run Mathematica in console mode (math.exe/wolfram.exe) without a GUI frontend, then printed and output expressions are (...
3
votes
2answers
227 views

Outputting expressions in the order in which they're entered

Background For display purposes, I sometimes find it desirable to defeat Mathematica's canonical ordering of variables, and instead have it output terms in the order in which I type them. E.g., ...
1
vote
1answer
31 views

Formatting InputForm output

I have a function that operates on EventData and has a return value that has Properties (or things that act like Properties). I'd like to clean up the return InputForm when queried, but I'm not quite ...
0
votes
0answers
27 views

Formatting copied output

is there any way to change global preferences or in another way avoid copied output to be displayed with a lot of digits? For instant. This calculation gives me the following output: ...
6
votes
3answers
124 views

CompiledFunction showing its contents

CompiledFunctions usually appear very compactly, for instance: ...
2
votes
3answers
56 views

Appending/Prepending a vector to a TableForm

How do i Append(Prepend) to a List? A = {{a,b},{c,d}} // TableForm B = {x, y} MapThread[Prepend, {A,B}] does not work. If i leave out the TableForm it does. This ...
0
votes
1answer
110 views

Removing zero dot after solving [on hold]

I've a question regarding "zero dots". Im using a lot of calculation in an application which i am building within mathematica. However when i use the output of solve for instant i will not have the ...
2
votes
1answer
66 views

How to Text justify that includes StringSplit and MapAt in it?

I am preparing a practical class of physics in which I need to justify the following text that is very extensive. But when I use StringSplit or ...
0
votes
1answer
31 views

PDE's numerical integration: simplify output: get rid of $[t,r]$'s and ${}^{(0,1)}$'s

When numerically integrating PDE's systems mathematica output can be chaotic and therfore time-consuming or even impossible to understand and use. A major source of confusion are the $[t,r]$'s and ${...
1
vote
1answer
55 views

Linking multipage forms together

I am trying to develop a web form wherein the first page asks users how many cities they would like to compare, and the second page dynamically creates that many input boxes. Once the user inputs the ...
0
votes
0answers
41 views

Undo added line breaks PutAppend

I used PutAppend to write away a some results. It turns out that Mathematica has inserted annoying line breaks. This is discussed in Why there are line breaks when ...