20 votes
Accepted

How to align similar TimeSeries like ImageAlign?

One way to approach this is with "Dynamic Time Warping". First, preprocess your data to get the MFCC coefficients and extract the data from the time series: ...
bill s's user avatar
  • 68.3k
10 votes
Accepted

What is the most straightforward solution to save integers right aligned into a text file?

Export["file.txt", dat, "Table", Alignment -> Right] "Table" lists this as an option. If you want more or specific space ...
Mr.Wizard's user avatar
  • 270k
10 votes
Accepted

Perfect vertical alignment (centering) of PointLegend markers and their labels

Direct answer to the question (rewritten after the comments) It is well known that the default markers are font glyphs and Mathematica can't position font glyphs precisely. If you need precise ...
Alexey Popkov's user avatar
9 votes

How to make tabs aligned in Print?

Print isn't really meant to do text-processor-like formatting. It most common use it to display intermediate results where people don't care much about pretty-...
m_goldberg's user avatar
  • 107k
9 votes

Perfect vertical alignment (centering) of PointLegend markers and their labels

I think this is a font issue. Look at: Style[Row[{\[FilledCircle],\[FilledSquare],\[FilledDiamond]}], FontFamily->"Arial"] The centering looks better in Times ...
Carl Woll's user avatar
  • 130k
9 votes
Accepted

Can't get alignment to work in Labeled function

This is a syntax ambiguity arising from the allowance for this form: Labeled[Framed[{a, b, c, d}], {"Foo", "Bar"}, {Top, Left}] Instead you need: ...
Mr.Wizard's user avatar
  • 270k
9 votes

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?

SeedRandom[1]; data = RandomInteger[{5, 40}, {10, 2}]; First, a helper function to pre-process input data to add metadata to be used for scaling bar widths: ...
kglr's user avatar
  • 384k
8 votes
Accepted

TraditionalForm overriding settings given to Column for row alignment

The problem is that you gave "\[Equal]" as the centering character, but you should have given "\[LongEqual]". ...
m_goldberg's user avatar
  • 107k
7 votes

Aligning Control in Manipulate

You can use the Method suboption "ControlAreaDisplayFunction" to modify the control labels to have the same size: ...
kglr's user avatar
  • 384k
6 votes
Accepted

Displaying horizontal axis as legend of a chart/plot?

Why not simply data = Table[RandomInteger[{1, 20}], {20}]; Define the partition par = {{1, 8}, {9, 13}, {14, 16}, {17, 20}}; ...
eldo's user avatar
  • 47.6k
6 votes
Accepted

Proper use of TableAlignment

I haven't revised this code for 5 years but think it should do what you need for a): sortableTable[Transpose@inTable, Alignment -> {{Left,Right}, Center}] and ...
Mike Honeychurch's user avatar
6 votes
Accepted

How to get sliders in a row in manipulate?

You can wrap each control with Control and use them with Row: ...
kglr's user avatar
  • 384k
6 votes
Accepted

Is the \begin{align} function available for the MaTeX package?

Use aligned from amsmath (I do not think align or align* works in Matex) ...
Nasser's user avatar
  • 137k
6 votes
Accepted

Align frame labels in different items in GraphicsRow

Add an invisible tick at 0 in pY: ...
kglr's user avatar
  • 384k
6 votes
Accepted

Grid alignment syntax

mat = {{Column[{12, 34}], 123, 1234, 5}, {Column[{1, 2}], 3, 4, 5}}; The default is center aligned rows and columns ...
Bob Hanlon's user avatar
  • 151k
6 votes
Accepted

Centering a weirdly shaped grid

While it's not super nice, you can use Item[Invisible[...],...] to do this: ...
Lukas Lang's user avatar
  • 33.5k
6 votes
Accepted

Computing maximal FontSize to fill a rectangle?

To prevent confusion, I will provide a new answer rather than edit my previous one. It is using elements of my previous answers with several important modifications. The text is always centered. Use ...
Jean-Pierre's user avatar
  • 5,187
6 votes

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... ... ImportString strictly requires a ...
Alexey Popkov's user avatar
5 votes
Accepted

Spanning horizontally and vertically in Grid

I encountered a similar problem, and I found this idea that uses Grid inside Grid. ...
X. Wang's user avatar
  • 66
5 votes
Accepted

Variables with both super-subscripts on the same vertical axis

Use Subsuperscript: Subsuperscript[f, a, b] // Style[#, 20] & Keyboard shortcut (thanks: BobHanlon):
kglr's user avatar
  • 384k
5 votes

How to change frame size, while maintaining ImageSize?

Thanks to BlacKow I just found out that: "ImagePadding is defined within ImageSize" and "ImageMargins is defined outside of ImageSize" ...
Kay's user avatar
  • 1,015
5 votes

How to align coordinate systems of Inset and enclosing Graphics?

Here is a solution that allows dynamic resizing of the image with a mouse. As shown by @LLlAMnYP, in order to get Inset graphics to line up with the coordinate ...
Carl Woll's user avatar
  • 130k
5 votes

Aligning Control in Manipulate

You can put your Controls in a Column to lay out your controls in a arbitrary way. From here, you can use the ...
chuy's user avatar
  • 10.8k
5 votes
Accepted

Aligning Checkboxes in Manipulate

Update: Remove the automatic content padding from Setters in TogglerBar to eliminate changes in item sizes: ...
kglr's user avatar
  • 384k
5 votes

Top-align row of Grid and Plot

You can wrap each element with Pane[#, BaselinePosition -> Top] &: ...
kglr's user avatar
  • 384k
5 votes
Accepted

Making Justify (Perfect) alignment in the PlotLegend

...
kglr's user avatar
  • 384k
5 votes

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

Try redefining your G like this: ...
lericr's user avatar
  • 24.4k
5 votes

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

What's happening is that your construction is a Grid of boxes (of "FrameBoxes" to be precise). You are aligning the content of each box on the sides of the box itself but the box remains ...
andre314's user avatar
  • 17.8k
5 votes
Accepted

How to align two axes with CombinePlots?

Careful control of PlotRangePadding gets you what you want: ...
Lukas Lang's user avatar
  • 33.5k
5 votes
Accepted

Adjusting the vertical position of labels in a SwatchLegend

Using low-level AdjustmentBox: ...
Syed's user avatar
  • 41.5k

Only top scored, non community-wiki answers of a minimum length are eligible