The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [alignment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
0answers
30 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
1answer
21 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
1answer
55 views

Alignment on character that has an overscript

We can align to a character: ...
2
votes
2answers
62 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
0answers
61 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
1answer
53 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
1answer
60 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
0answers
72 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
1answer
184 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
1answer
54 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?...
2
votes
1answer
143 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
1answer
102 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
0answers
74 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
1answer
106 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
0answers
80 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
2answers
203 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
2answers
93 views

Prevent string from splitting

I have two elements of a grid: ...
6
votes
2answers
452 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
1answer
338 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
2answers
351 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
1answer
67 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... ...
23
votes
2answers
449 views

How to align similar TimeSeries like ImageAlign?

I have three audio files. ...
3
votes
1answer
94 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
0answers
83 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 ...
7
votes
1answer
1k 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
1answer
96 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
2answers
205 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
3answers
216 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 ...
5
votes
1answer
107 views

TraditionalForm overriding settings given to Column for row alignment

With the code below, the alignment at the equal sign is performed as expected: Column[{HoldForm[y] == x, HoldForm[R^2] == 0.998}, Alignment -> "\[Equal]"] ...
5
votes
0answers
81 views

SimilarityRules for SequenceAlignment of two lists

I am trying to use the SimilarityRules option of SequenceAlignment to customize its output. This works perfectly for strings, ...
1
vote
1answer
95 views

Column (and Grid) Alignment Changes with OpenerView

Column does not maintain Alignment settings when OpenerView opens and closes. ...
3
votes
0answers
130 views

Grid column width too large when alignment rules are used

I would like to use Grid to display the results of a series of calculations and an information graphic on many items. The grid has a name and a category column with ...
2
votes
1answer
221 views

How align Table column on decimal point yet use text styling?

Form a table such as: data = Transpose[{Range[0, 5], RandomReal[{-5, 5}, 6]}]; Display it by wrapping with TableForm. Is ...
2
votes
1answer
386 views

Drawing lines automatically between two different plots

I try to create a special plot where several lines have to be generated automatically between two plots at very precise coordinate. My goal is to make something exactlly like But I want to do it for ...
3
votes
2answers
261 views

Put together two ListLinePlot with right alignment

I would like to ask for some help to figure out how can i put two ListLinePlot together with right alignment. Here is what i tried to do: ...
17
votes
3answers
848 views

How to align coordinate systems of Inset and enclosing Graphics?

Suppose we have some plot with AspectRatio not being Automatic: ...
3
votes
2answers
182 views

Alignement of text

I adopted the following clever code from Mr. Wizard (see here ). HoldForm[+##] & @@ RandomInteger[100, 2] I want to prepare a practising table of addition ...
3
votes
1answer
498 views

Put labels sloped along axes in ListPlot3D

The three text labels in the following figure are all in horizontal direction. How to put the labels sloped along each axis to which it is attached? My Code ...
1
vote
2answers
392 views

Plot Bivariate Data with Marginals

I would like to plot bivariate data along with the marginal distributions. I've arranged the plots in a GraphicsGrid as below but the marginals are centered away from the bivariate plot and I wonder ...
15
votes
2answers
997 views

Align stars in multiple images

I hope that you find this question interesting and that this will help others with similar problems as this configuration is not so particular. My problem I have multiple images of a particular ...
2
votes
2answers
694 views

Center column heading in TableForm

I have a TableForm as follows: ...
3
votes
1answer
2k views

Centering histogram bars over axis values

I'd like to center the bars in my histograms over the correct values of the x-axis. Here is a simplified example: The most common value in the dataset is zero, but glancing at the histogram this isn'...
3
votes
1answer
156 views

Gridbox alignment problem

I write my own stylesheet. I use GridBox and GridBoxOption to edit the environment of EquationNumbered, in which, I set ...
2
votes
1answer
230 views

`Export` to `.eps` ruins the formatting of subfigures

As a result of this question an issue of Export emerged. I.e., when I set my .eps figures with ...
4
votes
2answers
900 views

Spanning/centering elements with Grid/GraphicsGrid when there's a non-equal number of elem. in rows

I'm trying to align elements in Grid/GraphicsGrid: Grid[{{a,b,c},{d,e}}] This makes ...
2
votes
1answer
100 views

Identically styled cells from ToBoxes and Cell do not align

I'm trying to generate some worksheets using NotebookWrite so that I can control the page breaks, but have got stuck on the alignment as there appears to be a ...
2
votes
1answer
215 views

Problem with grid alignment [duplicate]

This grid works: ...
5
votes
2answers
931 views

Alignment in columns

I need to stack three objects on top of each other and align the first two to the center and the third one to the left. I've been trying to do this with Column, but ...
3
votes
1answer
119 views

Is It Possible To Replicate Tab Stop Behaviour (or Even PageFooter Behaviour but in Regular Cell)

I am trying to insert a (text) cell into a notebook that replicates the behaviour of tab stops in MS Word, for example. Put differently, I have two strings and I want the one string to align on the ...
5
votes
2answers
626 views

specify field width in Print

I would like to format the output. For example, the following code gives ...