Questions tagged [spacing]

Refers to the blank space (page or screen) between two objects or entities.

Refers to the blank space (page or screen) between two objects or entities.

1104 questions
17
votes
2 answers

Adding Vertical Space in Sphinx Documents

I am using sphinx to build latex and HTML documents with a lot of figures and enumerated lists. When I use figures in the middle of text outside of enumerated lists, the spacing is fine in both latex and HTML with and without captions. There is…
Alex
  • 271
  • 3
  • 7
16
votes
2 answers

How to change separation between tick labels and axis labels in Matplotlib

My axis labels often look not good (too close to tick labels) when I use Matplotlib. How to set distance between tick labels and axis label? I just need to enlarge distance between "Number of stars" label and corresponding tick labels. Maybe latex…
drastega
  • 1,581
  • 5
  • 30
  • 42
15
votes
2 answers

R plotly subplot add space between plots

I want to add space between plots but when I play with margin, it either overlaps or cuts. Here is the code: library(plotly) plotList <- function(nplots) { lapply(seq_len(nplots), function(x) plot_ly()) } s1 <- subplot(plotList(6), nrows = 2,…
Matt Dnv
  • 1,620
  • 13
  • 23
15
votes
2 answers

How to reduce the separation from other text using LaTeX minted?

I want to use the minted package to give me syntax highlighting but it has a spacing of more than a…
cvandonderen
  • 153
  • 1
  • 4
15
votes
2 answers

Space between widgets in QVBoxLayout

I'm trying to make a sign-in form with Qt5.0.1. I created 2 Widgets and I put my labels and line edits in one of them, and my button in other one. Then I put these 2 widgets in a QVBoxLayout, but the space between two widget in layout is more than…
Aidin.T
  • 731
  • 3
  • 10
  • 25
13
votes
4 answers

Add extra spacing between a subset of plots

I'm trying to output 6 figures into one image, in a 3x2 layout. I'd like to place extra space between the top row and the bottom two rows. Is this possible using R? I've looked through the documentation for par and plot and can't seem to find an…
chrisamiller
  • 2,712
  • 2
  • 20
  • 25
13
votes
3 answers

TCPDF remove

For some reason TCPDF is adding space to the left when I use writeHTML() to print an unordered list. By default, the PDF has a margin of 5 (set with $pdf->SetMargins(5, 0, 10, true);) but list items get indented. I set…
Arne Cordes
  • 581
  • 1
  • 6
  • 22
13
votes
3 answers

d3 autospace overlapping tick labels

Is there a way in d3 to not draw overlapping tick labels? For example, if I have a bar chart, but the bars are only 5 pixels wide and the labels are 10 pixels wide, I end up with a cluttered mess. I'm currently working on an implementation to only…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
12
votes
1 answer

How to control line height in

styled as inline

Hopefully this is pretty straight forward, just can't work it out. I need to style a paragraph as 'inline' but i also need to make the line spacing of the para very tight ... using css i seem to be able to make the line-height larger by styling…
w1l
  • 127
  • 1
  • 1
  • 5
12
votes
4 answers

Python: how to make an histogram with equally *sized* bins

I have a set of data, and want to make an histogram of it. I need the bins to have the same size, by which I mean that they must contain the same number of objects, rather than the more common (numpy.histogram) problem of having equally spaced…
astabada
  • 1,029
  • 4
  • 13
  • 26
12
votes
6 answers

CSS horizontal menu - equally spaced?

I have a standard CSS menu, made with UL and LI tags. I need them to get to cover the whole page, horizontally (not my real case, but I'll take this to simplify the situation). However, the items are created dynamically and so I'm not able to…
Alpha
  • 7,586
  • 8
  • 59
  • 92
11
votes
1 answer

How do I update the legend label spacing after legend font size is changed in matplotlib?

I'm writing a script that saves a figure with multiple formatting styles among which is the font size of legend text. The legend.labelspacing in rcparams or the matplotlibrc file specifies the label spacing in fractions of the font size, so I might…
mrclary
  • 489
  • 3
  • 16
11
votes
5 answers

Spacing between elements

I'm a complete begginer in CSS and HTML and I'm building my first basic page for training. What I want do do now is have spacing between two elements without using
. Currently I'm using this: .formClear { clear:left; height:25px; } It works…
danielaG
  • 129
  • 1
  • 2
  • 4
11
votes
4 answers

Common classes for margin and padding

I have declared common css classes for common margin and padding classes in my css so that i can use them without making other css declarations too specific. For example : .padTB5{padding:5px 0;} .pad10{padding:10px;} .mTop10{margin:10px 0 0;}…
Mahima
  • 489
  • 1
  • 5
  • 17
11
votes
2 answers

How to minimize visual width of (binary) search tree?

Introduction I'm building an HTML5 web application that creates a visual representation of a binary search tree from a given list of numbers. Currently, I have an algorithm which calculates the visual spacing between nodes on each row based on the…
caleb531
  • 4,111
  • 6
  • 31
  • 41
1 2
3
73 74