7,448 questions
0
votes
0
answers
28
views
Power BI Gantt Chart line colours
Is it possible to change the line colors within a project? I can have a different color for each project but I want to color child items based on a status.
0
votes
1
answer
196
views
Create a line type in LaTeX/TikZ as -\- and |-| that goes between two points [closed]
It is usually a problem to draw stepped lines between two points (A) -- (B).
I created a macro to do it, but it would be more elegant if there was a "line type" that will take care of it,
...
2
votes
3
answers
106
views
Drawing a vertical line in Gnuplot and adding a key/legend to it
reset
set encoding utf8
set terminal pdfcairo size 20cm,20cm font "STIX Two Math, 22" enhanced
set output "straight-lines.pdf"
#
set grid linetype 0 linewidth 1 dashtype 3 ...
0
votes
1
answer
71
views
Is there a way to draw a dashed line on a MQL5 chart that contains two colors?
I have an indicator that draws dashed lines in red or blue as needed for support and resistance levels. However, I have a difficult time seeing the lines on the black background charts, so I would ...
1
vote
0
answers
43
views
LINE Login Kit same channel for multiple regions
Line says for a different region, you need to create new channel.
But during testing, when region is configured as Japan, we can login from multiple other regions.
And ChatGPT is also saying it's OK.
...
0
votes
1
answer
45
views
TradingView automatically draw segments between two segments
I would like to automatically draw quarter and midpoint lines between two lines already drawn manually.
How can I retrieve information about the two lines already drawn ?
Exemple
The blue lines are ...
0
votes
0
answers
31
views
How to align line with many vertices?
I am trying to align a user-created centerline feature with the authoritative version of that same line. I need to keep the start and end points of the line sections generally where they are - aligned ...
0
votes
1
answer
57
views
How to fix line issue when clipping in SVG?
As you can see in the image clipping doesn't connect the lines perfectly due to the overlap from the top oval.
<svg width="400" height="200" xmlns="http://www.w3.org/2000/svg">
<!-- Define ...
1
vote
0
answers
62
views
Determine starting point through N bars for future line drawing Pine Script
Can't draw a line (line2) from the open bar where line1 ends...
line2 starts at the right bar, but the starting point is not the same - you need to get open
What I do wrong. The presented script is ...
2
votes
1
answer
91
views
Draw lines with different colors in single call in R [closed]
The polygon() help says
When multiple polygons are produced, the values of density, angle, col, border, and lty are recycled in the usual manner.
The lines() help says
For type = "h", col ...
0
votes
0
answers
30
views
VS Code theme extension: editorIndentGuide.activeBackground not working for all indentation levels
my vue2 code
I've already set it up editorIndentGuide. ActiveBackground1~editorIndentGuide. ActiveBackground6 attribute,
Also set the editorIndentGuide. Background1~editorIndentGuide. Background6 ...
0
votes
1
answer
334
views
How to render a dashed line in Victory Native XL?
I need to render a dashed line in a cartesian chart component of Victory-Native Xl. But I have found no clue on how to do that in the documentation.
Currently I can render a continuous line, but my ...
1
vote
0
answers
145
views
Issue with LINE Chatbot Rich Menu
I developed a LINE chatbot using Google Apps Script and encountered an issue while working with the rich menu. After generating three menus, I attempted to switch between them using richMenuSwitch. I ...
0
votes
1
answer
67
views
Is it possible to synchronize y-axis of three different stacked column plots in Power BI?
I have a Power BI page in which I want to visualize installed capacity of 3 scenarios at the same time with 3 different plots. I have filtered scenario to visualize results in each plot.
However, the ...
6
votes
4
answers
419
views
How to efficiently check if two line segments intersect?
I've referenced this answer (has an interactive desmos visualization) in a related question to develop this Javascript function:
function doLineSegmentsIntersect(a1X, a1Y, a2X, a2Y, b1X, b1Y, b2X, b2Y)...
0
votes
1
answer
70
views
How can you change the line type and colour of the values inside a certain subgroup in R with treemapify?
I want to change the dividing lines of the values that are inside a certain subgroup in a treemap in R.
I will use a dataframe that's already been used in another question (different question):
name &...
1
vote
1
answer
75
views
In css and html, I am trying to create two boxes side by side having two different colors without gap but with a slant at the center
I thought, it would be easy for me. But after trying much I am unable to achieve. Have been trying to create a box having two different colors side by side with equal size. BUT with a diagonal line in ...
1
vote
1
answer
67
views
Force direction of line vector
I have a line vector where each segment has a randomly assigned direction. The image shows an example (which consists of two connected lines),
How to set the direction of each line so that it is ...
2
votes
2
answers
62
views
How to add labels to 3d plot
I have the following code which generates a 3D plot. I am trying to label the plot lines, but they are not ending up where I expect them.
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d ...
1
vote
1
answer
148
views
Annotations on ChartJs shows on top of the plots when opaque is one
I'm trying to use ChartJS, this is what I get when using annotations plugin with opacity = 0.5
box1: {
type: "box",
drawTime: "afterDraw",
yMin: 22,
yMax: 40,
...
-4
votes
1
answer
71
views
Swap 2 lines in text file using assembler
this is my code for swapping 2 lines in DosBox assembly. I can not find out why is it printing the same thing from input.txt to out.txt. I think the problem is with line numbers (and user input). ...
0
votes
1
answer
45
views
How can I connect two groups of lines in ggplot2, when one group is a single black line and the other group is multiple coloured lines?
I am trying to create a plot that looks like this (mockup in Powerpoint):
Unfortunately, I can only manage to get this (A):
Or this (B):
Or this (C):
What I've tried:
data < - examp = ...
0
votes
0
answers
78
views
Issues with using * in command line in windows [duplicate]
I was trying to solve the reverse polish calculator problem where the arguments can be entered on the command line. I am facing a peculiar problem. The program name is rpc.exe
A command line entry as ...
1
vote
1
answer
91
views
Can you change the line ending on p5js
Im working on a project were I need to draw some thick lines. I noticed that by default p5js lines are rounded at the ends. Is there a way to change this behavior?
strokeWeight(50);
line(150,150,300,...
1
vote
2
answers
93
views
How to specify color with geom_line, geom_point, and annotate?
I'm trying to modify Jeff Lewis (2023-10-23) Polarization in Congress, and I cannot control the color in geom_line and geom_point.
The following seems to be the closest I've come to what I want with a ...
1
vote
1
answer
204
views
LINE Messaging API Webhook stuck in "standby" mode despite being set to "active"
I'm currently facing an issue with my LINE Messaging API webhook being stuck in "standby" mode even though it's set to "active" in the LINE Console and through the Messaging API.
...
1
vote
1
answer
112
views
C Programming language ansi c edition line counter [duplicate]
I have the following code from Kernighan & Ritchie's book:
#include <stdio.h>
int main() {
int c, nl;
nl = 0;
while((c = getchar()) != EOF)
if (c == '\n')
++...
1
vote
0
answers
124
views
How to use OpenGL3 + (VAO, VBO) to draw lines with mouse click?
I'm trying to use glfw+glad to draw lines with mouse click input coordinates. At first i tried to use glBegin, glVertex2f but they seems to be no longer supported in OpenGL3+. So i tried to use VAO, ...
0
votes
1
answer
48
views
Fix csv line splitting
I have a csv file data like below with nearly 1 million records
sno, name, address, mobile
1, shekar, hyderabad, 651584651
2, naveen, ban
galore, 61353384
3, eeshwar, warangal, 65133133
What I want ...
0
votes
2
answers
166
views
Implementation of 3D line clipping (Cohen-Sutherland clipping algorithm) - Stuck in infinite loop [closed]
I have followed instructions from Cohen–Sutherland algorithm to implement this.
Normally clipping algorithm works just fine. But sometimes it get stuck in infinite loop with some lines while clipping ...
2
votes
2
answers
107
views
Sequence color blocks inside ggplot2 plot area at specific coordinates
I have a simple line plot where I show a DNA sequence on the x-axis, done in the following way with ggplot2:
myseq <- "AGAATATTATACATTCATCT"
set.seed(123)
mydata <- data.frame(time=1:...
0
votes
0
answers
82
views
how to delete lines in python canvas one by one
I would like to delete line one by one after created but only last line delete. Here is my code:
import os
from tkinter import *
os.system("cls||clear")
def on_click():
global lines,...
1
vote
0
answers
178
views
Django allauth social login issue
I'm implementing social login using Facebook and LINE, but I'm facing a couple of issues:
Facebook Login Issue: After clicking the Facebook login button and entering the password to log in, the flow ...
1
vote
0
answers
73
views
Plotly line series animation: draw line continously instead of in steps?
I'm trying to produce an animated chart that will draw a couple of time-based line series smoothly over time.
I've managed to animate the line series using graph_objects. However, instead of having ...
0
votes
1
answer
81
views
Drawing iText7 Canvas lines does not always fill page
I have the following code to apply a full page grid to an existing A4 pdf document.
It works fine on pdfs I or others have produced with iText, but when I try to use on a PDF that has been created by ...
2
votes
1
answer
65
views
Remove gap in line plot in R [duplicate]
Please help me plot a single line that changes from solid (measured) to dashed (estimate) after year 2008 and has a legend respectively. My code:
date<-as.POSIXct(c("1981-01-01","...
0
votes
0
answers
95
views
Creating smooth interactive line connections between DIVs in react
I have a site where I build some different quizzes and I want user to be able to specify connections between Quiz A options with Quiz B. So it means that Quiz A contains options: Opt1, Opt2, Opt3 and ...
0
votes
1
answer
32
views
line and tags/labels with plugin-annotation@3
chartjs with annotation: multiple vertical lines at any x-position, with tags.
Example WORKS with 'https://cdn.jsdelivr.net/npm/chartjs-plugin-annotation@1'
however NOT with 'https://cdn.jsdelivr.net/...
2
votes
1
answer
99
views
Apache POI Word - Line between columns
I already have the columns created. I would like to put a line between them, as is possible in Word.
Line Between
How do I set it using Apache POI?
CTColumns coluna1 = sectPr.addNewCols();
coluna1....
1
vote
1
answer
104
views
Is it correct and consistent to check two vertex points for equality?
I am writing a Typescript game where there are vertexes drawn to a canvas, and some edges coming from them. I want to determine if some of edges from different vertexes intersect. For this, I am using ...
0
votes
1
answer
331
views
My Line Chatbot by using llamaIndex TS agent cant remember previous question
I created a LINE chatbot that uses the llamaindex typescript and it answers questions very well. and want to use an agent that can remember previous questions and can respond, which the agent can use ...
-2
votes
2
answers
137
views
Keep most common line from each set of duplicates of a column
I have a relatively complicated Bash problem. I have a two-column CSV file that contains duplicate values in the first column, as well as duplicates within those duplicate values (in the second column)...
-1
votes
2
answers
479
views
Straighten a Polygon into a line with Geopandas/Shapely
I'm using Python. geopandas and shapelly to process the geometries of a road intersection.
The geojson has a list of Polygons that I want to straighten into Lines, something like this:
Does anyone ...
1
vote
2
answers
345
views
Is there a way to add vertical lines to histograms in R, where the line positions come from a separate data frame?
I have a data frame, from which I created a "stats" data frame (mean, min, max, median, Q1, etc), then I made facet_wrap histograms. Now I want to add vertical lines in each histogram based ...
1
vote
1
answer
31
views
Setting Order and spacing on X-Axis for Matplotlib chart
I want to create a plot with a specific sequence of x-axis values "Time Interval" (0, 6, 24, 114, 228) while ensuring equal spacing between the ticks.
On using the "time" as int ...
0
votes
0
answers
43
views
Building a line with D2D1
I have a couple of points, who are the input for linear regression. LR outputs the parameters w and b, so that the ideal line is
y = wx+b.
I would like to depict that line in D2D1 with the following ...
0
votes
1
answer
50
views
Unable to change pointBackgroundColor after initial configuration is done using Chart.js
I am using Chart.js version 4.3.x. I am having issues creating different color points on a line graph. All the entries I see on StackOverflow are older versions. It's still listed in the API
I have ...
-1
votes
1
answer
76
views
How to multiply lines from two different text files into one text file in Python?
How to multiply lines from two different text files into one text file in Python?
file 1
file 2
zzzzzz
bbbbbb
aaaaaa
ffffff
nnnnnn
kkkkkk
I would like the result sequence to be as follows
| result |
| ...
0
votes
0
answers
68
views
Determine start and end points of line from circle to rectangle
I have a square DIV that contains a circle (a 1-pixel circumference with transparent centre) and a rectangular DIV that's filled with a rectangle (a 1-pixel perimeter with transparent centre.)
I need ...
0
votes
1
answer
332
views
How to prevent squares from going back in line in Typst
I want to make a progress bar for my resume, to show how competent I am in a skill, similar to how stars are displayed when grading a movie on a website. Ideally, I would also like them to be aligned ...