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
12
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
  • 7,839
  • 18
  • 67
  • 129
11
votes
4 answers

Does the setMargins method in iText works?

Does the setMargins method in iText work in a conventional manner? I have tried the following: System.out.println(f.exists()); Document document = new Document(PageSize.A4,36,36,36,36); PdfWriter writer = PdfWriter.getInstance(document, new…
jayunit100
  • 16,490
  • 20
  • 83
  • 152
11
votes
2 answers

CSS page headers - how to use print margins?

I can get a header to print on each page, but I'm new to print margins. I thought the @page css would work, but it does not seem to affect page margins. If I set the margins on the body, it works on page one, but subsequent pages start the top…
Ted Scheckler
  • 1,229
  • 2
  • 14
  • 30
11
votes
1 answer

Margin in MigraDoc

I'm using MigraDoc and PDFsharp and I need to set different margins for each page in my PDF document. Using document.DefaultPageSetup.RightMargin = 20; document.DefaultPageSetup.LeftMargin = 20; I obtain that all the pages in my document will…
Martina
  • 790
  • 11
  • 22
10
votes
1 answer

how to remove the gap between subplots and around

I am plotting two subplots (2x1) in one figure. I would like to remove all the spacing between two subplots and remove the xlable and xlabel ticks for the top subplot too. Also, I am trying to remove all the spacing outside the subplot. I try…
user1285419
  • 2,061
  • 7
  • 43
  • 61
9
votes
3 answers

Using RelativeLayout dynamically and setting margins in px, dp, inch, mm

My application is just a modified ImageViewer with the options of zooming and dragging. Containing that modified Imageviewer there is a RelativeLayout (that I want to use as an AbsoluteLayout). Then, new elements can be added to the layout to…
Adam Schmit
  • 201
  • 2
  • 4
  • 9
9
votes
2 answers

Add margins with grid R package

I don't know how to specify margins for PDF printing with grid R package. I create a grid.arrange() object and I put it in a PDF like this : pdf('test.pdf',11.69,8.27) grid.arrange(textGrob('text1', gp=gpar(cex=4)), ncol=1,…
Ben
  • 175
  • 1
  • 8
8
votes
2 answers

R Two graphs with lines going from one to the other

I want to plot some point in a normal graph and link those points to a map displayed under it. What I would like to have basically is that (here I added manually the links): Somehow I should use segments with pdt=T to write outside the margins, but…
Simon C.
  • 718
  • 7
  • 29
8
votes
1 answer

CSS 2.1 spec: 8.3.1 Collapsing margins: cannot properly interpret special case: clarification sought

Section 8.3.1 of the CSS 2.1 spec on collapsing margins states: If the top and bottom margins of an element with clearance are adjoining, its margins collapse with the adjoining margins of following siblings but that resulting margin does not…
John Sonderson
  • 2,852
  • 6
  • 26
  • 41
8
votes
2 answers

Set content margins from stylesheet

I'm struggling to set content margins to zero from QLayout objects in Qt with a stylesheet. I can remove them with QLayout::setContentsMargins(0, 0, 0, 0) but I would prefer to do it from stylesheet.
Ben
  • 956
  • 2
  • 10
  • 23
7
votes
3 answers

How to crop PDF margins using pdftk and /MediaBox

I used pdftk to uncompress a PDF and then opened it as a text file. I want to edit the /MediaBox field, which is in my case /MediaBox [0 0 612 792] I would like to reduce the margins, for instance /MediaBox [100 0 512 792] Unfortunately it…
RockScience
  • 15,586
  • 22
  • 74
  • 117
7
votes
1 answer

Stack View constrained to margins leaves no margin

I got some problem that I'm not sure how to solve... I'm working on some lessons which are a little bit old (they are done in Swift 3), and I got a problem with constraints and margins. I'm just following the lesson and it says that for that stack…
7
votes
4 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
  • 7,525
  • 27
  • 75
  • 125
7
votes
1 answer

What is the value of default EditText padding?

I have an EditText defined like this:
netimen
  • 3,677
  • 5
  • 35
  • 57
7
votes
1 answer

How to shrink the inner margins of legend box

I am plotting a graph as follows. The code I used to generate the legend is legend(4, 20, c("Placebo", "Progabide"), lty=1:2, pch=c(1,16), col=1:2, cex=0.8) The problem is that the inner margin (in the vertical direction) is too big and I want to…
wen
  • 1,785
  • 4
  • 21
  • 36
1 2
3
45 46