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
164
votes
8 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,651
  • 2
  • 11
  • 5
138
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
  • 20,634
  • 8
  • 68
  • 91
101
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
  • 57,703
  • 61
  • 205
  • 388
92
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
  • 10,623
  • 20
  • 63
  • 96
73
votes
11 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
  • 3,521
  • 6
  • 26
  • 34
54
votes
4 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
  • 551
  • 1
  • 4
  • 7
52
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
  • 189,012
  • 314
  • 712
  • 1,047
50
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,277
  • 4
  • 20
  • 47
47
votes
5 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
  • 11,329
  • 13
  • 61
  • 94
38
votes
6 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
  • 479
  • 1
  • 6
  • 15
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
  • 41,131
  • 31
  • 82
  • 106
34
votes
6 answers

Bootstrap Spacing classes not working

I am trying to add spacing to my div/ul as shown in Bootstrap Utilities Documents. But it's not working at all and I couldn't even trace the class in Firebug. http://v4-alpha.getbootstrap.com/components/utilities/#spacing My HTML Code
TTCG
  • 8,805
  • 31
  • 93
  • 141
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,753
  • 3
  • 23
  • 27
29
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,250
  • 6
  • 34
  • 57
28
votes
5 answers

How to set margins 0 on print preview?

Where am i doing wrong? This is the normal print preview: But I want to see this picture (without dragging margin arrows) This is the css codes and preview:
uzay95
  • 16,052
  • 31
  • 116
  • 182
1
2 3
49 50