Skip to content

Commit 26caccb

Browse files
committed
added bubble charts
1 parent 64dd38c commit 26caccb

File tree

7 files changed

+81
-0
lines changed

7 files changed

+81
-0
lines changed
18.6 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
1 1 10
2+
2 2 4
3+
1 2 8
4+
3 3 1
5+
4 4 15
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-1 1 6
2+
-2 4 2
3+
-2 2 7
4+
-3 2 9
5+
-4 4 1
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
set terminal pdfcairo enhanced dashed size 8, 4;
2+
3+
set output "bubble-chart-3d.pdf"
4+
5+
set title "Title"
6+
7+
unset key
8+
9+
set xrange [-5:5]
10+
set yrange [0:5]
11+
12+
set xtics ("Red" 1,"White" 2,"Green" 3,"Blue" 4,"Gold" -1,"Silver" -2,"Iron" -3,"Titanium" -4)
13+
set ytics ("Circle" 1,"Triangle" 2,"Ellipse" 3,"Rectangle" 4)
14+
15+
set bmargin 2
16+
17+
set yzeroaxis
18+
set ytics axis
19+
set ytics center
20+
21+
SCALE = 0.06
22+
23+
set xtics rotate by 0 offset 0,0
24+
25+
set datafile separator " "
26+
set grid
27+
set tics scale 0
28+
29+
set multiplot layout 1,1
30+
31+
plot 'data1.txt' using 1:2:($3*SCALE) with circles lt rgb '#9E77A1' fs solid border rgb 'black' fs transparent solid 0.4, \
32+
'' using 1:2:(sprintf("%d", $3)) with labels notitle, \
33+
'data2.txt' using 1:2:($3*SCALE) with circles lt rgb "#8AA9C0" fs solid border rgb "black" fs transparent solid 0.4, \
34+
'' using 1:2:(sprintf("%d", $3)) with labels notitle
13.1 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
1 1 1
2+
2 2 2
3+
1 2 7
4+
3 3 4
5+
4 4 1
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
set terminal pdfcairo enhanced dashed size 8, 4;
2+
3+
set output "bubble-chart.pdf"
4+
5+
set title "Title"
6+
7+
unset key
8+
9+
set xrange [0:5]
10+
set yrange [0:5]
11+
12+
set xtics ("Red" 1, "White" 2,"Green" 3, "Blue" 4)
13+
set ytics ("Circle" 1, "Triangle" 2, "Ellipse" 3, "Rectangle" 4)
14+
15+
set bmargin 2
16+
17+
SCALE = 0.05
18+
19+
set xtics rotate by 0 offset 0,0
20+
21+
circleColor = '#9E77A1'
22+
textColor = 'black'
23+
24+
set datafile separator " "
25+
set grid
26+
set tics scale 0
27+
28+
set multiplot layout 1,1
29+
30+
plot 'data.txt' using 1:2:($3*SCALE) with circles lt rgb circleColor fs solid border rgb circleColor fs transparent solid 0.4, \
31+
'' using 1:2:(sprintf("%d", $3)) with labels notitle
32+

0 commit comments

Comments
 (0)