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

687 questions
130
votes
7 answers

Error in plot.new() : figure margins too large, Scatter plot

I've looked in different questions for a solution and I've tried what was suggested but I have not found a solution to make it work. Everytime I want to run this code it always says: Error in plot.new() : figure margins too large and I don't know…
user3530361
  • 1,311
  • 2
  • 9
  • 4
125
votes
8 answers

Is it a bad practice to use negative margins in Android?

Demo of negative margin:                           The scenario Overlapping views by setting a negative margin to one of them so that it invades the bounding box of another view. Thoughts It seems to work the way you'd expect with overlapping of the…
Juan Cortés
  • 18,689
  • 8
  • 63
  • 88
83
votes
5 answers

Why are my div margins overlapping and how can I fix it?

I don't understand why the margins of these divs are overlapping. .alignright {float: right} #header .social {margin-top: 50px;} #header .social a {display: inline-block;} #header .social .fb {width: 64px; height: 1px; padding-top: 60px;…
Atif
  • 9,948
  • 19
  • 60
  • 95
71
votes
10 answers

Android: Align Parent Bottom + Bottom margin

I've used a relative layout and I want to set the button at bottom of the screen, However this puts it all the down to the bottom and I would like to have some margin so it there's some space between the end of the screen/view and the button.…
Jacob
  • 2,872
  • 5
  • 22
  • 32
55
votes
5 answers

Increase distance between title and plot in matplolib?

I have a simple plot in matplotlib and I would like to increase the distance between the title and the plot (without using suptitle because it does not work on the version I use on a server). How to do that ?
Vincent
  • 50,257
  • 51
  • 171
  • 339
49
votes
12 answers

How to set a top margin only in XAML?

I can set margins individually in code but how do I do it in XAML, e.g. how do I do this: PSEUDO-CODE:
Edward Tanguay
  • 176,854
  • 291
  • 683
  • 1,015
42
votes
4 answers

LaTeX book class: Twosided document with wrong margins

I am trying to write my thesis in latex... Cannot get the layout straight though :? I'm using the following document class: \documentclass[11pt,a4paper,twoside,openright]{book} My problem is: on the odd numbered pages there is a big margin right,…
fgysin reinstate Monica
  • 10,067
  • 10
  • 54
  • 81
35
votes
2 answers

marginal total in tables

I have a data frame with a number of infections identified from clinical isolates at different dates. So far I have organised the data into a shape that I want to start working with. I am trying to prepare a series of tables of tables for the…
John
  • 32,659
  • 27
  • 74
  • 102
33
votes
2 answers

Increase width of entire HTML Rmarkdown output

I am looking to increase the overall width of my HTML Rmarkdown output. When producing PDF documents from Rmarkdowns there is an option to set the margin in the YAML section of the Rmd (ex. geometry: margin=.5in). I am looking for something similar…
NateSully
  • 341
  • 1
  • 3
  • 7
32
votes
5 answers

How to set margin dynamically in Android?

I am currently doing an android application that contains customize alert dialog. It contains a button , but i can't set the margin for the button . the code is given below. setmargin method is not working AlertDialog.Builder myDialog = new…
user1057197
  • 419
  • 1
  • 6
  • 15
31
votes
3 answers

Margin on every element except last

I have 2 lines of CSS for setting margin on every element except the last one. Is there a way to combine it into 1 line? This is what I have currently(working): .work img { margin-right: 10px; } .work img:last { margin-right: 0px; } I…
user4756836
  • 1,035
  • 3
  • 17
  • 37
31
votes
5 answers

jQuery Screen Resolution Height Adjustment

In order to better balance out a page I am working on I would like to find a way to increase the top margin of a DIV depending on the screen resolution. What is my best way to set these dimensions with jQuery or Javascript?
Brad Birdsall
  • 1,693
  • 3
  • 23
  • 26
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
  • 12,017
  • 16
  • 46
  • 62
28
votes
5 answers

Android set navigation drawer list to open exact half of the screen for all device screen

I want to open the drawerlist to the half of the screen for all different device. i tried hard coded values for layout_margineleft 200dp or 100dp to the drawerlist. but it doesn't work in all device it different from device to device. so how can i…
Mayur Raval
  • 3,080
  • 6
  • 31
  • 56
24
votes
3 answers

android margins not working when dynamically inserting views

I have a simple view:
John Ward
  • 830
  • 8
  • 20
1
2 3
45 46