Questions tagged [margins]

in Typography: space (area) around the elements in Machine Learning: a margin classifier may use in analysis of data and recognize of patterns, used for classification

Margins in typography

Margins is area around the content of the elements in a document (usually it has shape rectangular)

example margin in typography

Example margin page setup in LaTeX

\usepackage{geometry}
\geometry{
    a4paper,
    total={210mm,297mm},
    left=20mm,
    right=20mm,
    top=20mm,
    bottom=20mm,
}

Example margin setup in CSS of all elements paragraph

p {
    margin-top: 100px;
    margin-bottom: 100px;
    margin-right: 150px;
    margin-left: 50px;
}

Margins in machine learning

Margin classifier may use in analysis of data and recognize of patterns, used for classification

margin classifier

740 questions
28
votes
3 answers

android margins not working when dynamically inserting views

I have a simple view:
John Ward
  • 910
  • 2
  • 10
  • 21
28
votes
5 answers

To use layout_marginLeft in a button style applied as a theme?

I used an attribute layout_marginLeft="30dip" in a style defined for buttons. When I apply this style individually for each button, the left margin is placed as I wanted. But then I defined a theme, where I assigned my button style to the attribute…
kiki
  • 13,627
  • 17
  • 49
  • 62
27
votes
5 answers

Remove margin in android toolbar icon

I get this weird margin in my app toolbar between icon and navigation icon in the toolbar (as in the image). I've got no idea about where it comes from and how to remove it. After searching the internet I found…
Anish Silwal
  • 980
  • 1
  • 10
  • 24
23
votes
1 answer

How to set layout_margin programmatically?

I want to know how to set layout_marginLeft, layout_marginTop, layout_marginBottom programmatically using screen height and width. Please help me. Thanks Monali
Monali
  • 1,966
  • 12
  • 39
  • 59
22
votes
1 answer

What is Leading Margin in Android?

What is the meaning of leading margin as in LeadingMarginSpan LeadingMarginSpan.Standard LeadingMarginSpan.LeadingMarginSpan2 The documentation for LeadingMarginSpan says A paragraph style affecting the leading margin. There can be multiple …
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
22
votes
4 answers

Reduce left-margin in Visual Studio 2015

Please can anyone tell me how I can get rid of the margin at the left edge of the editor in VS2015? I don't mind the "indicator margin", but there is now a large space between that and the start of my code. In Tools-Options - Text-Editor - General…
Coder_Dan
  • 1,815
  • 3
  • 23
  • 31
21
votes
1 answer

RecyclerView different itemDecoration for different items

I am using the RecyclerView in my application and for the needs of my design, I need to have different margins between the items in my list (For example: the space between the first two items to be 16dp, the space between the second and the third…
Sandra
  • 4,239
  • 10
  • 47
  • 80
20
votes
9 answers

How to avoid double space between items when using RecyclerView with StaggeredGridLayoutManager?

I'm using RecyclerView with StaggeredGridLayoutManager to make a two-column list. But how to set a right margin between left column and right column. I have used this code to make right margin from top, but how to solve double space between to…
19
votes
2 answers

Removing axes margins in 3D plot

I spent last few days trying to find a way to remove tiny margins from axes in a 3D plot. I tried ax.margins(0) and ax.autoscale_view('tight') and other approaches, but these small margins are still there. In particular, I don't like that the bar…
dolphin
  • 1,192
  • 10
  • 27
17
votes
1 answer

Automatic adjustment of margins in horizontal bar chart

I need to produce a series of horizontal grouped bar charts. The barplot function does not automatically adjust the margins of the plot, therefore the text gets cut off. graphics.off() # close graphics windows test <- matrix(c(55,65,30,…
Max C
  • 2,573
  • 4
  • 23
  • 28
16
votes
3 answers

Item with margin-top has margin outside of containing box

I have something to this effect: #div { background: green; width: 200px; height: 100px; } h1 { margin-top: 100px; } (And obviously there is some HTML to go with it.) Now when viewed in the browser the h1 shows at the very top of the…
Chaim
  • 2,109
  • 4
  • 27
  • 48
16
votes
5 answers

setting horizontal and vertical margins

What is the method to set horizontal and vertical margins in a panel? (The same we have in html style="margins:30px")
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
14
votes
1 answer

What does "Constrain to margins" mean in Interface Builder in Xcode 6.0.1

I understand the purpose of "Spacing to the nearest neighbor" (in Xcode 6, more especially in Interface Builder) but what is the point of "Constrain to margins"? Is there a link between "Spacing to the nearest neighbor" an edge of a particular…
King-Wizard
  • 15,628
  • 6
  • 82
  • 76
13
votes
1 answer

Java - JPanel with margins and JTextArea inside

I want to create something like this: Main panel has its margins (x), and TextArea in the center of that panel which almost fills up the panel. At the bottom is another panel with custom size (height y), which can be toggled visible and unvisible…
Jan Kowalski
  • 233
  • 2
  • 3
  • 7
13
votes
1 answer

How to add more margin to a heatmap.2 plot with the png device?

I have the following example data: sel = structure(c(1.29955, 2.52295, 1.11021, 2.52008, 8.20255, 8.50118, 5.82189, 5.8108, 1.55928, 8.2552, 5.25119, 5.55055, 1.22525, 3.152, 3.9299, 5.50921, 5.25591, 5.11218,…
Niek de Klein
  • 8,524
  • 20
  • 72
  • 143
1
2
3
49 50