Questions tagged [output-formatting]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
49 views

Matrixplot and DataRange: prevent ugly plot ticks with many decimals

I want to plot a 2x2 grid using MatrixPlot and I want to use a custom range for the x- and y axes. DataRange does almost what I want but when I plot it looks like this: ...
1
vote
2answers
93 views

How can I convert dot product into Latex code without dot?

Recently I need to convert a lot of expressions containing dot products into Latex code. To my annoyance, the mathematica system will always leave literal dots (".") in the latex code, but ...
2
votes
1answer
57 views

BarLegend frameticks formatting

I'm trying to change the default BarLegend ticks style using the officially documented methods, but nothing changes. I've tried the Method method (...
1
vote
1answer
35 views

How to change the format of ReadList

I have a quick question, please help me if you have an idea: 1- i need to read the data in another format, in the desired answer the records must be separated by &&, and without braces { } . ...
2
votes
1answer
74 views

Get sign of unassigned variables

I want to find the signs of the following expression of unassigned variables: a = x1 x2 - x3 x4; The signs or prefactors are +1 ...
7
votes
2answers
330 views

Why is Mathematica changing the output display format?

I do a command like Table[i^5/(i^5 + 7*i + 1) Sin[x]/E^(3 i x), {i, 1, 5}] The output shows up as $$\left\{\frac{1}{9} e^{-3 x} \sin (x),\frac{32}{47} e^{-6 x} \...
4
votes
2answers
94 views

Adapt size of brackets in text mode

In text mode, i.e. characters enclosed by " ", brackets do not adapt to the content. How can I achieve this? Actually I want to write a text that includes formulas. Without " " the ...
0
votes
0answers
33 views

Changing variable order in an output [duplicate]

Is it possible to change variable orders in an output? For example, if i get: x= p l is it possible to change as: x= l p
5
votes
1answer
83 views

Displaying more columns of a dataset

How can I request (programmatically or otherwise) the display of more Dataset columns? For example, this command displays only 10 of the 13 columns of the dataset: <...
0
votes
0answers
39 views

How to manipulate neural network output data?

I have a large list data for neural network training in the form {x1 -> y1, … , xn -> yn} Where the outputs $y_i$ is either 1 or 0 and the inputs $x_i$ are ...
2
votes
1answer
83 views

How to add a vertical dividerline?

I am preparing some sheets with Boolean expression identies using TableForm's like the following: ...
5
votes
2answers
205 views

Is there a way to view all two-dimensional arrays in matrix form?

Is there a way to ensure that every time I perform an operation such as RowReduce, Linear Solve, Null Space, Inverse, Eigenvectors, etc. that the matrix is displaying in MatrixForm instead of applying ...
0
votes
1answer
41 views

Formatting expressions with numeric exponents using pattern matching

Thank you all in advance. Question: I want to change the format of this expression (n + r)^3/n^3 into this (1+r/n)^3using rules ...
0
votes
0answers
43 views

problem in returning relations with unified format

first of all I didn't know what could be the proper title for this question, you may edit it if you find better, thanks. I am making some relations dynamically, relations will return based on two type ...
3
votes
1answer
94 views

PlotLabels is placing a label too far above what it is labeling

I am trying to label the thick black line in the following graph: Using this source code: ...
1
vote
0answers
39 views

Sortable Grid-like control for large data sets?

I've been using a roll-your-own function for a while that's a wrapper around Grid which adds a couple things I always use, like headers, dynamic sorting, filtering, and clipping (only showing the ...
0
votes
1answer
79 views

Converting JSON to CSV but the formatting is not correct

I have a folder of about a million JSON files and I wrote this to convert them quickly to CSV, but the formatting is not correct for the software I'm feeding them into. Here's the code I'm using: <...
0
votes
0answers
41 views

Suggestions Bar doesn't always appear

Why does Mathematica sometimes show the suggestions bar like this: But in other cases it doesn't appear with any suggestions:
1
vote
1answer
92 views

Why InputForm of iconized output are hard to read in recent versions of Mathematica? How to correct it?

I never liked WRI tendency to now iconize some results from computation in the notebook. I do not know if this is the correct term for it. I like to see result always in plain normal code. Here is an ...
1
vote
0answers
37 views

How to Block the Output of WriteString?

I have an external package that uses the following function internally to print messages, PrintOutput[x__] := WriteString[$Output, x]; I want to block all the ...
0
votes
0answers
61 views

How can I change the way Mathematica orders exponents?

How can I change the ascending order that Mathematica has of ordering the exponents, to a descending one. For example, get ...
0
votes
0answers
45 views

Can I specify which terms to show on the left side and which on the right side of an equality in output?

Mathematica unexpectedly moves a part of the result of the calculation to the left side where I want to display only the unknown variable. Can I prevent this?
2
votes
2answers
64 views

Make Mathematica not to evaluate an integral?

I want the output to contain an integral, while everything under the integral sign evaluated. How can I prevent the system from evaluating the integral?
1
vote
1answer
92 views

How can I remove the negative sign to make sure the positive-signed term comes first?

I found the default dealing of the terms often display a negative sign at the beginning, including those beneath a square-root sign , which is a little bit annoying since for most cases, there exists ...
2
votes
1answer
56 views

How can I convert the inverse hyperbolic function I defined and built-in inverse trig functions to TeXForm the way I prefer?

In Mathematica,the inverse hyperbolic functions are displayed with the prefix "Arc" like "ArcSinh[]", which I thought incorrect and misleading. Since the hyperbolic angle is ...
2
votes
1answer
57 views

How to sort arguments in descending order in an orderless function

If I define an operator to be orderless SetAttributes[CirclePlus,Orderless] It puts the arguments into canonical sorting, i.e. ...
0
votes
0answers
40 views

How to map the outputs to different output lines?

I have the following code GraphIt[n, n2, IR, #] &/@ vanishpts where the function GraphIt print something, and returns a graph. I don't want my outputs to be ...
5
votes
1answer
146 views

Strings are constants? (Kind of output hack to circumvent that needed)

I have an "internal" notation (since some stuff is equivalent and can be manipulated via patterned expressions in the function F), say ...
2
votes
2answers
113 views

How to combine lists with plus minus signs?

I have two lists of Mathematica expressions, ...
0
votes
0answers
27 views

Output expressions with numerical coefficients and text separated

I have a Mathematica expression, t1 = (-10*wr20)/(7*Sqrt[3]) + (8*Sqrt[15]*wr40)/77 - (7*Sqrt[5/39]*wr60)/11; where some w terms are in the numerator, some are not....
0
votes
0answers
53 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
40 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
220 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
29 views

Placement of `PlotLabels` in `ComplexListPlot[]`

In this example, would like the label $\gamma_a$ to appear below the line segment. ...
1
vote
1answer
72 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 ...
5
votes
2answers
479 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
83 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
90 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
48 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
72 views
0
votes
2answers
59 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
48 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
51 views
3
votes
1answer
140 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
31 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
57 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
50 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
53 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
154 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 ...

1
2 3 4 5
24