Skip to main content

All Questions

Tagged with
0 votes
0 answers
68 views

Using viridis Colormap For Matplotlib Plot Lines [duplicate]

I want to use the viridis colormap, yet it keeps reporting "AttributeError: Line2D.set() got an unexpected keyword argument 'cmap'". Here is what I attempted to do: import pandas as pd ...
Do Nguyen Hung's user avatar
1 vote
0 answers
36 views

Is it possible to compare multiple line graphs to give a sort of ' similarity rating'

So I am trying to measure data from a smartphone ambient light sensor (ALS). My goal is to be able to be able to look at the data and be able to infer the location of the device. To do this my plan is ...
nosilak0's user avatar
1 vote
1 answer
323 views

Change the Chart Style for a Line Chart in Excel with Openpyxl

I have this following code to export a set of dataframes and then convert them to tables in excel and applying a color format, then it creates Line Graphs for every table, everything works but I'm ...
Berny's user avatar
  • 135
0 votes
0 answers
29 views

How to plot a line graph with highlighted time periods on time series graph [duplicate]

I have two datasets, rainfall and datetimes (durations) for when an event had occurred, both measurements were taken in 2020. I want to plot them both on the same graph, with rainfall as a line with a ...
Zamir's user avatar
  • 3
0 votes
0 answers
95 views

How to implement a Dynamic Chart using MESA library?

I have been learning how to use MESA Agent Based Modelling library in python to help my PhD student supervisor. I am simulating the activity and bone formation phase of the bone remodelling process. I ...
Alvaro Rivera's user avatar
0 votes
0 answers
29 views

Line Thickness Detection using image processing techniques

I have a line graph image. I want to find the thickness of the line in the graph. What are possible options to find the thickness of the line in graph image? solutions I thought of: 1)I thought of ...
GhulamFatima's user avatar
0 votes
2 answers
29 views

Jupyter-lab visualisation problem (Linegraph creates non-understandable lines)

I want to create two seperate lines which shows stock prices and sentiment scores. This my code: import matplotlib.pyplot as plt # Create a figure and axis fig, ax = plt.subplots(figsize=(10, 6)) ...
Ayaz Aliyev's user avatar
0 votes
0 answers
870 views

Key error "year" even though I have a column called year

import pandas as pd import matplotlib.pyplot as plt import seaborn as sns data = pd.read_csv("match_map_stats.csv") plt.figure() Shanghai_Dragons_rule = data.loc[data["map_winner&...
John's user avatar
  • 1
1 vote
1 answer
155 views

Removing data from a line graph interactively in Jupiter notebook

I have a NumPy array which contains data from several samples. Some of the samples are outliers and need to be removed via visual inspection. Is there a way to make an interactive line plot in a ...
Liam's user avatar
  • 29
0 votes
2 answers
277 views

How to plot a line graph filtering by two columns?

this is my first time asking a question here so I'll try my best. CONTEXT/DATA: I've a data set (example of it below) with daily data of different stores as well as their sales, forecast, region and ...
gosvn's user avatar
  • 1
0 votes
1 answer
308 views

Creating a 1D heat map using the data which is unequally spaced

I have a set of X,Y data points that are easy to plot as a line graph but that I would like to represent as a heatmap. I looked through the examples in Matplotlib and they all seem to already start ...
lynn233's user avatar
0 votes
1 answer
54 views

matplotlib pyplot display ticks and values which are in scientific form

I have a plot which looks like this: The values displayed on the blue line are the cost ratio. The corresponding code looks like this: fpr=[some values] tpr=[some values] CR = plt....
Kathan Vyas's user avatar
0 votes
1 answer
322 views

Create line graph from database that assigns lines to each name

I have an SQLite table I want to make a line graph from: import sqlite3 conn = sqlite3.connect('sales_sheet.db') cur = conn.cursor() cur.execute("""CREATE TABLE IF NOT EXISTS sales(id ...
new_guy91's user avatar
1 vote
1 answer
681 views

Make all line graphs grey using grey scale, apart from one coloured line in Seaborn

I need to colour all line graphs in a different grey, using one of Seaborn's greyscale, like binary. One line (2022), however, needs to be orange. This is what I currently have: This is what my code ...
Lucas's user avatar
  • 17
0 votes
1 answer
227 views

How can I configure a line chart using pivot_ui?

I would like to create a dynamic line chart in Voila. How can I manipulate the below code to show a standard line graph where the x axis equals column "a" and the y axis equals column "...
user19758369's user avatar

15 30 50 per page
1
2 3 4 5 6