Questions tagged [alignment]
The alignment tag has no usage guidance.
90
questions
3
votes
2
answers
152
views
Is there a function similar to Print which really respects tabs and newlines?
I am looking for something which acts like Print, preferably with the same syntax, which lets me arrange things in columns of proper width (i.e. if an item in a ...
2
votes
0
answers
37
views
Computing maximal FontSize to fill a rectangle?
I'd like to compute the proper FontSize for a given piece of text to fill a given Rectangle.
...
4
votes
1
answer
113
views
Making Justify (Perfect) alignment in the PlotLegend
I am trying to plot some datasets ({L1, L2, L3, L4, L5, L6, L7, L8, L9, atmve, atmvebar, atmvmu, atmvmubar, DSNve, DSNvebar, DSNvx}) using ListLogLogPlot. For that I have written this following code-:
...
0
votes
0
answers
51
views
How do I align text with headings on the left margin?
Apologies for a grumpy newbie question - I'm feeling lost in Mathematica after the relatively simple world of, say, Jupyter.
My question is how can I modify the default notebook to align Section and ...
2
votes
2
answers
109
views
Top-align row of Grid and Plot
How can the top of the Column on the right (built from a Grid) to be aligned with the top of the ...
3
votes
2
answers
167
views
Align 1st row of Grid different from the other rows
The grid formed below aligns its columns as I want on the decimal point:
...
0
votes
0
answers
27
views
3
votes
1
answer
120
views
Asymmetric Grids
Consider the following Grid
...
3
votes
2
answers
130
views
Centering a weirdly shaped grid
Consider the following grid
...
3
votes
1
answer
223
views
Does "align on alignment marker" work in Mathematica 12.3
In Mathematica 12.1 (and previous versions), you can insert a cell of style DisplayFormula into a notebook, using ...
0
votes
1
answer
70
views
Grid alignment syntax
This is a simple question, but I just cannot understand the explanation given in the Grid documentation page for how to set different alignments for different parts of a grid. I have a grid with two ...
1
vote
1
answer
59
views
How to align Text within Graphics?
Consider the code
...
1
vote
0
answers
36
views
What is wrong with SimilarityRules in SequenceAlignment for lists
I try to align two lists by SequenceAlignment. This works properly for default SimilarityRules
...
3
votes
1
answer
89
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...
2
votes
2
answers
117
views
Why aren't my grid elements aligning correctly in a docked cells toolbar?
The following is just the initial start of my very first docked cells toolbar I am still working on. It can easily be loaded to view it live. Code is also provided to conveniently remove it afterwards....
3
votes
1
answer
82
views
Align frame labels in different items in GraphicsRow
I have a somewhat complicated plot I need to make. This example is extremely simplified to get at the core of the issue. I know that some of what I'm accomplishing here can be more easily ...
0
votes
1
answer
124
views
Mathematica front-end code alignment issue
I am having a frustrating recurring issue with the frontend (Mathematica 12.1.1 for Mac OS X x86 (64-bit) (June 19, 2020)).
I will have a notebook which works just fine, all lines evaluate. Next, I ...
0
votes
0
answers
30
views
Vertical text in a nested grid not aligning correctly along the horizontal (center desired)
I reconstructed the results of several functions that generate rows and nested grids so as to do away with the minutia. I am having difficulty getting the vertical text to ...
3
votes
1
answer
199
views
How can I fix the alignment of complex combinations of GraphicsGrid / GraphicsRow plots?
I am having problems joining multiple plots using GraphicsRow and GraphicsGrid.
The issue is that Mathematica (v12.1) rescales arbitrarily my plots when I try to combine them. The issue arises when I ...
1
vote
1
answer
131
views
Aligning Checkboxes in Manipulate
Consider the following code
...
2
votes
1
answer
82
views
Grid with data vertically aligned on the decimal point are not properly displayed in the Wolfram Cloud Notebook?
I can't align colum data on the decimal point:
...
5
votes
3
answers
381
views
Aligning Control in Manipulate
I'm trying to use Dynamic and If inside Manipulate to alternate controls depending on a ...
4
votes
0
answers
45
views
Trying to use TextAlignment->Center in Text in Graphics3D pushes text far off of background
I am trying to annotate a plot with text. The text is intentionally line wrapped, and I want it to be centered, so I am trying to use TextAlignment. However, when I do this, the text gets pushed way ...
0
votes
1
answer
25
views
Alignment when not dealing with (just) text [duplicate]
In designing interfaces for dynamic operation, I am finding that I cannot figure out how to get alignment to work. For example:
...
2
votes
1
answer
84
views
Alignment on character that has an overscript
We can align to a character:
...
3
votes
2
answers
188
views
How to get sliders in a row in manipulate?
Manipulate[v + t, {v, 0, 1}, {t, 0, 1},
ControlPlacement -> Left, ControlType -> VerticalSlider]
puts the second slider below the first one. How ...
4
votes
0
answers
93
views
Grid: Alignment by position doesn't work
Let's consider a simple example
Grid[{ConstantArray[0, 5]}, Frame -> All, ItemSize -> {3, 3},
Alignment -> {0.5, 0.5}]
According to the documentation ...
2
votes
1
answer
169
views
Variables with both super-subscripts on the same vertical axis [closed]
When writing out a variable with both a subscript and a superscript, such as:
Subscript[Superscript[f, a], b]
one has that the "b" letter is "pushed" to the ...
4
votes
1
answer
134
views
Problem with Alignment in Grid
Further to the problem noted in Grid - Item - Alignment to decimal problem I feel that the Alignment below should be decimal for the lower right and centre for the left and top headings. You will note ...
2
votes
0
answers
136
views
Use List convolve for aligning images
I am trying to align images of point spread functions using a convolution. Before doing it on real data, I wanted to try on simulated data. I have no problem with the 1-D case where I create 2 ...
6
votes
1
answer
436
views
Spanning horizontally and vertically in Grid
I'm trying to make a Grid that has one cell that spans horizontally and one that spans vertically, like so (generated manually with ...
1
vote
1
answer
68
views
How to plot some density plot in a group in the way that some of them have the axis label only?
I am trying to have a beautiful set of density plots for a paper. Two questions:
1. How can I justify the panels to be exactly the same in size? Why after bringing them together, the result is so ugly?...
3
votes
1
answer
231
views
Multiple plots sharing a single vertical axis
I am trying to align a series of plots horizontally. They all share a vertical axis, but I only want to show the axis once on the leftmost plot. However, adding the vertical axis on one of the plots ...
3
votes
1
answer
261
views
TableForm: How can I center the heading labels while aligning numbers on the decimal?
In Mathematica 10.4 I'd like to center the column headings in my table while continuing to align the column entries on the decimal point. Here's an example:
...
2
votes
0
answers
104
views
How does PDF export handle text alignment?
Context: In digging into How can I get Mathematica to not mis-align plot labels when exporting to pdf without rasterizing the text?, and getting an answer to How does pdf export compute the size of ...
0
votes
1
answer
455
views
Column alignment in Grid
How can I align elements in column when SpanFromAbove is used?
Using the example given in documentation for Grid
...
1
vote
0
answers
106
views
How to center a graphic inside a framed cell without using another cell
Below is a gif of the situation I am having.
First, notice I am working inside a framed cell. Within this cell I placed two graphics. The first (on top) is left aligned. The second, is centered. ...
6
votes
2
answers
406
views
Is the \begin{align} function available for the MaTeX package?
I would like to know if the MaTeX package from our colleague Szabolcs can align the calculation steps as possible by the code below:
...
3
votes
2
answers
108
views
Prevent string from splitting
I have two elements of a grid:
...
6
votes
2
answers
1k
views
How to make tabs aligned in Print?
For example,
Print["1\t55
33\t44"]
outputs
Why tab is not aligned? If tab is not aligned, why is it called tab? Is there a way to make tabs aligned?
8
votes
1
answer
352
views
What is the most straightforward solution to save integers right aligned into a text file?
As an example I have a data list of dimension {10, 5}:
...
6
votes
2
answers
628
views
Perfect vertical alignment (centering) of PointLegend markers and their labels [duplicate]
I want to produce a stand-alone PointLegend for a bunch of plots which I generated. Unfortunately, the markers are slightly off-axis. I have applied all the options ...
2
votes
1
answer
74
views
Is there a way to automate "aligning plot axes in a graphics object" for more than 2 plots?
I tried the automated solution there, and it works nicely with two plots. However, I want to know if there is any way to do the same thing for more than 2 plots. I did try, but failed to do so...
...
24
votes
2
answers
563
views
How to align similar TimeSeries like ImageAlign?
I have three audio files.
...
3
votes
1
answer
264
views
Can't get alignment to work in Labeled function
I'm probably missing something obvious here, but I haven't been able to figure out how to get the Mathematica function Labeled to print an expression with a left-...
0
votes
0
answers
120
views
Plot markers appear off-centre [duplicate]
Before I start I should mention that this question has been posted in another form here, Point Renderings Slightly Off in Mathematica.
However my case is slightly different in that I do not use ...
8
votes
1
answer
3k
views
How to change frame size, while maintaining ImageSize? [duplicate]
I'm trying to come up with a MWE:
anyData = Range[10];
Column@Table[ListLinePlot[n*anyData, Frame -> True], {n, {-1, 1}}]
The lateral size of the plotframe ...
2
votes
1
answer
115
views
Proper use of TableAlignment
At various times though use of extensive trial-and-error I have gotten results I want out of TableHeadings. More often I give up. For example, given two columns, (a) how does one make the first left-...
5
votes
2
answers
274
views
Align ColorBar (axislabel) to be parallel to the y-axis for any view-angle
The following code produces the 3D plot below (which is almost what I want).
...
4
votes
3
answers
233
views
Displaying horizontal axis as legend of a chart/plot?
I'm trying to do a BarChart[] of some data and I'd like to add an additional XX axis below the chart with some additional information. This may also be done with an ...