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
0answers
10 views

Missing toggle button when hide a subsection of codes

I created two subsections and hide the code in both of them. However, the hide toggle button ('the double arrow') only appears at one of the subsections. I noticed some differences between these two ...
1
vote
0answers
21 views

Mathematica doesn't evaluate LinearSolve Function properly [duplicate]

Maybe this could be a stupid question, but I can't solve this problem. I'm trying to evaluate an expression with LinearSolve Function but it doesn't work. I have pre-evaluated the matrix ...
2
votes
1answer
48 views

Can I change how certain expressions are displayed/printed upon evaluation?

I'm writing some operations for Young tableaus and I would like the evaluation of an expression of type young[a_] to be printed the same as ...
1
vote
1answer
38 views

PlotRange values changed by AspectRatio and PlotLabels

I'm running into a strange issue with ListPlot. I'm trying to plot some data with particular values for PlotRange, PlotLabels, and AspectRatio. However, if I enforce the desired values for PlotLabels ...
0
votes
0answers
35 views

TexForm Simplifies Equation but Holdform Doesn't Work [closed]

I have several functions , g1 through gn, that I want to export the LaTeX for. For each iteration of the loop, the function is named gg[x,t]. I want to export the ...
0
votes
0answers
42 views

Checking Membership of Conic Hull for Multiple Inputs

Suppose I have a given $10 \times 12$ matrix T, a $12 \times 1$ vector Subscript[\[Xi], 0], a $4 \times 12$ matrix ...
4
votes
2answers
140 views

Organising and examining a complicated CSV file

I am being sent data in CSV files. The sender is providing helpful comments and lots of headings so that it is fine to look at in a spreadsheet environment. However, when I import it into Mathematica ...
0
votes
0answers
31 views

can not replace when use ctrl+f

I have a very long output, therefore, I want to find and replace some repeated expressions with abbreviations using crtl +f in Mathematica. when I enter expressions, the mathematical can find it and ...
0
votes
0answers
60 views

On the precision of `Table` calculation [duplicate]

I want to add two arrays length and Apice, It's accuracy to six decimal places. When I use ...
4
votes
2answers
207 views

How can I remove constants from a reduced result?

I am trying to reduce some equations and get the final simplified answer. But there are two issues. This is just an example to show what my problem is. There are lots of similar samples with the same ...
0
votes
0answers
32 views

How to get rid of the white margins in picture export?

