Line plot is a way to represent a series of data by plotting them on two- or tridimensional area and connecting respective data points with lines.
Questions tagged [line-plot]
391 questions
3
votes
1 answer
Different size for lines in ggplot2's geom_line
Is it possible to have different sized (i.e. thick) lines drawn with geom_line?
The size parameters is the same for all lines, irrespective of the group:
bp <- ggplot(data=diamonds, aes(x=cut, y=depth)) +
geom_line(aes(color=cut),…

MERose
- 4,048
- 7
- 53
- 79
3
votes
1 answer
JFreeChart: How to plot a line graph and a scatter on same chart
i have two sets of data
int[] x1 = {1,2,3,4,5,6,7,8,9,10};
int[] y1 = {1,2,3,5,6,8,9,10,14,11};
int[] x2 = {1,2,3,4,5,6,7,8,9,10};
int[] y2 = {0,2,3,5,0,8,9,8,14,11};
int[] z2 = {1,2,3,1,2,3,1,2,3,1};
I want to plot the x1,y1 as an XYLineChart…

Eduardo
- 6,900
- 17
- 77
- 121
2
votes
1 answer
creating and combining two plots - xy line plot with bar chain plot in R
The following two data sets I intend create graph from:
first data (will develop bottom portion)
position <- c(10, 26, 31, 50, 73, 92, 120, 124) # need scale
minimum 0 to maximum 130
label <- c("A", "B", "C", "D", "E", "F", "G", "H")
mydf <-…

jon
- 11,186
- 19
- 80
- 132
2
votes
2 answers
Separating and combining ImageDisplay layers
Is it possible in DM-script to take an ImageDisplay containing multiple layers and separate those layers into different image windows? And conversely, is it possible to overlay separate displays to form one multi-layer display through script?
My…

Michael Ngo
- 65
- 4
2
votes
1 answer
ggplot line plot: is there a way to depict the data points under or over the line plot depending on what looks better?
I wanted to create a line plot based on the data MIA_YEAR. It already looks quite good but I want to move those data points under the plot that (almost) touch the line. Or in mathematial terms: If the slope increases the data points should be under…

blubdidub
- 23
- 4
2
votes
1 answer
which slice of a multi-slice lineplot is selected?
Given a multi-slice lineplot, one of the slices can be selected by clicking it in the legend with the mouse. From the scripting side, there is a command to imgdsp.ImageDisplaySetSliceSelected(). But I can't find a command that lets me determine…

E Voelkl
- 259
- 1
- 6
2
votes
1 answer
How to plot daily data against a 24 hour axis (00:00 - 23:59:59)
I have a dataset with date_time, date, time, and a VALUE1 column that shows measurement values of each time point. For the same ID, there are multiple measurements over a day. Besides, there are 6 different 24 hour measurements for an ID, which is…

dsapprentice
- 114
- 12
2
votes
1 answer
Continuous changing linewidth becomes transparent in ggplot
I am experimenting with the linewidth aesthetic in ggplot and mainly how to use it for continuously changing a line. When I am trying to create a continuously growing linewidth line, it becomes transparent. Here is some reproducible…

Quinten
- 35,235
- 5
- 20
- 53
2
votes
1 answer
Plotting multiple lineplots on single plot with for loop using matplotlib
I have a list of about 200 dataframes that look like this:
I'm running these dataframes through a for loop that runs a linear regression on each one and generates some error metrics. I'd like to generate a single plot that has all these lines but…

hulio_entredas
- 675
- 1
- 12
2
votes
1 answer
Coloring the area under the graph in lineplot of seaborn?
I plotted from data using seaborn's line plot whose code looks like this:
sns.lineplot( x=df["#Energy"], y=df["py"]+df["px"]+df["pz"])
and the plot I got is
now I want to color the area under it in opaque blue, how do I do that
I dont find…

Sadaf Shafi
- 1,016
- 11
- 27
2
votes
1 answer
create seaborn lineplot with multiple lines and hue
I have data from multiple lines, and I would like to create seaborn lineplot.
each iteration_value has:
x_values- list of floats
y_values- list between 0 and 1
line_title- a string of the hue.
I have this code:
def save_graph(properties):
…

Kenny Smith
- 729
- 3
- 9
- 23
2
votes
1 answer
Bokeh Line Plot: How to assign colors when plotting a large number of lines
I created a multiple line plot in Bokeh using a for loop (code below).
In the ouput example there are only two curves. In this case I can set a list of colors for each curve. But, How can I use one of the Bokeh palettes (e.g. Paired) if I need to…

Pablo
- 167
- 2
- 9
2
votes
2 answers
Line color as a function of column values in pandas dataframe
I am trying to plot two columns of a pandas dataframe against each other, grouped by a values in a third column. The color of each line should be determined by that third column, i.e. one color per group.
For example:
import pandas as pd
from…

nishuba
- 123
- 1
- 6
2
votes
0 answers
How to plot particular line chart with labels and titles in power point using python-pptx module?
I have a dataset which looks like this:
A B C D
AR 20201 1 200
AR 20202 1 300
AR 20203 1 1000
AR 20204 1 3000
AR 20205 1 700
AR 20206 1 800
AR 20207 1 …

MAC
- 1,345
- 2
- 30
- 60
2
votes
1 answer
Gnuplot: how to plot with a continuous line over multiple data blocks?
I have a dat file that is split into multiple blocks, for example as the following one:
# Time (s) x (m)
0.0 0.0
1.0 1.0
2.0 2.0
3.0 3.0
4.0 4.0
5.0 5.0
5.0 10.0
6.0 11.0
7.0 …

Boris Benedikter
- 23
- 4