Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
COMP1204-Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kxt1g21
COMP1204-Linux
Commits
4fbb0cfa
Commit
4fbb0cfa
authored
2 years ago
by
kxt1g21
Browse files
Options
Downloads
Patches
Plain Diff
(Commit message) Turn csv file into graph
parent
115f0ecc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plot-graph.plt
+145
-0
145 additions, 0 deletions
plot-graph.plt
with
145 additions
and
0 deletions
plot-graph.plt
0 → 100644
+
145
−
0
View file @
4fbb0cfa
#!/bin/bash
#gnuplot <<EOF
set
terminal png
set
output
"documentaryGraph.png"
set
datafile separator
","
set
title
"DocumentaryViews"
set
xlabel
"Time"
set
xdata
time
set
timefmt
'%d-%m-%Y %H:%M:%S'
set
format x
'%d-%m-%Y %H:%M:%S'
set
yrange
[
'7097900'
:
'7099400'
]
set
xtics rotate
set
ylabel
"Views"
set
style line 1 linecolor rgb
'blue'
linetype 1 linewidth 3 pointtype 10 pointsize 1
set
autoscale x
plot
"documentary.csv"
u 2:1 t
"Documentary"
w linespoints
ls
1
set
output
"duneTrailerGraph.png"
set
datafile separator
","
set
title
"Dune Trailer Views"
set
xlabel
"Time"
set
xdata
time
set
timefmt
'%d-%m-%Y %H:%M:%S'
set
format x
'%d-%m-%Y %H:%M:%S'
set
yrange
[
'13710000'
:
'13750000'
]
set
xtics rotate
set
ylabel
"Views"
set
style line 1 linecolor rgb
'blue'
linetype 1 linewidth 3 pointtype 10 pointsize 1
set
autoscale x
plot
"duneTrailer.csv"
u 2:1 t
"Dune Trailer"
w linespoints
ls
1
set
output
"gamingVideoGraph.png"
set
datafile separator
","
set
title
"Gaming Views"
set
xlabel
"Time"
set
xdata
time
set
timefmt
'%d-%m-%Y %H:%M:%S'
set
format x
'%d-%m-%Y %H:%M:%S'
set
yrange
[
'974900'
:
'976600'
]
set
xtics rotate
set
ylabel
"Views"
set
style line 1 linecolor rgb
'blue'
linetype 1 linewidth 3 pointtype 10 pointsize 1
set
autoscale x
plot
"gamingVideo.csv"
u 2:1 t
"Gaming"
w linespoints
ls
1
set
output
"tenDamGraph.png"
set
datafile separator
","
set
title
"Ten Dam Views"
set
xlabel
"Time"
set
xdata
time
set
timefmt
'%d-%m-%Y %H:%M:%S'
set
format x
'%d-%m-%Y %H:%M:%S'
set
yrange
[
'13695700'
:
'13695880'
]
set
xtics rotate
set
ylabel
"Views"
set
style line 1 linecolor rgb
'blue'
linetype 1 linewidth 3 pointtype 10 pointsize 1
set
autoscale x
plot
"tendam.csv"
u 2:1 t
"Ten Dam"
w linespoints
ls
1
set
output
"offlineTvGraph.png"
set
datafile separator
","
set
title
"OfflineTV Views"
set
xlabel
"Time"
set
xdata
time
set
timefmt
'%d-%m-%Y %H:%M:%S'
set
format x
'%d-%m-%Y %H:%M:%S'
set
yrange
[
'766100'
:
'773000'
]
set
xtics rotate
set
ylabel
"Views"
set
style line 1 linecolor rgb
'blue'
linetype 1 linewidth 3 pointtype 10 pointsize 1
set
autoscale x
plot
"offlineTVVideo.csv"
u 2:1 t
"OfflineTV"
w linespoints
ls
1
set
output
"musicPlaylistGraph.png"
set
datafile separator
","
set
title
"Music Playlist Views"
set
xlabel
"Time"
set
xdata
time
set
timefmt
'%d-%m-%Y %H:%M:%S'
set
format x
'%d-%m-%Y %H:%M:%S'
set
yrange
[
'1460890'
:
'1461000'
]
set
xtics rotate
set
ylabel
"Views"
set
style line 1 linecolor rgb
'blue'
linetype 1 linewidth 3 pointtype 10 pointsize 1
set
autoscale x
plot
"musicPlaylist.csv"
u 2:1 t
"Music Playlist"
w linespoints
ls
1
set
output
"mukbangGraph.png"
set
datafile separator
","
set
title
"Mukbang Views"
set
xlabel
"Time"
set
xdata
time
set
timefmt
'%d-%m-%Y %H:%M:%S'
set
format x
'%d-%m-%Y %H:%M:%S'
set
yrange
[
'1068900'
:
'1083000'
]
set
xtics rotate
set
ylabel
"Views"
set
style line 1 linecolor rgb
'blue'
linetype 1 linewidth 3 pointtype 10 pointsize 1
set
autoscale x
plot
"mukbangVideo.csv"
u 2:1 t
"Mukbang"
w linespoints
ls
1
set
output
"jvkeMusicGraph.png"
set
datafile separator
","
set
title
"JVKE Music Views"
set
xlabel
"Time"
set
xdata
time
set
timefmt
'%d-%m-%Y %H:%M:%S'
set
format x
'%d-%m-%Y %H:%M:%S'
set
yrange
[
'30500'
:
'31100'
]
set
xtics rotate
set
ylabel
"Views"
set
style line 1 linecolor rgb
'blue'
linetype 1 linewidth 3 pointtype 10 pointsize 1
set
autoscale x
plot
"jvkeMusic.csv"
u 2:1 t
"JVKE Music"
w linespoints
ls
1
set
output
"jisooMusicGraph.png"
set
datafile separator
","
set
title
"Jisoo Music Views"
set
xlabel
"Time"
set
xdata
time
set
timefmt
'%d-%m-%Y %H:%M:%S'
set
format x
'%d-%m-%Y %H:%M:%S'
set
yrange
[
'186350000'
:
'186394000'
]
set
xtics rotate
set
ylabel
"Views"
set
style line 1 linecolor rgb
'blue'
linetype 1 linewidth 3 pointtype 10 pointsize 1
set
autoscale x
plot
"jisooMusic.csv"
u 2:1 t
"Jisoo Music"
w linespoints
ls
1
set
output
"iveMusicGraph.png"
set
datafile separator
","
set
title
"Ive Music Views"
set
xlabel
"Time"
set
xdata
time
set
timefmt
'%d-%m-%Y %H:%M:%S'
set
format x
'%d-%m-%Y %H:%M:%S'
set
yrange
[
'63183000'
:
'63203000'
]
set
xtics rotate
set
ylabel
"Views"
set
style line 1 linecolor rgb
'blue'
linetype 1 linewidth 3 pointtype 10 pointsize 1
set
autoscale x
plot
"iveMusic.csv"
u 2:1 t
"Ive Music"
w linespoints
ls
1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment