Questions tagged [output-formatting]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
50 views

Can I store output data in the Notebook file? Specifically output from NDSolve[ ]

I am having some outputs from NDSolve of the form {{x→InterpolatingFunction[…], y→InterpolatingFunction, … }} and the ...
0
votes
1answer
44 views

Hide details of ParametricFunction

I use ParametricNDSolve to return a particular combination of the (vector) variables, at the end of the integration range. This gives a ...
2
votes
1answer
75 views

How to Print[“x=”,x] with Style? [closed]

How to Print a text and a value with the same Style?, for example {Bold, Blue, 22} a=4 Style["The number is ", a , Blue, 22] ...
0
votes
1answer
48 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
3answers
185 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
38 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
1answer
93 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
53 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
43 views

Conditional formatting of table

I have a table (from this question) as follows: ...
0
votes
2answers
65 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
57 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
54 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
53 views

Making a plot label containing dynamically subscripted symbols [closed]

Manipulate[ Plot.... Epilog -> {Text["Al" <> ToString[x]<>"Ga" <> ToString[1 - x] <> "As", {0.5, 2}]}], {x, 0, 1}] But I ...
2
votes
1answer
29 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
53 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
201 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
157 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
57 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
54 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
45 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
61 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
112 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
110 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 ...
2
votes
0answers
44 views

Why OpenerView reduces the size of my equation

In this code the equation comes out with the right size. ...
1
vote
0answers
54 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
143 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
138 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
63 views

Mix text and calculated values in table header

I have a simple table: ...
1
vote
1answer
38 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
111 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
57 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
91 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
46 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
39 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
294 views

N[…, 5] does not returns what I expected

I have this ...
0
votes
0answers
22 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
170 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
105 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
33 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
126 views

ScientificForm in Dataset

Via SQL query I produce a list ...
2
votes
1answer
279 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
40 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
244 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
34 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
43 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: ...
7
votes
3answers
134 views

CompiledFunction showing its contents

CompiledFunctions usually appear very compactly, for instance: ...
2
votes
3answers
71 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
153 views

Removing zero dot after solving [closed]

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 ...
3
votes
1answer
75 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 ...