[Piuparts-devel] [Git][debian/piuparts][develop] 2 commits: use relative width for overview images

Holger Levsen gitlab at salsa.debian.org
Thu Oct 18 02:22:43 BST 2018


Holger Levsen pushed to branch develop at Debian / piuparts


Commits:
6de50749 by Holger Levsen at 2018-10-18T01:20:33Z
use relative width for overview images

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -
e3ef4df3 by Holger Levsen at 2018-10-18T01:22:13Z
Make generated graphs 4K ready.

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- debian/changelog
- piuparts-report.py


Changes:

=====================================
debian/changelog
=====================================
@@ -38,6 +38,7 @@ piuparts (0.93) UNRELEASED; urgency=medium
     - Link mail templates for filings from navigation menu.
     - Drop references to "PTS" and use "tracker.d.o" instead.
     - Add link to piuparts source package pages from known problem pages.
+    - Make generated graphs 4K ready.
     - Minor cleanups.
   * Use the new debhelper-compat(=11) notation and drop d/compat.
   * CONTRIBUTING: explain never to directly push to the develop nor master


=====================================
piuparts-report.py
=====================================
@@ -1290,7 +1290,7 @@ class Section:
         countsfile = os.path.join(self._section_directory, "counts.txt")
         pngfile = os.path.join(self._output_directory, "states.png")
         grdevices = importr('grDevices')
-        grdevices.png(file=pngfile, width=1600, height=900, pointsize=10, res=100, antialias="none")
+        grdevices.png(file=pngfile, width=3200, height=1800, pointsize=10, res=100, antialias="none")
         r = robjects.r
         states = self._binary_db.get_states()
         active_states = self._binary_db.get_active_states()
@@ -1763,7 +1763,7 @@ def make_bts_stats_graph(master_dir, out_dir):
     countsfile = os.path.join(master_dir, "bts_stats.txt")
     pngfile = os.path.join(out_dir, "images", "bts_stats.png")
     grdevices = importr('grDevices')
-    grdevices.png(file=pngfile, width=1600, height=900, pointsize=10, res=100)
+    grdevices.png(file=pngfile, width=3200, height=1800, pointsize=10, res=100)
     r = robjects.r
     r('t <- (read.table("' + countsfile + '",sep=",",header=1,row.names=1))')
     # make graph since day 1
@@ -1867,7 +1867,7 @@ def main():
         counter = 0
         for section in section_names:
             counter += 1
-            rows += ("<td><a href=\"/%s/\"><img src=\"/%s/states.png\" height=\"150\" width=\"266\" alt=\"Binary package states in %s\"></a></td>") % \
+            rows += ("<td><a href=\"/%s/\"><img src=\"/%s/states.png\" width=\"24%%\" alt=\"Binary package states in %s\"></a></td>") % \
                 (section, section, section)
             if counter % 4 == 0:
                 rows += "</tr><tr>"



View it on GitLab: https://salsa.debian.org/debian/piuparts/compare/b8c01051749bf5e30b071f912378d9facf6a7706...e3ef4df314afb65f6806eff11986887cc68b9cb1

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/compare/b8c01051749bf5e30b071f912378d9facf6a7706...e3ef4df314afb65f6806eff11986887cc68b9cb1
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20181018/7afa71fb/attachment-0001.html>


More information about the Piuparts-devel mailing list