aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2019-03-21 09:45:08 +0300
committerBonfaceKilz2020-08-08 03:26:10 +0300
commit7f982bfb55f7832f63bb960e084f5ca6d40eb519 (patch)
treead05e64cff2a8fcdb3a7b78f5ebf35bd24be576e
parentb48698b2dfcf04b2016eb92e3de764d8ab176aab (diff)
downloadgenenetwork2-7f982bfb55f7832f63bb960e084f5ca6d40eb519.tar.gz
Change Y Coodinate system
* wqflask/wqflask/marker_regression/display_mapping_results.py: Piddle seemed to centre text about the given Y coordinate, while Pillow requires specification to top-left corner of the text. This slight change means text all over the image is displaced somewhat, and this fixes the coordinate system for some of the text.
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index 2f235896..9b406b72 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -1698,21 +1698,21 @@ class DisplayMappingResults(object):
im_drawer.text(
text="Click to view the corresponding section of the genome in an 8x expanded WebQTL map",
- xy=((xLeftOffset + 10), paddingTop + self.BAND_HEIGHT/2),
+ xy=((xLeftOffset + 10), paddingTop),# + self.BAND_HEIGHT/2),
font=clickableRegionLabelFont,
fill=self.CLICKABLE_WEBQTL_TEXT_COLOR)
if self.dataset.group.species == "mouse" or self.dataset.group.species == "rat":
im_drawer.text(
text="Click to view the corresponding section of the genome in PhenoGen",
- xy=((xLeftOffset + 10), phenogenPaddingTop + self.BAND_HEIGHT/2),
+ xy=((xLeftOffset + 10), phenogenPaddingTop),# + self.BAND_HEIGHT/2),
font=clickableRegionLabelFont, fill=self.CLICKABLE_PHENOGEN_TEXT_COLOR)
im_drawer.text(
text="Click to view the corresponding section of the genome in the UCSC Genome Browser",
- xy=((xLeftOffset + 10), ucscPaddingTop + self.BAND_HEIGHT/2),
+ xy=((xLeftOffset + 10), ucscPaddingTop),# + self.BAND_HEIGHT/2),
font=clickableRegionLabelFont, fill=self.CLICKABLE_UCSC_TEXT_COLOR)
im_drawer.text(
text="Click to view the corresponding section of the genome in the Ensembl Genome Browser",
- xy=((xLeftOffset+10), ensemblPaddingTop + self.BAND_HEIGHT/2),
+ xy=((xLeftOffset+10), ensemblPaddingTop),# + self.BAND_HEIGHT/2),
font=clickableRegionLabelFont, fill=self.CLICKABLE_ENSEMBL_TEXT_COLOR)
#draw the gray text