Questions tagged [line]
The shortest distance between two points. Or, a row of characters in text output.
7,189
questions
0
votes
0
answers
7
views
how to give line feed in the body msg of the mail for sending
I want to send a mail to my colleagues in an automated format. For this I have a code but the issue is I am unable to give line feed or hard enter in between the lines. Here is my code:
Dim s
Set s = ...
0
votes
1
answer
23
views
Transposing a big data file in one line [Python/Unix]
I have a (big) file containing values as such :
1 2 3 4 5 6 7
8 9 10 ... N
I want to be able to transpose the data values inside this file in on line to get the final result :
1 2 3 4 ... N
0
votes
0
answers
7
views
Draw svg line on scroll from section
I have a svg file on my website that drows in scroll, but I would like the animation start from particular section, can you help me please ?
Code JS :
$(document).ready(function() {
var myline = ...
1
vote
1
answer
30
views
Multiple lines with data labels (R)
I would like to plot multiple lines with data labels but all my attempts have returned an error message so far.
ggplot(data, aes(year)) +
geom_line(aes(y = var1), color = "#E20335", size =...
-1
votes
0
answers
18
views
search line number of text file start with ( | [S]) in R [closed]
I wrote this code, but it's not finding the line numbers of text starting with " | [S]"
#Read data file
d <- readLines('C:/Users/Donya/Desktop/fdr.prn.txt')
#Find lines which start with ...
0
votes
0
answers
21
views
Finding multiple lines in a point cloud using ransac
I have a point cloud stored in a text file in the form of x and y as shown in the image. I need to find multiple lines representing each side for the shown point cloud using ransac so that I can split ...
0
votes
0
answers
17
views
Shortest distance between a circular arc and a line segment
I need to find the shortest distance between a 2d circular arc and a finite non-zero length line segment. Would be great to also know the two points, one on the arc and the other on the line segment ...
1
vote
1
answer
32
views
How can I remove the spacing between tables in Outlook?
I'm trying to create this email template and I've been scratching my head but can't seem to figure out how to get rid of the 2 white lines and the space in the attached image. When I view the code in ...
1
vote
1
answer
30
views
Several line plots by group in one PDF
I would like to plot prices for different resources over the years by their measurement unit with one plot for each resource and all plots in one PDF.
My data for three of the resources in my full ...
0
votes
1
answer
18
views
used wget to download whatsapp and the file name is whatsapp.exe@.... with more suffix after .exe
I try to use wget to download the file at Windows10, which is the WhatsApp windows version.
the link is https://web.whatsapp.com/desktop/windows/release/x64/WhatsAppSetup.exe
my command is:
wget --...
0
votes
0
answers
17
views
On Line Renderer will Instantiate GameObject to make a bridge (Unity c#)
I am trying to make a bridge using Line Renderer.
With this script i write on mouse click straight line and when i want somehow use
"startPos" and "endPos" to make that streched ...
-4
votes
1
answer
57
views
Leetcode 2152, minimum Number of Lines to Cover Points. Fail at when x-axis is same [closed]
Here is solution that able to pass all test cases. I tried to convert it to javascript, but it fails this test case. (When 2 points have the same x-axis)
[[-4,0],[0,4],[-1,-5],[2,3],[-4,1],[-4,3],[-1,...
0
votes
1
answer
17
views
Differentiating the line types in plotting in python
I'm having trouble choosing the line types for the figure below. It looks like some kind of intricate figure. Do you have any suggestions for determining the line types?
My script below is:
fig, ax1 = ...
1
vote
2
answers
43
views
How to save each line of a file to a new file (every line a new file) and do that for multiple original files
I have 5 files from which i want to take each line (24 lines in total) and save it to a new file. I managed to find a code which will do that but they way it is, every time i have to manually change ...
0
votes
1
answer
39
views
How to make Two lines coincident in ThreeJS?
I have two lines that will be created by the user at runtime, so the positions of these two lines are dynamic. I want one line to coincide with another line as shown in the below image.
How should I ...
0
votes
1
answer
23
views
Matplotlib creates blank chart for rows that have values in pandas dataframe
I have dataframe that is similar to this:
index 5 45 60 85 6 133 ....... 137 141 number_points
0 0.35 0.63 NaN 0.78 0.84 0.67 0.84 NaN ...
0
votes
1
answer
14
views
python remove "Next Line" Character (showing up as \x1b[1B)
I am pulling output with paramiko via ssh from a firewall.
The output is showing like this:
l = ['Total active sessions : 0\r\x1b[1BActive TCP sessions : 0\r\x1b[1BActive UDP sessions : 0\r\x1b[...
0
votes
0
answers
18
views
How to make automatic multiple hard-coded lines
I have about 2600 specific values, which I have saved in a excel sheet, which are a result of a measurement.
And I want to make these 2600 lines hard-coded for test purposes. They will print the ...
2
votes
1
answer
34
views
Bold horizontal and vertical lines in Longtable
I am using Longtable. For the following MWE, how can I make the third vertical line and the second horizontal line thicker than the other lines?
\documentclass[12pt, twoside]{article}
\usepackage{...
0
votes
0
answers
29
views
Line bot sdk OpenSSL SSL_connect: Connection reset by peer in connection to [api.line.me]
Using laravel Line Bot SDK push message to user sometime working, some time show
Error OpenSSL SSL_connect: Connection reset by peer in connection to [api.line.me]
0
votes
1
answer
47
views
Batch removing X number of lines from file from Nth line
I am trying to remove a tag from a set of html files and I can't seem to find the right commands to do the job.
I am able to find the line number of the tag; the tag is a total of 10 lines that need ...
-2
votes
0
answers
21
views
Waze Search Bar in landscape mode takes half of screen
Normally we are using Waze in own town and we do not need navigation feature, just for info about accidents or events on the road - that is it. If I keep phone vertically so picture is enough good. ...
0
votes
1
answer
15
views
Visual Studio Code select same position above and below not the whole line before and after (see image)
I'm using visual studio code and run into a weird problem. I'm not sure how I got here - I could have accidently pressed a shortcut unknowingly.
I'm trying to select a phrase, link or anything that ...
0
votes
1
answer
27
views
Plotting a regression line from a known regression equation
I have the following code that calculates a non-parametric regression equation (not lm) from all pairs of data. In this code 'mdns' is the median slope value and 'mdni' is the median intercept so I ...
0
votes
1
answer
27
views
Import only new lines from file A to file B VBA
I would like to import the lines that have been added in my source file into my destination file BUT I would like these lines added in my destination file not to be pasted after but before the others. ...
0
votes
2
answers
15
views
Multiple Line plot from a dataframe
from a dataframe I need to plot by month the count of events to know which ones are more likely to happen in a given month. I don know how to use the column Count.
df["MONTH"]= pd....
-4
votes
2
answers
37
views
To which quarter of the line segment does a given point belong?
If we divide a line segment (with clear source and destination points) to some (equal) parts e.g. 4 quarters, how can we efficiently determine to which quarter a given point belongs?
For example, ...
0
votes
1
answer
22
views
how to draw smooth line without MSAA
i am figuring out how to draw smooth line using OpenGL ES.
i have done with part of this task as the following steps:
make two triangles to form the line.
make its border transparent.
you can refere ...
0
votes
0
answers
13
views
how to take a draw from user in flutter
I need to take from user a draw (line -dashed line-dash) and know what he draw
Line
Dashed Line
Dash
0
votes
1
answer
33
views
Java multiplication table, Writer writes in second line instead of first [closed]
It's supposed to be a multiplication table in the shape of a square,
but the writer doesn't write the numbers in the first line and the first column.
try {
File file = new File("multi.txt&...
1
vote
1
answer
66
views
How to clear my BezierCurve vector to stop writing coordinates on top of each other?
I have built a Bezier Curve tool and each time the coordinates for each curve segment are calculated they are stored in a vector. Every single frame I am adding the entire curve's points on it over ...
0
votes
1
answer
44
views
How to add "read more" at end of the 3rd line in UILabel in Swift
I need to add read more at the end of the 3rd line in label.
like this i need:
Note: i have tried this answer Add "...Read More" to the end of UILabel but here read more action is not ...
0
votes
0
answers
13
views
How to make a histogram smaller inside another line plot
I wish to make a plot just like the following:
plot(cp1cold,"overall",col=4,ylab="RR",xlab="Temperature",xlim=c(-5,35),
ylim=c(-0.5,3.5),axes=F,lwd=1.5)
lines(cp1hot,&...
0
votes
1
answer
33
views
How can I put a HTML tag in one line in VS Code?
The VS Code in my Mac pc is automatically breaking the customer HTML tags in new lines. This is making the length of the whole code much bigger.
For example, I want below code in one line
<...
0
votes
0
answers
20
views
What's wrong with shader?
I tried to make a shader based on this video https://www.youtube.com/watch?v=S6eRVwAtfOM&t=270s but after applying the material, I see that it has a black outline, it does not glow like that, even ...
0
votes
1
answer
14
views
Slider demo for a contour plot in python
I am trying to create a slider demo contour for a sinusoidal function using python, but I do not know how to code the line that we will manipulate for a contour plot slider. I appreciate anyone that ...
0
votes
0
answers
16
views
Why is my multicolor line plot much slower than the original/default script?
I am able to plot a multicolor line from a dataframe. To determine the color there is a extra column with the demanded color.
example data frame:
date,gradient,color
2022-04-15 10:00:00,0....
1
vote
1
answer
32
views
Matplotlib axline is vertical when it should be at an angle...until I change the dates/times for the chart
I'm trying to draw an angled line on a chart with Matplotlib, but there are times when it just draws a vertical line, incorrectly. It appears to be a problem with the dates/times. It's like there's a ...
-1
votes
2
answers
74
views
draw a X letter above image
I'm writing for a university project a software in java - javafx but I have some problems in implementing a vote function graphically speaking.
I have a political party icon like this:
I want in java ...
1
vote
0
answers
21
views
How to make lines on Grid using canvas in JavaFX?
How to make lines on Grid using canvas in JavaFX?
How to make lines on Grid using canvas in JavaFX. Where I have a case study as follows:
I have a 10 x 10 grid, where each line will be formed ...
0
votes
1
answer
17
views
Disable tooltip for Line chart for one line
I am creating a line chart with multiple lines. I am trying to disable the tooltip that pops up over one of the lines. Is it possible to disable the tool top for one of the lines, but not all of ...
0
votes
0
answers
8
views
Problem with my code- Univariate regression plot not showing lines
this will sound very basic, but I cannot find the solution to this problem with my code. I did a univariate regression (regr1) between the 2 variables immigrate_policy and lrgen. In plotting the ...
-3
votes
1
answer
45
views
Python Cartesian plane plot and line
I want to create a cartesian plane in python that looks similar to the attached image, where I have 2 sets of coordinates e.g. (7,7) (17.4,20), and a line going through, the information I would have ...
1
vote
1
answer
35
views
Coloring lines in ggplot 2
I have the next dataset.
code2 clinical.pathway variable value
1 6002536 Primary Rehabilitation 1 19
2 6002536 Primary Rehabilitation 2 23
3 6002536 Primary ...
0
votes
1
answer
33
views
Use free_y scale on first axis and fixed on second + facet_grid + ggplot2
Is there any method to set scale = 'free_y' on the left hand (first) axis in ggplot2 and use a fixed axis on the right hand (second) axis?
I have a dataset where I need to use free scales for one ...
0
votes
1
answer
40
views
Extract specific lines from a text
I want to extract the warnings from this text that are related to all the files that are obj_x.o, but they are right at the end of the lines and i have to check them, but then, i cannot print the next ...
0
votes
1
answer
52
views
Markers in beginning and end of line plots
I have 5 datasets that have thousands of x and y coordinates grouped by 'frame' that create 5 trajectory plots. I'd like to mark the first and last coordinates for each plot but having difficulty ...
-1
votes
1
answer
37
views
glutPostRedisplay() causing extreme lag when drawing in GLUT
I am using GLUT to draw a sequence of lines and my glutPassiveMotionFunc(passiveMotion); (no button press mouse motion) draws a line from the end of the line sequence to wherever the cursor is. This ...
0
votes
1
answer
26
views
Polygon function under lines
I have a plot and i added a line with the line function and I would like to fill the area below the new line with the polygon function. But I find it hard since I don't know what to put in polygon.
...
0
votes
2
answers
74
views
VBA Change Line Color of Chart with ColorIndex
The code below works and sets the color of the four lines with the three values for rgb. The three rgb values are filled in an array (Clr) which is not very clear. Is there an alternative way for ...