change graph size

This commit is contained in:
shoopea 2021-12-09 22:01:01 +08:00
parent 2eedfc43a9
commit 2a2dd7e49b
2 changed files with 15 additions and 15 deletions

22
bot.go
View File

@ -1016,7 +1016,7 @@ func botGraphValue(m *tb.Message) {
i++ i++
} }
err := p.Save(6*vg.Inch, 4*vg.Inch, "/app/data/points.png") err := p.Save(18*vg.Inch, 12*vg.Inch, "/app/data/points.png")
logErrorDebug(err, "botGraphValue : plot.Save") logErrorDebug(err, "botGraphValue : plot.Save")
if err != nil { if err != nil {
bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err)) bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err))
@ -1127,7 +1127,7 @@ func botGraphValueDelta(m *tb.Message) {
i++ i++
} }
err := p.Save(6*vg.Inch, 4*vg.Inch, "/app/data/points.png") err := p.Save(18*vg.Inch, 12*vg.Inch, "/app/data/points.png")
logErrorDebug(err, "botGraphValueDelta : plot.Save") logErrorDebug(err, "botGraphValueDelta : plot.Save")
if err != nil { if err != nil {
bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err)) bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err))
@ -1218,7 +1218,7 @@ func botGraphMoney(m *tb.Message) {
i++ i++
} }
err := p.Save(6*vg.Inch, 4*vg.Inch, "/app/data/points.png") err := p.Save(18*vg.Inch, 12*vg.Inch, "/app/data/points.png")
logErrorDebug(err, "botGraphMoney : plot.Save") logErrorDebug(err, "botGraphMoney : plot.Save")
if err != nil { if err != nil {
bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err)) bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err))
@ -1309,7 +1309,7 @@ func botGraphIncome(m *tb.Message) {
i++ i++
} }
err := p.Save(6*vg.Inch, 4*vg.Inch, "/app/data/points.png") err := p.Save(18*vg.Inch, 12*vg.Inch, "/app/data/points.png")
logErrorDebug(err, "botGraphIncome : plot.Save") logErrorDebug(err, "botGraphIncome : plot.Save")
if err != nil { if err != nil {
bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err)) bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err))
@ -1400,7 +1400,7 @@ func botGraphLoan(m *tb.Message) {
i++ i++
} }
err := p.Save(6*vg.Inch, 4*vg.Inch, "/app/data/points.png") err := p.Save(18*vg.Inch, 12*vg.Inch, "/app/data/points.png")
logErrorDebug(err, "botGraphLoan : plot.Save") logErrorDebug(err, "botGraphLoan : plot.Save")
if err != nil { if err != nil {
bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err)) bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err))
@ -1491,7 +1491,7 @@ func botGraphPerf(m *tb.Message) {
i++ i++
} }
err := p.Save(6*vg.Inch, 4*vg.Inch, "/app/data/points.png") err := p.Save(18*vg.Inch, 12*vg.Inch, "/app/data/points.png")
logErrorDebug(err, "botGraphPerf : plot.Save") logErrorDebug(err, "botGraphPerf : plot.Save")
if err != nil { if err != nil {
bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err)) bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err))
@ -1561,7 +1561,7 @@ func botGraphPlanes(m *tb.Message) {
i++ i++
} }
err := p.Save(6*vg.Inch, 4*vg.Inch, "/app/data/points.png") err := p.Save(18*vg.Inch, 12*vg.Inch, "/app/data/points.png")
logErrorDebug(err, "botGraphPlanes : plot.Save") logErrorDebug(err, "botGraphPlanes : plot.Save")
if err != nil { if err != nil {
bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err)) bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err))
@ -1631,7 +1631,7 @@ func botGraphBusses(m *tb.Message) {
i++ i++
} }
err := p.Save(6*vg.Inch, 4*vg.Inch, "/app/data/points.png") err := p.Save(18*vg.Inch, 12*vg.Inch, "/app/data/points.png")
logErrorDebug(err, "botGraphBusses : plot.Save") logErrorDebug(err, "botGraphBusses : plot.Save")
if err != nil { if err != nil {
bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err)) bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err))
@ -1701,7 +1701,7 @@ func botGraphTrains(m *tb.Message) {
i++ i++
} }
err := p.Save(6*vg.Inch, 4*vg.Inch, "/app/data/points.png") err := p.Save(18*vg.Inch, 12*vg.Inch, "/app/data/points.png")
logErrorDebug(err, "botGraphTrains : plot.Save") logErrorDebug(err, "botGraphTrains : plot.Save")
if err != nil { if err != nil {
bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err)) bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err))
@ -1771,7 +1771,7 @@ func botGraphLorries(m *tb.Message) {
i++ i++
} }
err := p.Save(6*vg.Inch, 4*vg.Inch, "/app/data/points.png") err := p.Save(18*vg.Inch, 12*vg.Inch, "/app/data/points.png")
logErrorDebug(err, "botGraphLorries : plot.Save") logErrorDebug(err, "botGraphLorries : plot.Save")
if err != nil { if err != nil {
bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err)) bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err))
@ -1841,7 +1841,7 @@ func botGraphShips(m *tb.Message) {
i++ i++
} }
err := p.Save(6*vg.Inch, 4*vg.Inch, "/app/data/points.png") err := p.Save(18*vg.Inch, 12*vg.Inch, "/app/data/points.png")
logErrorDebug(err, "botGraphShips : plot.Save") logErrorDebug(err, "botGraphShips : plot.Save")
if err != nil { if err != nil {
bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err)) bot.SendChat(m.Chat.ID, fmt.Sprintf("plot.Save : %s", err))

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "9a08e0c" var githash = "2eedfc4"
var buildstamp = "2021-12-09_13:59:19" var buildstamp = "2021-12-09_14:00:50"
var commits = "249" var commits = "250"
var version = "9a08e0c-b249 - 2021-12-09_13:59:19" var version = "2eedfc4-b250 - 2021-12-09_14:00:50"