Questions tagged [alignment]
The alignment tag has no usage guidance.
103
questions
2
votes
0
answers
42
views
How to apply 'Column alignment' to an object array made of 'ClickToCopy'?
There is the following code.
Column[{15!, ClickToCopy[15!], Plot[x, {x, -1, 1}]}, Alignment -> Left]
I expect all the objects to be aligned to the left.
...
2
votes
1
answer
46
views
Make rotated labels to be the near position of ticks?
When rotate the tick labels, the labels will be centered at the tick position.
...
7
votes
3
answers
320
views
How to draw a bar-in-bar chart using Mathematica? or align two bar/rectangle charts at the center of the bar rather than the left alignment?
I would like to create a bar-in-bar chart similar to the online example provided below.
I have attempted to create it using the "RectangleChart" function to generate two bars. However, when ...
2
votes
0
answers
45
views
Bug in the alignment of text?
If I put text in a plot as an inset, the vertical alignment of the text is normally set to the mean line of text in general. It does not matter if one writes M or m the baseline will still be aligned, ...
0
votes
0
answers
28
views
Alignment within Dialog Input
I'd like to have different elements (checkboxes and input fields) aligned horizontally in a dialog box, but I can't figure out how to do it. The misalignment becomes more apparent when the list gets ...
1
vote
1
answer
84
views
How to get randomly arranged image in Mathematica?
I'm now thinking about randomly arrangement of the imported image.
After importing 2 hand-written images, image1 and image2, I want to make each 5 copys and randomly arrange them in one graph, i.e. ...
0
votes
0
answers
38
views
Bug? Version 13.2.0 GridBoxAlignment->{"Columns" -> {{"\[AlignmentMarker]"}}...} "Tabs" the first column after upgrade from 12.0
After upgrading to 13.2.0 for Microsoft Windows (64-bit) I have found that Grid boxes with columns aligned on AlignmentMarker are acting as if there is a Tab in front of the column.
For example, the ...
3
votes
1
answer
71
views
Adjusting the vertical position of labels in a SwatchLegend
How do I adjust the vertical position of labels in a SwatchLegend?
The simple command SwatchLegend[{{col1, col2}},{{txt1, txt2}}] generates something like shown in ...
2
votes
1
answer
227
views
Frame-centering a legend outside (above) a plot
I am producing some plots with legends on Mathematica, using PlotLegends.
For aesthetical reasons, I was wondering if there was a simple way to impose to a legend ...
1
vote
1
answer
128
views
How to align two axes with CombinePlots?
How can I align the lowest point and highest point of these two axes like 0 is aligned with 0 and 3 is aligned with 1.0 on the other axis?
The desired output is something like this (just to show the ...
0
votes
1
answer
75
views
InputField - change text alignment to center
Is it possible to align text in InputField Right/Centered?
(Seems Left is default)
Seems there is no alignment option for InputField.
What I want is center - More specifically, Real-time centered : I ...
3
votes
2
answers
128
views
Left, center, and right justification within a single cell
I can write a cell with the text alignment on the right:
...
1
vote
1
answer
111
views
Why is Alignment not honored in the first two headline columns?
Consider this example:
...
4
votes
2
answers
114
views
3
votes
2
answers
232
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 ...
4
votes
2
answers
267
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.
...
5
votes
1
answer
141
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-:
...
1
vote
0
answers
87
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
137
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
329
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:
...
4
votes
1
answer
154
views
Asymmetric Grids
Consider the following Grid
...
3
votes
2
answers
138
views
Centering a weirdly shaped grid
Consider the following grid
...
3
votes
1
answer
265
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 ...
1
vote
1
answer
254
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
156
views
How to align Text within Graphics?
Consider the code
...
1
vote
0
answers
37
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
126
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
127
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
114
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
159
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
37
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
318
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
161
views
Aligning Checkboxes in Manipulate
Consider the following code
...
2
votes
1
answer
135
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
508
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
30
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
101
views
Alignment on character that has an overscript
We can align to a character:
...
3
votes
2
answers
276
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 ...
5
votes
0
answers
103
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
518
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
193
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
165
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
521
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
115
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
269
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
297
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
115
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
599
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
128
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. ...