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
3
votes
1 answer

Legend issues when mapping plot to FacetGrid

I've also opened an issue in the seaborn git repo here. However, instead of a bug, it's quite possible that instead I'm making some basic error - but I haven't figured it out yet... Question: The same color is assigned to two different values in the…
Ben
  • 958
  • 6
  • 7
3
votes
1 answer

Different color for single line plot in plotly based on category (Green & red)

There is given two numerical columns which is sinusoidal data. which should be plotted as x-axis as tag and num1 and num2 as y-axis . And color of num1 should change as per num1_color. and similarly for num2 and num2_color column. Below is the…
Nabi Shaikh
  • 787
  • 1
  • 6
  • 26
3
votes
1 answer

in jpgraph js library, for line graph, is it possible to have dots of different (customly defined) colors?

In jpgraph js library, for LinePlot, is it possible to have dots (plot marks) of different (customly defined) colors? Any experience anyone? I need to make different colors for some of the dots in the graph, for some values of x-axis.
Vladimir Despotovic
  • 3,200
  • 2
  • 30
  • 58
3
votes
1 answer

Fill between standard deviations on Matplotlib lineplot

I have a line plot which graphs 2 columns of data loaded from an excel file. See Plot: Matplotlib line plot I want to display the standard deviation for each line (i.e., column of data) in my plot using the fill between function or something similar…
Rex Reginald
  • 31
  • 1
  • 2
3
votes
1 answer

AttributeError: 'Line2D' object has no property 'xlabel'

Below is my code running on windows 10 saved below code to a file, namely testflask.py import pandas as pd import matplotlib.pyplot as plt from flask import Flask, send_file, make_response, render_template #from flask_ngrok import…
sakeesh
  • 919
  • 1
  • 10
  • 24
3
votes
1 answer

Highlight a single point with a marker in lineplot

I would like to highlithgt a single point on my lineplot graph using a marker. So far I managed to create my plot and insert the highlight where I wanted. The problem is that I have 4 differents lineplot (4 different categorical attributes) and I…
Mattia Surricchio
  • 1,362
  • 2
  • 21
  • 49
3
votes
1 answer

How to add values/ labels over each marker in lineplot in Python Seaborn?

I have a dataframe consists of the range of time, stock and the counts of text as the columns . The dataframe looks like this Time Stock Text 0 00:00 - 01:00 BBNI 371 1 00:00 - 01:00 BBRI 675 2 00:00 - 01:00 BBTN 136 3 …
dhika91
  • 55
  • 1
  • 6
3
votes
1 answer

seaborn line plots with date on the x axis

enter image description here Hi, I am trying to recreate some of the covid-19 charts that we have seen. I am using data from the Johns Hopkins database. The data is arranged so that the city names are in the rows and the columns are dates. A…
postcolonialist
  • 449
  • 7
  • 17
3
votes
1 answer

How to colour multiple subclasses with similar colours in ggplot lineplot?

So, as in the question, I have this dataframe which is also plotted: library("ggplot2") set.seed(1278) classes <- c("a1", "a2", "a3", "a4", "b1", "b2", "b3", "b4", "b5", "c1", "c2", "c3") kinds <- c("WWW", "XXX", "YYY", "ZZZ", "QQQ", "VVV") values…
gabt
  • 668
  • 1
  • 6
  • 20
3
votes
1 answer

Creating a line chart from a dataframe with all unique values of a column in pandas?

I'm trying to create a line chart from the data below with the date on the x-axis, score on the y-axis and a line for each value of X X Date Score 1 A 2019-06-01 80 2 A 2019-05-01 70 3 A 2019-04-01 60 4 B 2019-06-01 90 5 B 2019-05-01 50 6 B…
WillacyMe
  • 562
  • 1
  • 6
  • 25
3
votes
1 answer

Using units in seaborn FacetGrid with lineplot

Here is a Minimal, Complete and Verifiable toy dataset for my problem: genes = pd.Series(["Gene1"] * 16 + ["Gene2"] * 16) conditions = pd.Series(np.tile(np.array(["Condition1"] * 8 + ["Condition2"] * 8), 2)) wellID = pd.Series(np.array(["W1"] * 4 +…
mbahin
  • 129
  • 2
  • 10
3
votes
2 answers

Selective labeling for ggplot lines

General Goal: Use ggplot to selectively label only lines whose last points are above a certain y value. Potential Functions/Packages: I'm aware of the geom_text() function and directlabels package but I can't identify a way in their documentation…
firebird17139
  • 131
  • 2
  • 9
3
votes
2 answers

How to plot multiple line graphs with different scales of data

I have a question on how to plot when I have different sets of data with different scales. My data is as shown below H.Q.2 A.D.q C.D total q 1 3750 8424.00 5616 17790.0 50 2 7500 4212.00 5616 17328.0 100 3 11250 2808.00 5616 19674.0…
3
votes
1 answer

Coloring lines in a Bokeh Plot

I have a Bokeh App that contains a Line Plot. This plot has 10 lines in it. How do I color the lines with different shades of the same color? Is there any way I can generate a list of different shades of the same color without hardcoding it?
van_d39
  • 725
  • 2
  • 14
  • 28
3
votes
2 answers

Increase Maximum Width of Line in Line Plot

I am using qplot in the ggplot2 library to create a line graph. I am attempting to vary both the color and width of the line. The problem, though, is that the width of the line seems to be constrained, regardless of the values I give to the…
Adam_G
  • 7,337
  • 20
  • 86
  • 148
1 2
3
25 26