Questions tagged [baseline]

243 questions
4
votes
0 answers

Set NSAttributedString center vertically each line using baselineOffset

I want to set label's line height and I use minimumLineHeight and maximumLineHeight of NSMutableParagraphStyle extension UILabel { func setTextWithLineHeight(text: String?, lineHeight: CGFloat) { if let text = text { let…
naljin
  • 439
  • 3
  • 10
4
votes
1 answer

In Flutter, how can I define a baseline for a Stateless widget?

I have created a stateless widget, and I want to define a baseline for it, so that I can use it with the Baseline widget (https://docs.flutter.io/flutter/widgets/Baseline-class.html). How can I do that?
Marcelo Glasberg
  • 29,013
  • 23
  • 109
  • 133
4
votes
4 answers

Override JComponent.getBaselineResizeBehavior() but keep Java5 compatibility

For my Swing project, I need to support both Java 5 and Java 6. I have defined a custom JComponent (call it Picture) and, after embedding it in a JScrollPane, I put it in a JPanel that uses DesignGridLayout manager. DesignGridLayout supports…
jfpoilpret
  • 10,449
  • 2
  • 28
  • 32
4
votes
1 answer

Achieving modulus behaviour in CSS calc() – is it possible?

I'd like to use calc() to make the height of an element dependent on the screen size, but since I'm conforming to a baseline grid, this height should always be a multiple of my defined $baseline. I can see that the mod operator is no longer widely…
Elise
  • 5,086
  • 4
  • 36
  • 51
4
votes
1 answer

Calculate Font baseline in WinRT

I'd like to find out the baseline of a font in WinRT. I've also calculated the size of text for a particular font by creating a dummy TextBlock, but I'm not sure how to calculate the baseline. Is this even possible in WinRT?
Tom Lokhorst
  • 13,658
  • 5
  • 55
  • 71
3
votes
1 answer

How to correct sentinel 2 baseline v0400 offset?

I'm processing Sentinel 2 L2A data in sen2r as downloaded from googlecloud and spotted an issue: if computing NDVI from bands 4 and 8 at 10 m resolution, I get an extreme offset after January 26th as exemplified by the last 7 values in the following…
Allan
  • 31
  • 1
3
votes
2 answers

Adjust two controls vertically by their font baseline at runtime

In my applications there are many cases when I have several groups of TLabel followed by a TEdit on my Forms, you know... when some properties needs to be edited. I want to align vertically those controls so that their font baseline will be on the…
Marus Gradinaru
  • 2,824
  • 1
  • 26
  • 55
3
votes
1 answer

How to compare baseline and GridSearchCV results fair?

I am a bit confusing with comparing best GridSearchCV model and baseline. For example, we have classification problem. As a baseline, we'll fit a model with default settings (let it be logistic regression): from sklearn.linear_model import…
3
votes
2 answers

How to subtract baseline from spectrum with rising tail in python?

I have a spectrum that I want to subtract a baseline from. The spectrum data are: 1.484043000000000001e+00 1.121043091000000004e+03 1.472555999999999976e+00 1.140899658000000045e+03 1.461239999999999872e+00 …
T Walker
  • 330
  • 1
  • 3
  • 12
3
votes
2 answers

Baseline correction for spectroscopic data

I am working with Raman spectra, which often have a baseline superimposed with the actual information I am interested in. I therefore would like to estimate the baseline contribution. For this purpose, I implemented a solution from this question. I…
Snijderfrey
  • 245
  • 3
  • 12
3
votes
2 answers

Aligning div to baseline of the first line of another div?

I've got two divs and would like to align their baselines. However, one of the divs has more than one line of text and some embedded content, and while I'd like to align them to the top baselines, the browser seems to align to the bottom one. I've…
Jason Cooper
  • 404
  • 3
  • 11
3
votes
1 answer

css font-size and line-height not matching the baseline

I'm trying to do something that should be very simple but I've spent my day between failures and forums.. I would like to adjust my font in order to match my baseline. On indesign it's one click but in css it looks like the most difficult thing on…
user9234196
3
votes
2 answers

Machine learning Algorithms used by Elastic x-pack plugin

Elastic X-pack plugin predicts the dynamic baseline for our data and according to that specifies the anomalies out of the box. All these stuff are getting done behind the scene. My question is this how xpack learns from previous data and dynamically…
hyeganeh
  • 348
  • 2
  • 11
3
votes
1 answer

Extend baseline of stem plot in matplotlib to axis limits

How can I make the baseline extend to the axis limits instead of ending with the last data points when generating a stem plot with matplotlib?
jboss
  • 33
  • 4
3
votes
2 answers

Align TextView baseline and another TextView bottom

I have RelativeLayout and two TextView, one of which with background. On image two baselines aligned, but I want to align baseline of one and background bottom of another. Here is my xml code.
Deni Erdyneev
  • 1,779
  • 18
  • 26
1 2
3
16 17