Questions tagged [output-formatting]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
48 views

Displaying the repeating decimal expansion of a rational number

How do I write a decimal expansion of a rational number $a/b$ with only periodic part, e.g., given $1/7=0.14285714285714285714 \ldots$, I want just $0.142857$, the periodic part of $1/7$, to be ...
4
votes
2answers
88 views

Align y-Axes in Overlay plot

I learned about how to plot two datasets in a single plot with two y-axes by using Overlay as has been done in one of the answers in this question. Now, my ...
3
votes
2answers
101 views

What's the difference between 56 and Integer[56]?

I'm trying to grasp how to Wolfram Language uses symbolic expressions for everything. The concept of doing so makes sense to me, but the language doesn't behave how I predict. I understand how ...
1
vote
2answers
99 views

Appending functions to list

Help me please. My task is to determine the sequence of polynomials $(s,s',..,-rem(fs_{k-1},s_{k}),...,constant)$ and create an array in which I will record the value of the members of this sequence ...
5
votes
1answer
52 views

Augment Export function to support custom number formatting

It's a shame that the Export framework provides no support for custom formatting of real numbers. Is it possible to augment the framework so that a "NumberForm" ...
0
votes
2answers
30 views
1
vote
0answers
43 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
37 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
71 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
45 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
121 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
30 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
72 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
41 views

Conditional formatting of table

I have a table (from this question) as follows: ...
0
votes
2answers
61 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
51 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
48 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
26 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
43 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
175 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
147 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
46 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
53 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
41 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
65 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
92 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
105 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
130 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

Mix text and calculated values in table header

I have a simple table: ...
1
vote
1answer
36 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
64 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
84 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
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
293 views

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

I have this ...
0
votes
0answers
20 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
163 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
77 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
114 views

ScientificForm in Dataset

Via SQL query I produce a list ...
1
vote
1answer
118 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
231 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., ...