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:
...
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 ...
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 ...
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-...
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 ...
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:
...
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:
...
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]".
...
7
votes
Aligning Control in Manipulate
You can use the Method suboption "ControlAreaDisplayFunction" to modify the control labels to have the same size:
...
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}};
...
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 ...
6
votes
Accepted
How to get sliders in a row in manipulate?
You can wrap each control with Control and use them with Row:
...
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)
...
6
votes
Accepted
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
...
6
votes
Accepted
Centering a weirdly shaped grid
While it's not super nice, you can use Item[Invisible[...],...] to do this:
...
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 ...
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 ...
5
votes
Accepted
Spanning horizontally and vertically in Grid
I encountered a similar problem, and I found this idea that uses Grid inside Grid.
...
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):
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"
...
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 ...
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 ...
5
votes
Accepted
Aligning Checkboxes in Manipulate
Update: Remove the automatic content padding from Setters in TogglerBar to eliminate changes in item sizes:
...
5
votes
Top-align row of Grid and Plot
You can wrap each element with Pane[#, BaselinePosition -> Top] &:
...
5
votes
Accepted
5
votes
Which Alignment-option prevails if they are given on levels of Grid, Framed and the like?
Try redefining your G like this:
...
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 ...
5
votes
Accepted
How to align two axes with CombinePlots?
Careful control of PlotRangePadding gets you what you want:
...
5
votes
Accepted
Adjusting the vertical position of labels in a SwatchLegend
Using low-level AdjustmentBox:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
alignment × 103grid-layouts × 31
plotting × 22
output-formatting × 18
graphics × 11
text × 8
list-manipulation × 7
formatting × 6
legending × 5
gui-construction × 5
labeling × 4
style × 4
manipulate × 3
graphics3d × 3
export × 3
notebooks × 3
display × 3
bugs × 2
front-end × 2
image-processing × 2
dynamic × 2
string-manipulation × 2
charts × 2
cells × 2
printing × 2