I made a manipulate box to show some spherical harmonics decomposition, and everything is working great (but it's very slow, when I add more harmonics!). Then I need to export the picture, without ...
1
vote
2answers
91 views

Manually specifying frame ticks

...
1
vote
0answers
40 views

Position of symbol of currency

When I use Quantity[45.51,"Euros"] the output is €45.51 I would wish to control if symbol € is on the right like 45.51 € And also when I use ...
5
votes
1answer
128 views

Reduce from two pure functions to one

Liking the headings and spacing allowed by Row[] and TableForm[] I set up the below with 3 TableForm[]'s to use as a model from which to generalize, using a pure function, to display a list of 3-ples, ...
0
votes
1answer
55 views

How should I export data with desired precision to output file

I want to control the number of decimal points in the output file. ...
0
votes
1answer
40 views

UnitSimplify for unit multiples and submultiples

Is there any way to automatically rewrite units so that they display more naturally looking magnitudes? By this I mean that ...
9
votes
2answers
272 views

BoxWhiskerChart - how to show Quartile and other values

I have a question in respect of the BoxWhiskerChart. The default functionality of BoxWhiskerChart is that you mouse over it and ...
5
votes
2answers
126 views

How do I write Sqrt[x] as x^(1/2)

Sometimes it is needed to keep the powers as the fractional form. However Mathematica tends to write x^(1/2) as Sqrt[x]. How do ...
0
votes
1answer
46 views

Scientific notations with negative powers for plotting

Plot[x^2, {x, 0, 100},Ticks -> {{#, ScientificForm@#} & /@ Range[0., 100., 30.], {#, ScientificForm@#} & /@ Range[0., 100^2, 1000.]}, PlotRange -> All]; PowerTicks[label_][min_, max_] :=...
1
vote
0answers
70 views

Using printf for formatted print

My data is data = {{1, 1, 1, 1, 0.469258}, {1, 1, 1, 2, 0.}, {1, 1, 1, 3, -0.000123615}} On linux-like systems there is a printf...
3
votes
1answer
40 views

Performance - Plot with Calloutmarker ->“Arrow” and ImageSize->Full

This is a little esoteric, but I noticed that using CalloutMarker -> "Arrow" on a Plot that uses ...
6
votes
1answer
161 views

How to turn off the large output suppression

I am currently calculating some large matrix operations. The calculation results in some huge size matrices, and the output is sometimes suppressed as this However, I really don't want it to be shown ...
10
votes
1answer
159 views

How to modify default options of Dataset

I try to make a dark stylesheet based on the ReverseColor theme. However, dataset headers are barely readable. This question is related to others such as Question ...
0
votes
0answers
28 views

MakeBoxes not allowing alternatives defined through variable

I've encountered an issue where using Alternatives[...] indirectly through a variable within MakeBoxes does not seem to work, and I was wondering why this might be. ...
6
votes
2answers
186 views

How to visually present a variable of more than two letters as if it were one.How should I proceed?

I can't find a clear way to express my question but they say that a picture is worth a thousand words. Attached is an image of the desired result
4
votes
2answers
60 views

Custom format/display of sums of vectors

The parametric equation of a line is $\vec x=\vec p+t\cdot\vec u$, I want to display this equation "as it is", don't want for Mathematica to simplify it. ...
2
votes
3answers
50 views

Frame tricks in list plot overlap

Creating a ListPlot showing CfC emissions per year from 1961-2014, using FrameTicks but the years on the x-Axis overlap. The years are tied to emissions, so can't take any out. Suggestions on how to ...
0
votes
2answers
37 views

How to export InputForm of a number

I need to export full form of a number i.e. the actual form with which Mathematica works. For example, full form of a number is ...
3
votes
1answer
30 views

Copy as LaTex while maintaining SetPrecision?

I am working with large tables of numbers, where the numbers can have as many as 10 decimal points. To make the work more presentable, I use ...
0
votes
0answers
17 views

How to stop fractions from simplifying, when inside a Manipulate[] [duplicate]

I want to stop this fraction from simplifying inside a Manipulate[] ...
8
votes
2answers
166 views

How to prevent Mathematica from inserting random line breaks in usage messages?

I am writing a Mathematica package, and documenting its functions with ::usage messages. However, when I type ?FunctionName to ...
1
vote
1answer
60 views

Writing mathematical expression in a file

I am trying to write a mathematical expression as variable = expression in the output file. The current method that I am doing is through ...
0
votes
0answers
62 views

Correct way to format numbers

I have defined the following function: randvec[mag_]:= mag Normalize[Table[RandomReal[], {j, 1, 4}]] I would like to format the numbers in the list so that they ...
3
votes
1answer
70 views

Panel, Pane, and Framed Alignment - Clipped Images, Negative Margins, ContentPadding

I'm trying to tightly wrap some expressions in containers (could be Panel, Pane, maybe Framed...
3
votes
1answer
52 views

How to force Mathematica to output a function using its alternate pretty form when using Apply? [closed]

By default, Bra is an undefined function. Let's say I have defined Bra, Bra[a___]:=... such ...
4
votes
1answer
158 views

How to add the vector symbol on a letter?

Ho to add the vector symbol on a letter like this: $\vec{r}$? Consider the following code: ...
-1
votes
3answers
73 views

Inequalities having inconsistent InputForm [closed]

I'm having a tough time dealing with inequalities. ...
2
votes
2answers
83 views

Solve IVP in a implicit form

...
0
votes
2answers
33 views

How do I separate the two solutions?

Consider the differential equation $$f''[x]==a f[x]$$ The result is a combination of trigonometric or hyperbolic functions, something like: ...
0
votes
1answer
61 views

Exporting string with newline and tab symbols to LaTeX

We have a string that has "tab" symbol between letters "B" and "C" and "newline" symbol between letters "C" and "D": Input: ...
4
votes
1answer
91 views

Force results to be displayed in a way often seen in traditional math [closed]

I want to get my output in the form that I would write by hand. I have tried with TraditionalForm, but it did not work. I've looked at several answers in this SE ...
1
vote
0answers
33 views

In warning messages, can multi-storey expressions be flattened?

I receive the following output in command line: ...
1
vote
1answer
61 views

Hiding the result of a calculation in an interactive panel until all the inputs are entered

I created a partial fraction calculator using the Mathematica command Apart. The image below displays the value 1 before the numerator and/or denominator are entered. How can the code be fixed so that ...
2
votes
0answers
36 views

Padding decimal output with ending zeros

I want to pad with ending zero and tried the following code ...
0
votes
3answers
60 views

How can I display an expression in unevaluated form?

How can I display an expression in unevaluated form? TraditionalForm[2*3^3 + 5^2] I´d like to obtain 2*3^3 + 5^2 displayed in traditional form without being ...
0
votes
1answer
39 views

Mathematica not computing Matrix problem, just returning multiplication expression [closed]

I'm doing some very simple matrix operations in Mathematica, but for some reason, the last operation I'm trying to evaluate is not returning the actual product, just shows the symbolic multiplication. ...
1
vote
0answers
50 views

How to change behavior of Echo or turn it off without removing it from code?

I wish to use Echo for output of intermediate results if an OptionValue I call ...
1
vote
1answer
32 views

How to get function to 'expand' while inactivating inner functions

This is sort of a two question problem: Question 1 So I have a function as follows f[x_] := x + 2; I want a way to have a statement such as: ...
2
votes
2answers
105 views

Colouring faces of a graph according to an overlap of edges

I have a basic graph such as the following; ...
5
votes
1answer
114 views

Stacked/Percentile Bar Chart formatting

There seem to be a lot of questions regarding the formatting of bar charts. Sadly, I couldn't find solutions to my problems, despite all the skimming. Apologies if I missed something. Problem ...

1
2 3 4 5
23