Questions tagged [alignment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

Align frame of 2 plots in graphicsColumn

Hi guys i was trying to align two plot placed vertically on top of one another but i am facing an issue. ...
  • 2,541
3 votes
1 answer
47 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
79 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 ...
  • 21
1 vote
1 answer
91 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 ...
  • 2,253
0 votes
1 answer
48 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,379
3 votes
2 answers
87 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
108 views

Why is Alignment not honored in the first two headline columns?

Consider this example: ...
4 votes
2 answers
111 views

Which Alignment-option prevails if they are given on levels of Grid, Framed and the like? [closed]

From ...
3 votes
2 answers
206 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
251 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. ...
  • 3,685
4 votes
1 answer
120 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
74 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
121 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 ...
  • 11.6k
3 votes
2 answers
250 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: ...
  • 11.6k
3 votes
1 answer
125 views

Asymmetric Grids

Consider the following Grid ...
  • 4,330
3 votes
2 answers
131 views

Centering a weirdly shaped grid

Consider the following grid ...
  • 4,330
3 votes
1 answer
248 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,312
0 votes
1 answer
117 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 ...
  • 275
1 vote
1 answer
88 views

How to align Text within Graphics?

Consider the code ...
  • 4,330
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
101 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...
  • 565
2 votes
2 answers
121 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....
  • 2,327
3 votes
1 answer
96 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 ...
  • 5,609
0 votes
1 answer
147 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
32 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 ...
  • 2,327
3 votes
1 answer
230 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
145 views

Aligning Checkboxes in Manipulate

Consider the following code ...
  • 4,330
2 votes
1 answer
112 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
430 views

Aligning Control in Manipulate

I'm trying to use Dynamic and If inside Manipulate to alternate controls depending on a ...
  • 4,330
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
29 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,257
2 votes
1 answer
89 views

Alignment on character that has an overscript

We can align to a character: ...
  • 2,257
3 votes
2 answers
228 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 ...
  • 1,116
4 votes
0 answers
98 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 ...
  • 348
2 votes
1 answer
288 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 ...
  • 1,251
4 votes
1 answer
152 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 ...
  • 91
2 votes
0 answers
151 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 ...
  • 2,164
6 votes
1 answer
478 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
94 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
251 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 ...
  • 1,967
3 votes
1 answer
278 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: ...
  • 35
2 votes
0 answers
111 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
542 views

Column alignment in Grid

How can I align elements in column when SpanFromAbove is used? Using the example given in documentation for Grid ...
  • 971
1 vote
0 answers
115 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. ...
  • 5,179
6 votes
2 answers
455 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: ...
  • 9,125
3 votes
2 answers
114 views

Prevent string from splitting

I have two elements of a grid: ...
  • 4,145
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?
  • 16.4k
8 votes
1 answer
356 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}: ...
  • 11.4k
6 votes
2 answers
702 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 ...
  • 3,761
2 votes
1 answer
75 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... ...
  • 125