Questions tagged [line-plot]

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.

391 questions
0
votes
1 answer

How to draw multiple line plots in a grid?

I have a dictionary whose values are consisted of dataframes. Every df has the same column names: X1 and X2: dic = {"a": df1, "b": df2, ..., "y": df25} Now I want to draw line plots of these dataframes so that they will be in 5 rows and 5 columns.…
burhancigdem
  • 105
  • 3
0
votes
1 answer

How to add a factor/group variable to line plot in Stata

I would like to have a line plot of a continuous variable over time using xtline and overlay a scatterplot or label for each data point indicating a group membership at this point. * Example generated by -dataex-. To install: ssc install…
Marco
  • 2,368
  • 6
  • 22
  • 48
0
votes
1 answer

Lineplot seaborn did not plot the right multi-line plot

I am trying to make a multi-lineplot where one line shows daily count information from Jan to Jul in 2019 and the other one shows situation in 2020. Before plotting the graph, I also use pd.concat to 'vertically' combine the 2019 dataframe and 2020…
0
votes
1 answer

not able to set plotly plot yaxis range properly

Hi I am having trouble getting a lineplot to display properly. I have two axes and 5 line plots on one figure. The first y-axis limit cannot be set. I tried setting the range property to [0,2], however it doesn't do anything and continues to show…
Spencer Trinh
  • 743
  • 12
  • 31
0
votes
1 answer

How to make a lineplot with specific values out of a dataframe

I have a df as follow: Variable Value G1_temp_0 37.9 G1_temp_5 37.95333333 G1_temp_10 37.98333333 G1_temp_15 38.18666667 G1_temp_20 38.30526316 G1_temp_25 38.33529412 G1_mean_Q1 38.03666667 G1_mean_Q2 …
therock7
  • 25
  • 6
0
votes
0 answers

Plots obtained via Matplotlib for each row of a 2D array againt their indices are not correct

Below is the code that I wrote for some project. The plots are not correct which I'm obtaining via matplotlib. It would be very helpful, If I can know where am I doing wrong? randomFL =[] for i in range(0,100): x = round(random.uniform(0.1,…
0
votes
2 answers

Set seperate alphas for each line in a ggplot graph

I want to build a graph with ggplot using geom_line. I made up the following reprex to expose the problem: library(ggplot2) data <- data.frame(Value = rnorm(20), Obs = c(1:10,1:10), Var = c(rep("A",…
BerriJ
  • 913
  • 7
  • 18
0
votes
1 answer

How to create a line plot by using specific rows from a .xls file with R?

I want to create a line plot with two specific rows and first row as the x-axis from a .xls file. Until now, I tried ggplot which I could not find what should I pass to places which marked with the question marks. dataset <-…
Ari
  • 13
  • 1
  • 2
  • 3
0
votes
1 answer

Plot n animated growing line plots on the same graph (matplotlib, python)

I am trying to plot multiple animated line plots on the same graph with a delay of 1 second between each line plot in matplotlib python. My previous question: How to create a delay between mutiple animations on the same graph (matplotlib, python) I…
0
votes
1 answer

How to create a delay between mutiple animations on the same graph (matplotlib, python)

This is a reference from a previous question two lines matplotib animation import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation x = np.arange(130, 190, 1) y = 97.928 * np.exp(- np.exp(- 0.1416 *( x - 146.1…
0
votes
1 answer

How to fix the overlapping lines in matplotlib plot

Some of my bullet points and lines overlap, making it less clear to see what results in each year are. I have already read the previous posts on the same problem (questions 55710343 and 40766909). However, they do not help me because they assume…
Bluetail
  • 1,093
  • 2
  • 13
  • 27
0
votes
1 answer

Cannot add legend to ggplot line-plot

I am a new R user and I am trying to add a legend to my lines plot. This is the command line that I used to make the plot and the relative plot. ggplot(crab_tag$daylog, aes(Date))+ geom_line(aes(y=-Max.Depth), color="blue")+…
0
votes
0 answers

Adjusting date tick settings on seaborn lineplot

I'm experiencing crowding on my x-axis when using lineplot in seaborn. I initially plotted the data with the following: import pandas as pd import matplotlib matplotlib.use('TkAgg') import seaborn as sns for state in states_list: …
0
votes
1 answer

Plot the line graph only for the non-zero columns using plot_ly() in R

I'm having a dataframe as follows avgHours <- data.frame("QuarterYear" = c('2019 Q4','2020 Q1','2020 Q2'), average = c(44.5,44.5,42.0), leave = c(24.0,9.3,0.0), freeTime = c(0,0,0)) I need to plot 3 line graphs. In this case, I'm having a non-zero…
Nevedha Ayyanar
  • 845
  • 9
  • 27
0
votes
0 answers

how I can plot the line graph as shown in the image

I have two columns one is date column and the other column is the cumulative data column. I want to show the graph as shown in the desired output. But I want to set the range of the Y-axis column in the line graph. value [0,1]. ax =…
Anki
  • 13
  • 4