All Questions
12
questions
0
votes
0
answers
61
views
Chart.js display data labels as integers on x axis
I am working on a chart which reads data from a .csv file and displays the emisivities of four surface types against wavelenghts between 3.660 and 14.559. Example of my source dataframe (in total 531 ...
-1
votes
2
answers
169
views
Converting days to months of the year
I have a data frame with one of the columns given as time. The time column is as a result of simulations from ODE system of equations. I want to convert the time column to months of the year.
df <- ...
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&...
0
votes
1
answer
58
views
How do I create a line graph using multiple variables when the multiple variables are all in the same column?
structure(list(Sample.Id = c(NA, "2", "2", "2", "2", "2", "2",
"2", "2", "2", "2", "3", &...
0
votes
0
answers
499
views
How can I plot a single line that changes its color per y-value interval or label?
I would like to plot one line graph. And the line has to change color based on the y-value. so for example:
red = 0 - 0.5
blue = 0.5 - 1
green = 1 - 1.5
black = 1.5 - 2
But I have also tried to make ...
0
votes
1
answer
39
views
How graph specific data set in R?
I have a data frame as follows:
SVD <- structure(list(age.group = c("15-19", "20-24", "25-29", "30-
34","35-39", "40-44", "45-49&...
-1
votes
1
answer
1k
views
Plot all the years mentioned in a dataframe in R
I have a dataframe with a column of year and another column which consists of the frequency count of the years.
My dataframe looks like the following
year <- c(2013,2014,2015,2016,2017,2018,2019,...
1
vote
0
answers
175
views
Save each subplot individually with pandas and matplotlib
I want to make a line graph for each row in a pandas dataframe and save it with the filename being the name of the first cell of the row. I have made some progress but I had to switch my columns and ...
1
vote
1
answer
818
views
python pandas: how to switch x-axis with y-axis for a line graph
I have a problem with creating a line graph. I need to switch the x-axis with y-axis.
My idea is to visualize the Branch (F1, F2, F3, F4) on the y-axis and the weeks from 1-100 on the x-axis
If you ...
0
votes
1
answer
253
views
How to use the header of a second data.frame as axis of a line plot using information of a first data.frame in R?
After reading in my data in R I have two R internal variables, Goats and GoatPositions, that look like this:
> Goats
GPS_No Goat_ID GoatName
1 5 660294 SIVKA
2 6 777077 MESI
3 ...
5
votes
1
answer
9k
views
Plotly: How to output multiple line charts in single figure?
I am trying to plot line chart using plotly for multiple dataframes in a single graph.
My code is:
import plotly.express as px
labels=category_names[:10]
for category in category_names[:10]:
df_b=...
0
votes
1
answer
107
views
Creating a line graph for a top X in a dataframe (Pandas)
I'm trying to make a line graph for my dataframe that has the names of 10 customers on the X axis and their amount of purchases they made on the Y axis.
I have over 100 customers in my data frame, so ...