From 01bd762cdcae42053d7577a0a2ab66422a87d511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr> Date: Sun, 6 May 2018 17:28:35 +0200 Subject: [PATCH] make sure compound PCA biplot has the right aspect ratio as requested in #49 Former-commit-id: 1c3938a081be5b900b7199fdca1f014182f78504 --- ippisite/ippidb/templates/base.html | 1 + ippisite/ippidb/templates/compound_card.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ippisite/ippidb/templates/base.html b/ippisite/ippidb/templates/base.html index e62186fa..557cfe8c 100644 --- a/ippisite/ippidb/templates/base.html +++ b/ippisite/ippidb/templates/base.html @@ -130,6 +130,7 @@ type: 'scatter', data: scatterData, options: { + maintainAspectRatio: true, scales: { xAxes: [{ type: 'linear', diff --git a/ippisite/ippidb/templates/compound_card.html b/ippisite/ippidb/templates/compound_card.html index 1931340e..3a8b425d 100644 --- a/ippisite/ippidb/templates/compound_card.html +++ b/ippisite/ippidb/templates/compound_card.html @@ -162,7 +162,7 @@ <h5 class="card-header">PCA : iPPI-DB chemical space</h5> <div class="card-body"> - <canvas id="pca_biplot"></canvas> + <canvas id="pca_biplot" style="width:600px; height:600px;"></canvas> <script> drawCompoundsBiplotChart('pca_biplot', {{ compound.id }}, '{{ compound.best_pXC50_activity_ppi_family|default_if_none:"No target family identified" }}', {{ pca_biplot_data | safe }}, 'physicochemistry'); </script> -- GitLab