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
42 views

Change the default output form in mathematica 12

Is there a simple way I can change the default output form in Mathematica 12? In Mathematica 11, this option was simply in the "preference", but I can't find it anywhere in Mathematica 12.
2
votes
0answers
31 views

Print a string in TraditionalForm

I'd like to print all in TraditionalForm "f(z)=(z+1)/(z-1)" where f is a function defined in the usual way. What I obtain in Output for f(z) and (z+1)/(z-1) is not the TraditionalForm. What ...
4
votes
4answers
181 views

Is there an easy way to copy a TableForm column and convert it into a vector?

Is there an easy way to take a column output from a TableForm command, like this: ...
0
votes
0answers
23 views

Placement of `PlotLabels` in `ComplexListPlot[]`

In this example, would like the label $\gamma_a$ to appear below the line segment. ...
0
votes
1answer
60 views

How to force Mathematica throwing an error box intentionally?

When building a Module function, I try to throw an error box when this function facing some cases. But I don't know how to output this error box with ground methods. This picture is the Mma error bar ...
4
votes
2answers
163 views

How to export expression in mathematica to python [closed]

I have an expression in Mathematica; I want to convert this expression into python readable format. how to do this? ...
1
vote
1answer
74 views

How to change the form of fraction

One of my output result is (2 Sqrt[2/5])/3 Is there any method to let it become Sqrt[8/45] Thank you very much!
1
vote
1answer
81 views

Creating a table and exporting to LATEX

I have two functions as numeric[x, t] and exact[x, t]. I want to create a table including 5 columns as follows (table formatting doesn't matter) and to export it to LATEX: I use ...
0
votes
1answer
29 views

\ell with argument in legend

I want to have as a Legend in a figure. But don't get further than
2
votes
1answer
59 views
0
votes
2answers
53 views

Extract subscript of variable in product

My input is a product of the variable x with index: x[1]^2 x[5] x[7] How do I extract the indices of the above product to get ...
0
votes
0answers
43 views

Replacing the print display in a for loop

I am running a For loop as follows: table = {}; For[n = 0, n < 10, n++, {table = Append[table, n], Print[table]}] I was wondering if there was a convenient way ...
1
vote
0answers
48 views
3
votes
1answer
127 views

Doing calculations on values input in USD currency format (e.g., $1,234.56)

I'd like to be able to copy and paste, into MMA, numbers that have a standard USD currency format, i.e., that include dollar signs and comma separators, and get the output in the same format. I'd ...
0
votes
0answers
27 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 ...
0
votes
0answers
24 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
50 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
41 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
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
144 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
32 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 ...
1
vote
2answers
102 views

How to create a table tracking successively changing values of controls in Manipulate[…]

Consider the following code that generates the desired output for a single vector of parameters (i.e., values of the controls). My purpose is to generate a set of ...
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
231 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
36 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 ...
2
votes
2answers
112 views

How to format a table of numbers with varying decimal points

Given: ...
3
votes
1answer
71 views

Graph layout and VertexStyle difficulties

I have several large two-layer directed graphs with vertex labels of unequal length, and I'd like to lay them out and color vertices in an automatic way, as I'll describe. Here is a minimum example ...
1
vote
2answers
104 views

Manually specifying frame ticks

...
1
vote
0answers
42 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
129 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
69 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. ...
1
vote
1answer
42 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
274 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
132 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
49 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
80 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
43 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
162 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
167 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
29 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
62 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
57 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
34 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
169 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
73 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...

1
2 3 4 5
24