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.

2
votes
2answers
41 views

DisplayForm problem with pi in FractionBox

The following line produces an output with the text "Pi" displayed instead of the symbol for pi. All help with an alternative or correction of this would be much appreciated, thank you.
0
votes
0answers
29 views

Why OpenerView reduces the size of my equation

In this code the equation comes out with the right size. ...
1
vote
0answers
45 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
77 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
121 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
53 views
1
vote
1answer
32 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
51 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
29 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
79 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
2answers
35 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
286 views
0
votes
0answers
13 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
151 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
59 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
87 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
103 views

ScientificForm in Dataset

Via SQL query I produce a list ...
1
vote
1answer
77 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
34 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
220 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
29 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
118 views

CompiledFunction showing its contents

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

Removing zero dot after solving

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
65 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
50 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 ...
0
votes
1answer
82 views

Output formatting

Is it possible to format a mathematica output in a way that all the fractional numbers are written first followed by other constants or functions? Example: ...
2
votes
6answers
891 views

Another way to write equation of the line passing through two points? [closed]

I am trying to write equation of the line passing through two points pA={1, -3} and pB={-33, -1} in the form ...
16
votes
1answer
353 views

Programmatically annotate code?

Is there a known way to programmatically annotate code like workflows (without using boxforms or drawing tools): Minimal example that doesn't work: ...
8
votes
3answers
239 views

HoldForm: Display exactly as entered?

Sometimes, Mathematica's internal representation of expressions can give somewhat surprising results. Specifically, I noticed this when I tried to preserve products of fractions for display. E.g. ...
2
votes
1answer
62 views

How to change space between y-axis and first bar in a stacked barchart

I have a stacked barchart like this one: BarChart[{{1, 3, 5}, {4, 7, 9}}, ChartLayout -> "Stacked"] Is there a way to change the space before and after the ...
2
votes
0answers
27 views

The default FormLayoutFunction

FormLayoutFunction allows you to specify a custom layout for form's items. But what if you want to only slight fix the default layout? It is not so clear what is ...
0
votes
1answer
44 views

Formatting a list of values and dependent formatting of corresponding errors list

I am making a table of data that I wish to output using TeXForm. Rather than manipulate the values in LaTeX (e.g. using the ...
2
votes
0answers
81 views

How to draw such boxes in Netron?

How to draw a box like this: This was drawn by https://github.com/lutzroeder/netron My attempt: ...
1
vote
1answer
77 views

Copy-paste with annoying trailing 0s

When one copies an output containing machine-precision numbers to a input, many trailing 0s appears. For example : Evaluate the following expression : ...
0
votes
0answers
20 views

Outputting a concatenation of a string and a variable within a loop [duplicate]

In this question, it was mentioned that one can output the concatenation of a string and a variable by using StringForm[]: ...
0
votes
1answer
45 views

How to export histogram legends correctly?

Found it really hard to export a high resolution .png while keeping the legends. Here is the code: ...
0
votes
0answers
35 views

How can I suppress traditional form output in a frame label? [duplicate]

When I draw a plot with the frame label $P_z$, the $P$ is shown in italic auto. What I want is a normal $\rm P_z$. How can I get it? Here is an example: ...
2
votes
1answer
62 views

creating a data framework using matrix tensor

I want to create a data framework using matrix tensor. The framework should have the following features: An (n,n) matrix, ...
2
votes
1answer
43 views

Unexpected behavior of ScientificForm when applied to a list [duplicate]

Consider a = Table[1, 100] la = Length[a] b = ScientificForm[a] lb = Length[b] la = 100 and ...
1
vote
0answers
64 views
1
vote
2answers
87 views

Mathematical symbols appear grey/faded/opaque

I admit this is quite a strange question. The mathematical symbols in my output appear as grey and faded, instead of bold black like my input. I attach a photo. Both the curly brackets and the minus ...
3
votes
1answer
52 views
1
vote
1answer
59 views

Simplifying a Sum of Fractions by Removing Fractions in Denominators

I have a sum of fractions of the form $x1 - \frac{(x2 + x3)}{(x4 + x5)} - \frac{(x6 + \frac{x7}{x13})}{(x8 - x9 - \frac{x10}{(x11 + x12)})}.$ How might I simplify it to remove fractions from the ...
4
votes
3answers
182 views

Handling expression differently for display vs. calculation?

I have a function I wrap a lot of my numbers with to factor them and display them out a certain way. Usually I do this at the last step of a calculation, but sometimes it would be nice if I could ...